CVE-2024-47765

Minecraft MOTD Parser is a PHP library to parse minecraft server motd. The HtmlGenerator class is subject to potential cross-site scripting (XSS) attack through a parsed malformed Minecraft server MOTD. The HtmlGenerator iterates through objects of MotdItem that are contained in an object of MotdItemCollection to generate a HTML string. An attacker can make malicious inputs to the color and text properties of MotdItem to inject own HTML into a web page during web page generation. For example by sending a malicious MOTD from a Minecraft server under their control that was queried and passed to the HtmlGenerator. This XSS vulnerability exists because the values of these properties are neither filtered nor escaped. This vulnerability is fixed in 1.0.6.
Configurations

Configuration 1 (hide)

cpe:2.3:a:jgniecki:minecraft_motd_parser:*:*:*:*:*:*:*:*

History

13 Nov 2024, 14:48

Type Values Removed Values Added
First Time Jgniecki minecraft Motd Parser
Jgniecki
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 6.1
CPE cpe:2.3:a:jgniecki:minecraft_motd_parser:*:*:*:*:*:*:*:*
References () https://github.com/jgniecki/MinecraftMotdParser/commit/b0ab9d68a964cd3d74977f39a9e7af0a94509f7c - () https://github.com/jgniecki/MinecraftMotdParser/commit/b0ab9d68a964cd3d74977f39a9e7af0a94509f7c - Patch
References () https://github.com/jgniecki/MinecraftMotdParser/security/advisories/GHSA-q898-frwq-f3qp - () https://github.com/jgniecki/MinecraftMotdParser/security/advisories/GHSA-q898-frwq-f3qp - Vendor Advisory

07 Oct 2024, 17:48

Type Values Removed Values Added
Summary
  • (es) Minecraft MOTD Parser es una librería PHP para analizar MOTD de servidores de Minecraft. La clase HtmlGenerator está sujeta a posibles ataques de cross-site scripting (XSS) a través de un MOTD de servidor de Minecraft mal formado y analizado. HtmlGenerator itera a través de objetos de MotdItem que están contenidos en un objeto de MotdItemCollection para generar una cadena HTML. Un atacante puede realizar entradas maliciosas en las propiedades de color y texto de MotdItem para inyectar su propio HTML en una página web durante la generación de la página web. Por ejemplo, enviando un MOTD malicioso desde un servidor de Minecraft bajo su control que fue consultado y pasado a HtmlGenerator. Esta vulnerabilidad XSS existe porque los valores de estas propiedades no se filtran ni se escapan. Esta vulnerabilidad se corrigió en 1.0.6.

04 Oct 2024, 15:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-10-04 15:15

Updated : 2024-11-13 14:48


NVD link : CVE-2024-47765

Mitre link : CVE-2024-47765

CVE.ORG link : CVE-2024-47765


JSON object : View

Products Affected

jgniecki

  • minecraft_motd_parser
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CWE-80

Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)