# 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 * [Methodology](#methodology) * [Lab](#lab) * [References](#references) ## Methodology Exploitation requires any kind of `HTML injection` in the page. * Clobbering `x.y.value` ```html // Payload