Skip to main content
← All vulnerabilities
CVE-2024-47765GHSA-Q898-FRWQ-F3QP

Minecraft MOTD Parser's HtmlGenerator vulnerable to XSS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • jgniecki MinecraftMotdParser

    fixed in 1.0.6

  • dev-lancer/minecraft-motd-parserPackagist

    fixed in 1.0.6

References 2

GitHub · jgniecki/MinecraftMotdParser