atjiu / pybbs

更实用的Java开发的社区(论坛),Better use of Java development community (forum)
GNU Affero General Public License v3.0
1.84k stars 706 forks source link

There is an arbitrary administrator operation vulnerability in xss and csrf #184

Closed boluo123432423 closed 1 year ago

boluo123432423 commented 1 year ago

In comment on: image In src/main/java/co/yiiu/pybbs/controller/api/CommentApiController.java, only sensitive keywords are filtered image The src/main/resources/templates/admin/comment/list.ftl parameter is not filtered image Cooperate with csrf ,Review payload View comments in the background: image Payload triggered image image

Temporary repair suggestions:

In src/main/resources/templates/admin/comment/list.ftl 56: Modify to:

${model.formatContent(comment.content)}

Vulnerability submission information author:boluo5100 mail:basiclearn@163.com

atjiu commented 1 year ago

thank you!