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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-54374 PoC — WordPress plugin Sogrid 路径遍历漏洞

Source
Associated Vulnerability
Title:WordPress plugin Sogrid 路径遍历漏洞 (CVE-2024-54374)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Sogrid 1.5.6版本及之前版本存在路径遍历漏洞,该漏洞源于将路径名不正确地限制到受限目录,导致路径遍历漏洞。
Description
Sogrid <= 1.5.6 - Unauthenticated Local File Inclusion
Readme
# CVE-2024-54374
Sogrid <= 1.5.6 - Unauthenticated Local File Inclusion

# Description

The Sogrid plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 1.5.6. This makes it possible for unauthenticated attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.

## Details

- **Type**: plugin
- **Slug**: sogrid
- **Affected Version**: 1.5.6
- **CVSS Score**: 9.8
- **CVSS Rating**: Critical
- **CVSS Vector**: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- **CVE**: CVE-2024-54374
- **Status**: Active

POC
---

```
wp-dev.ddev.site/wp-content/plugins/sogrid/src/admin-panel/views/panel.php?tab=FILEHERE
```

Note: only can load files inside `/wp-content/plugins/sogrid/src/admin-panel/views/` so useless.
File Snapshot

[4.0K] /data/pocs/23f79464d6de788756dd63856f33da23a7531406 └── [ 984] 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.