CVE-2024-47765
Jgniecki Minecraft Motd Parser vulnerability
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.
Affected products
Minecraft Motd Parser. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Jgniecki Minecraft Motd Parser runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/jgniecki/MinecraftMotdParser/security/advisories/GHSA-q898-frwq-f3qp · Vendor Advisory
- github.com/jgniecki/MinecraftMotdParser/commit/b0ab9d68a964cd3d74977f39a9e7af0a94509f7c · Patch
- nvd.nist.gov/vuln/detail/CVE-2024-47765
- github.com/jgniecki/MinecraftMotdParser/blob/0412f68eeb91729a00444a8d6c00c45623884aa5/src/
- github.com/jgniecki/MinecraftMotdParser/blob/0412f68eeb91729a00444a8d6c00c45623884aa5/src/
- github.com/advisories/GHSA-q898-frwq-f3qp
- nvd.nist.gov/vuln/detail/CVE-2024-47765
- cve.org/CVERecord?id=CVE-2024-47765
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.