jflyfox / jfinal_cms

jfinal cms是一个java开发的功能强大的信息咨询网站,采用了简洁强大的JFinal作为web框架,模板引擎用的是beetl,数据库用mysql,前端bootstrap框架。支持oauth2认证、帐号注册、密码加密、评论及回复,消息提示,网站访问量统计,文章评论数和浏览量统计,回复管理,支持权限管理。后台模块包含:栏目管理,栏目公告,栏目滚动图片,文章管理,回复管理,意见反馈,我的相册,相册管理,图片管理,专辑管理、视频管理、缓存更新,友情链接,访问统计,联系人管理,模板管理,组织机构管理,用户管理,角色管理,菜单管理,数据字典管理。
http://mtg.jflyfox.com/
Apache License 2.0
628 stars 285 forks source link

A Stored XSS vulnerability exists in jfinal_cms v5.1.0 #18

Closed Al1ex closed 3 years ago

Al1ex commented 4 years ago

There is a storage XSS vulnerability in the blog post of jfinal_ CMS. An attacker can register an account first, then insert malicious XSS code in the post post, and then successfully trigger XSS attack when the administrator or other users view the post. First, register a user test, publish the blog, and insert the malicious XSS attack code in the title of the blog post: Payload: test<img src=x oneerror=alert(document.cookie);> image XSS code can be triggered successfully when viewing the blog post image image Because the blog is visible to any user, XSS code can be triggered when any other user views the blog. Here is an example of viewing the blog as an administrator: image XSS code triggered successfully: image

Suggestion: strictly filter the input and code the output

zcool321 commented 3 years ago

fixed