Characters that can break out of an inline style with single quotes
1
Characters that can break out of an inline style with single quotes
Created by: 0xdef1ant
Created on: Saturday, July 13, 2024 at 7:37:50 PM
Updated on: Thursday, November 21, 2024 at 7:58:36 AM
Vector type: XSS
Vector charset: UTF-8
Template used:
<div id="test" style='$[chr]onload="alert(1)">hello</div>
Code used after fuzz:
let a = document.getElementById("test");
if (typeof a.onload === 'function') {
log(String.fromCharCode($[i]))
}
Your browser was detected as:
Detecting... Detecting... Detecting... Detecting...
Sample payloads
<div id="test" style='