Doctreat Core <= 1.6.8 - Unauthenticated Privilege Escalation | RCE
Doctreat Core <= 1.6.8 - Unauthenticated Privilege Escalation | RCE
Full-chain exploit for AJ-Report ≤ 1.7.1 — from unauthenticated access to remote code execution,
web shell deployment, domain extraction, and RDP account creation.
| Field | Detail |
|---|---|
| CVE ID | CVE-2026-120209 |
| Affected | anji-plus/AJ-Report — all versions through 1.7.1 |
| Severity | Critical — CVSS v4.0: 9.3 / CVSS v3.1: 9.8 |
| Weakness | CWE-321 — Use of Hard-coded Cryptographic Key |
| Attack Vector | Network (no authentication, no user interaction) |
| Published | October 31, 2026 |
| Credit | LionTree (original disclosure) |
AJ-Report through version 1.7.1 signs share tokens with a hard-coded JWT secret (aj-report), allowing attackers to forge valid Share-Token headers offline. An attacker mints a token with reportCode=dataSet to access the /dataSet/testTransform endpoint, which passes user-supplied scripts directly to GroovyClassLoader — enabling unauthenticated remote code execution on the underlying server.
┌─────────────────────────────────────────────────────────────────────┐
│ CVE-2026-120209 │
│ Full Exploitation Chain │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ 1. DETECT Fingerprint AJ-Report on target │
│ │ POST /dataSet/testTransform → "credentials" │
│ ▼ │
│ 2. FORGE TOKEN Mint JWT Share-Token offline │
│ │ Secret: "aj-report" reportCode: "dataSet" │
│ ▼ │
│ 3. BYPASS AUTH Submit forged Share-Token header │
│ │ Endpoint validates token → grants access │
│ ▼ │
│ 4. GROOVY RCE Send Groovy script via testTransform │
│ │ GroovyClassLoader executes arbitrary code │
│ ▼ │
│ 5. RECON Extract OS, user, root, PHP/Python, hostname │
│ ▼ │
│ 6. DEPLOY Write PHP/ASPX shells to web directories │
│ │ Start standalone PHP/Python server if needed │
│ ▼ │
│ 7. PERSIST Fix nginx/IIS config, verify HTTP access │
│ ▼ │
│ 8. DOMAINS Extract domains → deploy shells per domain │
│ ▼ │
│ 9. RDP (Win) Create admin RDP account + firewall rule │
│ │
└─────────────────────────────────────────────────────────────────────┘
disable_functions in php.ini and reloads PHP-FPMpip install pyjwt
No other external dependencies — the exploit uses Python standard library (
http.client,ssl,json,threading,base64) for all HTTP operations.
python CVE-2026-120209.py
The tool presents an interactive menu:
▸ 1 SCAN Mass scan + deploy shells + RDP
▸ 2 EXPLOIT Single target full chain + interactive CMD
Scans a list of targets, exploits vulnerable instances, deploys shells, extracts domains, and sets up RDP.
▸ Mode: 1
▸ Target list: targets.txt
▸ Threads [10]: 50
Target list format — one target per line:
http://192.168.1.10:9095
https://report.example.com
10.0.0.5:9095
example.com
http://10.0.0.6:9095/report
Output files (saved in the same directory as the target list):
| File | Content |
|---|---|
Nx_shellS.txt | Verified web shell URLs |
Nx_RCE.txt | All RCE-confirmed targets with details |
Nx_RDPs.txt | Created RDP accounts (Windows targets) |
Nx_domains_shells.txt | Domain-based shell URLs |
Pass.txt | Shell and RDP credentials reference |
Full exploitation chain against a single target with verbose output and interactive command execution.
▸ Mode: 2
▸ Target URL: http://192.168.1.10:9095
After successful exploitation, an interactive command shell is available:
[email protected] > whoami
root
[email protected] > cat /etc/passwd
...
[email protected] > exit