vue-flash-message icon indicating copy to clipboard operation
vue-flash-message copied to clipboard

Using HTML tags are allowed by default, can cause Cross-Site Scripting (XSS)

Open rozium opened this issue 4 years ago • 0 comments

Looking at this code, it use innerHTML and that means we can use HTML tag that can cause XSS Attack

Payload

this.flash('<img src=x onerror="alert(\'XSS Attack\')">');

Be careful for flash message that contain input from the user!

rozium avatar Jan 03 '21 19:01 rozium