CVE-2024-47765 Minecraft MOTD Parser's HtmlGenerator vulnerable to XSS
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- PHP
Description
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| dev-lancer/minecraft-motd-parser(Packagist) | < 1.0.6; <= 1.0.5; = v0.1; = v0.2 +6 more | 1.0.6 | Fixed |
| jgniecki minecraft motd parser | < 1.0.6 | 1.0.6 | Fixed |
| jgniecki MinecraftMotdParser | < 1.0.6; = < 1.0.6 | 1.0.6 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| dev-lancer/minecraft-motd-parser(Packagist) | < 1.0.6 | 1.0.6 |
| dev-lancer/minecraft-motd-parser(Packagist) | = v0.1 | No fix listed |
| dev-lancer/minecraft-motd-parser(Packagist) | = v0.2 | No fix listed |
| dev-lancer/minecraft-motd-parser(Packagist) | = v1.0 | No fix listed |
| dev-lancer/minecraft-motd-parser(Packagist) | = v1.0.1 | No fix listed |
| dev-lancer/minecraft-motd-parser(Packagist) | = v1.0.2 | No fix listed |
| dev-lancer/minecraft-motd-parser(Packagist) | = v1.0.3 | No fix listed |
| dev-lancer/minecraft-motd-parser(Packagist) | = v1.0.4 | No fix listed |
| dev-lancer/minecraft-motd-parser(Packagist) | = v1.0.5 | No fix listed |
| dev-lancer/minecraft-motd-parser(Packagist) | <= 1.0.5 | No fix listed |
| jgniecki MinecraftMotdParser | = < 1.0.6 | No fix listed |
| jgniecki MinecraftMotdParser | < 1.0.6 | 1.0.6 |
| jgniecki minecraft motd parser | < 1.0.6 | 1.0.6 |
References
- https://github.com/jgniecki/MinecraftMotdParser/security/advisories/GHSA-q898-frwq-f3qp vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/jgniecki/MinecraftMotdParser/commit/b0ab9d68a964cd3d74977f39a9e7af0a94509f7c patch
- github.com product
- github.com
- github.com