GODSON'S BLOG
โ† Back to Writeups

Tagged: #dom-clobbering

2 writeups
Client-Side / DOM

DOM Clobbering - Clobber Undefined Variables!

A TamilCTF web challenge with HTML injection but a tight CSP โ€” instead of chasing script execution, we DOM-clobber two undefined debug variables (DEBUG_MODE, DEBUG_LOGGING_URL) referenced by app.js to redirect the admin bot's cookie exfiltration to our own domain.

Mar 28, 2022 · 7 min read
Client-Side / DOM

An Art of DOM Clobbering ๐ŸŽญ

A deep dive into DOM Clobbering from first principles โ€” how id/name attributes create references on window and document, why window properties can't be overridden but document properties can, and how to chain clobbering across multiple levels using nested iframes.

Jul 21, 2021 · 13 min read