🔍 CVE-2026-105299

8.7
CVSS Score
HIGH
2026-10-20
2026-10-20 20:17
✅ 완료

🇰🇷 한글 설명

pingora-proxy 0.9.0 미만 버전의 HTTP/1 업스트림 경로에서 Connection 헤더 및 기타 hop-by-hop 헤더를 적절히 제거하지 않는 취약점이 발견되었습니다. 이로 인해 중간 프록시가 보안에 중요한 헤더를 삭제할 수 있어, 인증 우회와 같은 보안 위협이 발생할 수 있습니다.

💡 쉬운 설명

프록시 서버가 전달 과정에서 지워야 할 특정 정보를 실수로 남겨두어, 공격자가 보안 검사를 통과하도록 속일 수 있는 문제입니다. 결과적으로 IP 제한과 같은 보안 설정이 무력화될 수 있습니다.

🇺🇸 원문 (English)

Summary Before version 0.9.0, the HTTP/1 upstream path in pingora-proxy passed the downstream request through upstream_request_filter and wrote it to the upstream without removing the client's Connection header, other hop-by-hop headers, or the headers Connection nominated, although RFC 9110 Section 7.6.1 requires intermediaries to remove them. The HTTP/2 upstream path already removed Connection and related HTTP/1-specific headers. A client could therefore nominate a header that the application adds in upstream_request_filter (for example, Connection: keep-alive, X-Forwarded-For). A downstream HTTP/1 intermediary that honors Connection would then strip the Pingora-added header before it reached the origin. Impact Specifically affects chained deployments where an HTTP/1 intermediary between Pingora and the origin processes Connection nominations (for example, Go's net/http/httputil.ReverseProxy) and the origin trusts headers added by that intermediary (for example, X-Forwarded-For for IP-based authorization). A remote, unauthenticated attacker can have those headers removed, potentially bypassing authorization. The reporter demonstrated access to an IP-restricted endpoint using X-Forwarded-For for IP validation on the origin. This is the same class of issue as CVE-2022-31813 in Apache HTTP Server. Note that Cloudflare CDN customers were unaffected, as no such chained deployment as described above exists with internal Pingora services, and Connection headers are sanitized before arriving at Pingora gateways. Mitigation: * Upgrade to pingora 0.9.0 or later. By default, Pingora now removes hop-by-hop and Connection-nominated headers from upstream requests, and rejects requests whose Connection header nominates Host, X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Proto, or a pseudo-header. This is controlled by PeerOptions::http_upstream_request_policy (HttpUpstreamRequestPolicy). Fix commits: https://github.com/cloudflare/pingora/commit/28c18e6b6b04dd0bd937234e5950049e6d74cded , https://github.com/cloudflare/pingora/commit/ca23f1668eca8e78be7ba62ef0edbd458b40eeee * Do not use HttpUpstreamRequestPolicy::preserve() if the origin relies on headers added by Pingora; it restores the old passthrough behavior. * If you cannot upgrade: in upstream_request_filter, remove the Connection header and every header it nominates before adding trusted headers.

📍 영향받는 시스템

pingora-proxy versions prior to 0.9.0

⚔️ 공격 벡터

공격자가 Connection 헤더를 조작하여 프록시가 추가한 보안 헤더(예: X-Forwarded-For)를 중간 단계에서 삭제되도록 유도함

🛡️ 대응 방법

pingora를 0.9.0 이상 버전으로 업그레이드하거나, 업그레이드가 불가능할 경우 upstream_request_filter에서 직접 헤더를 제거해야 함

🔧 검증 코드

출력된 버전 번호가 0.9.0보다 낮은지 확인하십시오.

Shell / Script
cargo pkgid pingora 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' || echo 'Not installed'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

💻 영향받는 소프트웨어

Apache HTTP Server