jflyfox / jfinal_cms

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

There is an xss vulnerability of HTTP header injection storage in jfinal_cms V5.1.0 #34

Open qq87234770 opened 2 years ago

qq87234770 commented 2 years ago

There is a storage XSS vulnerability in the guest TOP10 of jfinal_cms. TOP10 will display the ip of the user, but it can be modified by X-Forwarded-For, where the attacker can insert malicious XSS code. When the administrator logs in, the malicious XSS code triggers successfully.

payload: X-Forwarded-For: 192.168.1.1

In the background login interface, enter the account password randomly, fill in the correct verification code, and then submit and grab the package. 图片

The contents of the grab bag are as follows: 图片

Add an X-Forwarded-For here and enter paylaod (192.168.1.1) 图片

Then log in with the background administrator account to trigger the storage XSS. 图片

Safety advice: Strictly filter the user's input Strict control of page rendering content