Execute JavaScript for XSS without script tags

后端 未结 3 1810
时光取名叫无心
时光取名叫无心 2021-02-08 22:17

I am learning about XSS (for ethical purposes), and I was wondering how to execute some JavaScript code without using

3条回答
  •  甜味超标
    2021-02-08 22:33

    Another one was mentioned at: https://stackoverflow.com/a/53430230/895245

    asdf
    

    Works on Chromium 81.

    More important perhaps is the question of how to sanitize against it, see e.g.:

    • How to prevent XSS with HTML/PHP?
    • How to sanitize HTML code in Java to prevent XSS attacks?
    • Is using jquery parseHTML to remove script tags enough to prevent XSS attacks?

提交回复
热议问题