🇰🇷 한글 설명
libpsl 기능이 활성화된 경우, libcurl이 Set-Cookie 헤더의 Domain 속성이 공용 접미사(Public Suffix)와 일치할 때 경계 검사를 제대로 수행하지 못하는 취약점입니다. 이로 인해 쿠키가 와일드카드 도메인 범위로 저장되어, 동일한 접미사를 공유하는 다른 하위 도메인으로 쿠키가 부적절하게 전송될 수 있습니다.
💡 쉬운 설명
웹사이트가 쿠키를 저장할 때 보안 규칙을 어기고 너무 넓은 범위로 저장하는 문제입니다. 이로 인해 공격자가 만든 사이트에서도 사용자의 중요한 쿠키 정보가 유출될 수 있습니다.
🇺🇸 원문 (English)
When libpsl support is enabled, libcurl fails to enforce the Public Suffix
List boundary check when processing a `Set-Cookie` header where the `Domain`
attribute explicitly matches an origin host that is itself a public suffix
(e.g., `Domain=co.uk` set by `co.uk`).
Instead of coercing it into a strict host-only cookie, libcurl saves the
cookie with wildcard domain scope (`.co.uk`). Consequently, the cookie is
inappropriately included in subsequent outbound requests or HTTP redirects to
arbitrary sibling subdomains under the same public suffix (e.g.,
`attacker.co.uk`).
📍 영향받는 시스템
libpsl 지원이 활성화된 libcurl 라이브러리
⚔️ 공격 벡터
공격자가 공용 접미사(예: co.uk)를 도메인으로 설정한 쿠키를 전송하여 사용자의 브라우저/클라이언트 쿠키를 탈취
🛡️ 대응 방법
libcurl을 최신 보안 패치가 적용된 버전으로 업데이트하거나 libpsl 관련 설정을 검토하십시오.
🔧 검증 코드
출력 결과에 libpsl 관련 정보가 포함되어 있다면 해당 취약점의 영향을 받을 가능성이 있는 환경입니다.
curl --version | grep -i 'libpsl'