Загрузка видео...

Не удалось загрузить видео

На главную

Do not use the script tag when testing for XSS

41,260 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 7

Фото профиля Tib3rius
Tib3rius2 лет назад

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
Anton2 лет назад

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
Bug Bounty Reports Explained2 лет назад

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

Фото профиля Olajeedae Jr 🇳🇬
Olajeedae Jr 🇳🇬2 лет назад

Learnt this the hard way on hacker101 CTF

Фото профиля Mr. Robot.txt
Mr. Robot.txt2 лет назад

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
Bug Bounty Reports Explained2 лет назад

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

Фото профиля Bug Bounty Reports Explained
Bug Bounty Reports Explained2 лет назад

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

Похожие видео