🔍 CVE-2022-27779

5.3
CVSS Score
MEDIUM
2022-06-02
2026-11-02 19:17
✅ 완료

🇰🇷 한글 설명

libcurl에서 호스트 이름 끝에 마침표(.)가 포함된 경우 최상위 도메인(TLD)에 쿠키가 설정되는 것을 잘못 허용하는 취약점입니다. 이로 인해 임의의 사이트가 다른 무관한 도메인에 쿠키를 설정하고 전송할 수 있게 됩니다.

💡 쉬운 설명

웹사이트 주소 끝에 점을 찍으면 보안 검사를 우회하여 다른 사이트의 정보를 훔칠 수 있는 쿠키를 심을 수 있는 문제입니다. 이를 통해 공격자가 사용자의 로그인 정보나 개인 설정을 가로챌 위험이 있습니다.

🇺🇸 원문 (English)

libcurl wrongly allows cookies to be set for Top Level Domains (TLDs) if thehost name is provided with a trailing dot.curl can be told to receive and send cookies. curl's "cookie engine" can bebuilt with or without [Public Suffix List](https://publicsuffix.org/)awareness. If PSL support not provided, a more rudimentary check exists to atleast prevent cookies from being set on TLDs. This check was broken if thehost name in the URL uses a trailing dot.This can allow arbitrary sites to set cookies that then would get sent to adifferent and unrelated site or domain.

📍 영향받는 시스템

Public Suffix List(PSL) 지원 없이 빌드된 libcurl 버전

⚔️ 공격 벡터

호스트 이름 끝에 마침표(.)를 붙인 URL을 사용하여 TLD 쿠키 설정 보안 검사를 우회함

🛡️ 대응 방법

libcurl을 최신 버전으로 업데이트하거나, Public Suffix List(PSL) 지원을 포함하여 다시 빌드함

🔧 검증 코드

출력된 libcurl 버전을 확인하여 취약점이 해결된 최신 버전인지 또는 PSL 지원 여부를 확인합니다.

Shell / Script
curl --version | grep -i 'libcurl'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

libcurl