Loading video...

Video Failed to Load

Go Home

Do not use the script tag when testing for XSS

41,260 views • 2 years ago •via X (Twitter)

7 Comments

Tib3rius's profile picture
Tib3rius2 years ago

Better advice would be to not use exploit payloads for XSS detection in the first place, IMO. I personally like @cinzinga_'s goto payload of <s>asdf since it's small, easily searchable, and the strike-through text is more noticeable.

Anton's profile picture
Anton2 years ago

In case your sink is innerHTML, but you still need to load <script> use this: <iframe srcdoc="<script src=''></script>"></iframe> Last time I saw this trick in @bbuerhaus article

Bug Bounty Reports Explained's profile picture
Bug Bounty Reports Explained2 years ago

@bbuerhaus Yes, I've used for actually exploiting the innerHTML XSS but not for detecting it.

Olajeedae Jr 🇳🇬's profile picture
Olajeedae Jr 🇳🇬2 years ago

Learnt this the hard way on hacker101 CTF

Mr. Robot.txt's profile picture
Mr. Robot.txt2 years ago

That brings me to the question that has been bugging me for a while now (Noob here) When you payload is being encoded, is that the end of the road? Cause usually i get stuck at this point

Bug Bounty Reports Explained's profile picture
Bug Bounty Reports Explained2 years ago

yes, encoding is a proper defence against xss and there's nothing you can do

Bug Bounty Reports Explained's profile picture
Bug Bounty Reports Explained2 years ago

Event handlers use need the same ''unsafe-inline' directive as inline scripts so what you say doesn't make sense.

Related Videos

do not turn up the volume do not use headphones 😭
0:48

Sensitive content

do not turn up the volume do not use headphones 😭

sim

163,942 views • 9 months ago