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

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

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

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
도구/GitHubGitHub/ravi-lk/cve-2026-102253-poc
Vulnerability AnalysisExploitationFuzzingNetwork Security
GitHubravi-lk/cve-2026-102253-poc

CVE-2026-102253-POC

Python proof-of-concept that drives the iperf3 control protocol to trigger an unauthenticated UDP receive-worker infinite loop (CWE-835) denial of service.

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

CVE-2026-102253-POC

DOS infinite-loop Vulnerability POC

Summary

An unauthenticated remote attacker who can reach an iperf3 -s server’s control port can crash-loop the server’s UDP receive worker into an unrecoverable, CPU-pinning infinite loop using a single crafted control-channel parameter message followed by one UDP data packet. No credentials, no valid test session, and no more than one small TCP message plus one 16-byte UDP datagram are required.

Details

Affected package: iperf3 (esnet/iperf) Affected versions: current main at git c9b7422 (“3.21+”); the bug is present in the shared blksize validation and receive-loop logic and does not appear to be new to this commit — needs maintainer confirmation of the earliest affected release. Not present in the CVE-2025-54349/54350/54351 fix set (those addressed iperf_auth.c and the --skip-rx-copy buffer overflow in net.c; this is a distinct code path and root cause). Patched version: none yet (0-day at time of report)

Root Cause

iperf_udp_recv() (src/iperf_udp.c:60) advances through a receive buffer using a per-iteration stride, dgram_sz, taken directly from the client-negotiated blksize (the len control parameter):

// src/iperf_udp.c:124-232 (abridged)
dgram_buf = sp->buffer;
dgram_buf_end = sp->buffer + buf_sz;

while (buf_sz >= dgram_sz && dgram_buf + dgram_sz <= dgram_buf_end) {
    if (buf_sz < min_pkt_size)   // min_pkt_size == 12
        break;
    ... parse 12/20-byte packet header ...
    dgram_buf += dgram_sz;
    buf_sz    -= dgram_sz;
}

If dgram_sz == 0, neither dgram_buf nor buf_sz changes on any iteration. Both loop conditions (buf_sz >= 0 and an unmoving pointer comparison) remain true forever, and the only internal break requires buf_sz to shrink below 12 — which never happens. Once entered with buf_sz >= 12 and dgram_sz == 0, the loop is unconditionally infinite.

dgram_sz is set directly from sp->settings->blksize (iperf_udp.c:90 and :95), and blksize is attacker-controlled via the len field of the control-channel JSON parameter exchange (get_parameters(), src/iperf_api.c:2654-2661):

// src/iperf_api.c:2654-2661
if ((j_p = ...,"len", cJSON_Number)) != NULL){
    if (j_p->valueint < 0){ i_errno = IEBLOCKSIZE; r = -1; }
    else test->settings->blksize = j_p->valueint;   // 0 is accepted
}

The post-parse sanity check (src/iperf_api.c:2805-2815) has a validation gap specific to UDP:

// src/iperf_api.c:2805-2815
if ((test->protocol->id != Pudp && test->settings->blksize <= 0)   // UDP: skipped
    || test->settings->blksize > MAX_BLOCKSIZE) {
    i_errno = IEBLOCKSIZE; return -1;
}
if (test->protocol->id == Pudp &&
    (test->settings->blksize > 0 &&                                 // <-- gated on > 0
        (test->settings->blksize < MIN_UDP_BLOCKSIZE || test->settings->blksize > MAX_UDP_BLOCKSIZE))) {
    i_errno = IEUDPBLOCKSIZE; return -1;
}

The non-UDP branch correctly rejects blksize <= 0. The UDP branch’s range check is only applied when blksize is already greater than 0 — so blksize == 0 bypasses both checks and is accepted as a valid UDP block size, even though the genuine iperf3 client never sends this value (it resolves -l 0 to a concrete positive size from the path MTU before transmission — iperf_client_api.c:513-518). This is only reachable by a client that speaks the wire protocol directly, i.e. a hostile peer.

A second condition is needed to actually reach the loop with buf_sz > 0: by default, with blksize == 0, the plain UDP read requests 0 bytes and returns early safely. Setting gro=1 with any positive gro_bf_size in the same parameter message causes the receive size to instead be gro_bf_size (iperf_udp.c:87), while dgram_sz is still taken from blksize == 0 (iperf_udp.c:90). UDP_GRO is a standard, unprivileged socket option on modern Linux (confirmed available in the tested build).

(Note: an initially-hypothesized alternate trigger via skip_rx_copy=1 / MSG_TRUNC does not work — the stream buffer is allocated via mmap(NULL, blksize, ...) in iperf_new_stream(), and blksize == 0 without GRO causes that mmap call to fail with EINVAL before the stream/thread is even created. Only the GRO path reaches the vulnerable loop; this was verified experimentally, not assumed.)

Attack Vector

  1. Open a TCP connection to the iperf3 server’s control port (default 5201).
  2. Send the 37-byte cookie the protocol expects (any 37 bytes; content is not validated at this stage).
  3. Receive the server’s PARAM_EXCHANGE (state 9) byte.
  4. Send a 4-byte big-endian length prefix followed by the JSON body: {"udp":true,"len":0,"gro":1,"gro_bf_size":1000,"omit":0,"time":10,"parallel":1}.
  5. Receive CREATE_STREAMS (state 10).
  6. Open a UDP socket to the same host:port, send the 4-byte UDP_CONNECT_MSG handshake value, and receive the 4-byte UDP_CONNECT_REPLY.
  7. The server (with default num_streams=1, mode RECEIVER) immediately transitions to TEST_START (state 1) then TEST_RUNNING (state 2) on the control channel.
  8. Send one UDP datagram of ≥12 bytes on the connected UDP socket (e.g. 16 zero bytes).
  9. The server’s receive thread enters the infinite loop described above and never returns.

No authentication, no valid iperf3 client, and no more than a handful of protocol messages are required. --authorized-users (pre-shared RSA/username auth), which is not the default configuration, is the only mitigation.

Impact

The server’s per-stream receive thread is permanently pinned at ~100% CPU and never completes; the affected test/connection can never be cleaned up by the server on its own, and the process must be forcibly killed (observed requiring SIGKILL; the process did not respond to normal control-channel closure). Since iperf3 -s serves one test/connection at a time by default, a single crafted packet renders the server unusable until an operator manually intervenes — a clean, unauthenticated, single-packet-triggered availability denial-of-service.

Proof of Concept

A standalone Python 3 script (no dependency on the iperf3 client binary) that implements the control protocol described above and demonstrates the hang is attached: poc_udp_dos.py.

$ ./src/iperf3 -s -p 5201
$ python3 poc_udp_dos.py <server-ip> 5201

Observed output (against a locally built git HEAD c9b7422 server):

[*] Server state -> 9 (expect 9=PARAM_EXCHANGE)
[*] Sending crafted params: {'udp': True, 'len': 0, 'gro': 1, 'gro_bf_size': 1000, ...}
[*] Server state -> 10 (expect 10=CREATE_STREAMS)
[*] UDP connect reply: 36373839
[*] Server state -> 1
[*] Server state -> 2
[*] Sending ONE malicious UDP datagram (16 bytes, dgram_sz=0 -> infinite loop)
[+] Control channel produced no further data for 15s after the single trigger datagram

Severity

CVSS 3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H = 7.5 HIGHCWE: CWE-835 (Loop with Unreachable Exit Condition) leading to CWE-400 (Uncontrolled Resource Consumption)

Credits

  • Reporter: Ravindu Lakmina Munaweera

References

  • CVE Record: CVE-2026-102253
  • VulnCheck Advisory: iperf3 UDP Receive Worker Infinite Loop DoS
  • Vendor Release notes: iPerf3 Release Notes
도구 다운로드

인기

모두 보기 →

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

  • 1

    OsintHunter

    letox4/osinthunter

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

    915
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    891
  • 3

    wifit3

    derv82/wifit3

    Wifite지만 USB 전용 및 크로스 플랫폼.

    678
  • 4

    jumpserver

    jumpserver/jumpserver

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

    454
  • 5

    SafeLine

    chaitin/safeline

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

    404
  • 6

    looking-glass

    anonghosty/looking-glass

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

    388

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →