web-18-dom-clobbering

Installation
SKILL.md

DOM Clobbering — Web Offensive Methodology

Quick Workflow

  1. Identify where the page reads window.* or document.getElementById values from DOM
  2. Inject HTML elements with id or name that match the variable name
  3. If the variable is used in a security-sensitive context (CSP bypass, form action), clobber it

Detection

Basic Clobbering Vectors

<!-- target.js uses: if (window.config) ... -->
<a id="config"></a>              <!-- window.config → <a> element -->
<a id="config" href="data:text/html,<script>alert(1)</script>">
Installs
1
GitHub Stars
6
First Seen
Nov 16, 2026