DOM Clobbering
So you've met Content-Security-Policy, the thing that ruins your day by refusing to run untrusted scripts. But almost every site ships JavaScript of its own, and CSP can't block that. If you can't bring your own script, you can try to hijack the one that's already there.
This module walks through DOM Clobbering: using plain HTML to overwrite JavaScript variables and bend existing code to your goals.
Challenges
Additional Resources
- https://domclob.xyz/: Covers common DOM Clobbering-vulnerable patterns
- https://domclob.xyz/domc_markups/list: Lists DOM clobbering payloads
Baby's First DOM Clobbering
Starting…Open Workspace
Real DOM Clobbering
Starting…Open Workspace
Clobbering Attributes
Starting…Open Workspace
Clobbering Multiple Levels
Starting…Open Workspace
Welcome to PWN.GOLF
Starting…Open Workspace
Barrier Breaker
Starting…Open Workspace
Crash Course
Starting…Open Workspace
Clobbering Links
Starting…Open Workspace
Impurifier
Starting…Open Workspace