saysky / ForestBlog

一个简单漂亮的SSM(Spring+SpringMVC+Mybatis)博客系统
https://forestblog.liuyanzhao.com
4.52k stars 1.65k forks source link

There is stored xss vulnerability #19

Closed czming123 closed 5 years ago

czming123 commented 5 years ago

Bug Report

I found stored-xss vulnerability in the website everywhere. I run the project in my environment with tomcat. In article comment editing , I insert some xss payload for my test. payload: <img src=x onerror=alert(1) /> image image we can see the javascript payload is effective. And then I test the name input, It also has the problem. image

When the admin user logins in the site in background, it also strikes in the website. image

czming123 commented 5 years ago

not just in comment, the name can also insert xss payload to attack