--- name: payloads-dom-clobbering description: "DOM Clobbering is a technique where global variables can be overwritten or 'clobbered' by naming HTML elements with certain IDs or names. This can cause unexpected behavior in scripts and potentially lead to security vulnerabilities. - Comprehensive List of DOM Clobbering Payloads for Mobile and Desktop Web Browsers - A web-based tool designed for testing various HTML parsers and sanitizers. -..." --- # DOM Clobbering Payloads > **Source:** [PayloadsAllTheThings/DOM Clobbering](https://github.com/swisskyrepo/payloadsallthethings/tree/master/DOM%20Clobbering) > **Category:** `payloads-research` | **Skill ID:** `payloads-dom-clobbering` ## Overview DOM clobbering attack payloads for overriding globals and enabling XSS via named elements. This skill integrates the full **PayloadsAllTheThings** (PATT) payload library for the **DOM Clobbering Payloads** domain into the REA_Skill framework. Use it during authorized penetration testing, bug bounty research, security audits, and CTF challenges. ## Workflow ### 1. Recon & Identification - Identify the target technology stack and injection points - Enumerate endpoints, parameters, and input vectors - Determine applicable payload categories from the reference below ### 2. Payload Selection - Browse the PATT payload library for the attack class - Select encoding-appropriate payloads for the target environment - Consider WAF bypass variants and obfuscation techniques ### 3. Exploitation (Authorized Only) - Test payloads in order: passive → active → escalation - Document every payload tested and its response - Capture PoC evidence (screenshots, HTTP logs, curl output) ### 4. Verification & Reporting - Confirm the vulnerability with a clean minimal PoC - Map findings to CVE/CWE where applicable - Report with remediation recommendations and code fixes --- ## Full PATT Reference # DOM Clobbering > DOM Clobbering is a technique where global variables can be overwritten or "clobbered" by naming HTML elements with certain IDs or names. This can cause unexpected behavior in scripts and potentially lead to security vulnerabilities. ## Summary - [Tools](#tools) - [Methodology](#methodology) - [Labs](#labs) - [References](#references) ## Tools - [SoheilKhodayari/DOMClobbering](https://domclob.xyz/domc_markups/list) - Comprehensive List of DOM Clobbering Payloads for Mobile and Desktop Web Browsers - [yeswehack/Dom-Explorer](https://github.com/yeswehack/Dom-Explorer) - A web-based tool designed for testing various HTML parsers and sanitizers. - [yeswehack/Dom-Explorer Live](https://yeswehack.github.io/Dom-Explorer/dom-explorer#eyJpbnB1dCI6IiIsInBpcGVsaW5lcyI6W3siaWQiOiJ0ZGpvZjYwNSIsIm5hbWUiOiJEb20gVHJlZSIsInBpcGVzIjpbeyJuYW1lIjoiRG9tUGFyc2VyIiwiaWQiOiJhYjU1anN2YyIsImhpZGUiOmZhbHNlLCJza2lwIjpmYWxzZSwib3B0cyI6eyJ0eXBlIjoidGV4dC9odG1sIiwic2VsZWN0b3IiOiJib2R5Iiwib3V0cHV0IjoiaW5uZXJIVE1MIiwiYWRkRG9jdHlwZSI6dHJ1ZX19XX1dfQ==) - Reveal how browsers parse HTML and find mutated XSS vulnerabilities ## Methodology Exploitation requires any kind of `HTML injection` in the page. - Clobbering `x.y.value` ```html // Payload