Anchor id+name clobbering chain
HTML bodyseverity: medium
<a id=defaultView><a id=defaultView name=opener href=//XSS.attacker.com>- Context
- App reads a global it assumes code set (e.g. window.defaultView).
- What it needs
- HTML injection allowed but script execution blocked.
- Why it works
- Two named anchors clobber the property into an attacker-controlled value.