🇰🇷 한글 설명
Pingora HTTP 프록시 프레임워크의 기본 캐시 키 생성 방식에서 캐시 포이즈닝 취약점이 발견되었습니다. 기본 구현이 Host 헤더와 같은 중요한 요소를 제외하고 URI 경로만 사용하여 캐시 키를 생성하기 때문에, 공격자가 캐시를 오염시켜 다른 사용자의 요청에 잘못된 응답을 전달할 수 있습니다.
💡 쉬운 설명
웹사이트의 임시 저장소(캐시)가 주소만 보고 데이터를 저장하다 보니, 다른 사이트의 내용을 내 사이트 내용인 것처럼 착각하여 보여줄 수 있는 문제입니다. 이를 통해 공격자는 가짜 정보를 보여주거나 다른 사용자의 정보를 가로챌 수 있습니다.
🇺🇸 원문 (English)
A cache poisoning vulnerability has been found in the Pingora HTTP proxy framework’s default cache key construction. The issue occurs because the default HTTP cache key implementation generates cache keys using only the URI path, excluding critical factors such as the host header (authority). Operators relying on the default are vulnerable to cache poisoning, and cross-origin responses may be improperly served to users.
Impact
This vulnerability affects users of Pingora's alpha proxy caching feature who relied on the default CacheKey implementation. An attacker could exploit this for:
* Cross-tenant data leakage: In multi-tenant deployments, poison the cache so that users from one tenant receive cached responses from another tenant
* Cache poisoning attacks: Serve malicious content to legitimate users by poisoning shared cache entries
Cloudflare's CDN infrastructure was not affected by this vulnerability, as Cloudflare's default cache key implementation uses multiple factors to prevent cache key poisoning and never made use of the previously provided default.
Mitigation:
We strongly recommend Pingora users to upgrade to Pingora v0.8.0 or higher, which removes the insecure default cache key implementation. Users must now explicitly implement their own callback that includes appropriate factors such as Host header, origin server HTTP scheme, and other attributes their cache should vary on.
Pingora users on previous versions may also remove any of their default CacheKey usage and implement their own that should at minimum include the host header / authority and upstream peer’s HTTP scheme.
📍 영향받는 시스템
Pingora alpha proxy caching feature를 사용하는 모든 버전 (v0.8.0 미만)
⚔️ 공격 벡터
Host 헤더를 제외한 URI 경로만을 이용해 캐시 키를 생성하는 허점을 악용하여 캐시를 오염시킴
🛡️ 대응 방법
Pingora를 v0.8.0 이상으로 업그레이드하거나, Host 헤더 및 HTTP 스킴을 포함하도록 캐시 키 구현을 직접 수정해야 함
🔧 검증 코드
출력된 버전이 v0.8.0 미만이면 취약한 상태이며, v0.8.0 이상이거나 결과가 없으면 안전하거나 설치되지 않은 상태입니다.
cargo pkgid pingora 2>/dev/null | grep -E 'v0\.[0-7]\.' || echo 'Safe or Not Installed'