🇰🇷 한글 설명
악의적인 서버가 curl에 과도한 양의 Set-Cookie 헤더를 전송하여 curl의 내부 요청 크기 제한을 초과하게 만드는 취약점입니다. 이로 인해 동일한 도메인이나 관련 도메인에 대한 후속 HTTP 요청이 거부되어 서비스 거부(DoS) 상태가 발생할 수 있습니다.
💡 쉬운 설명
나쁜 서버가 쿠키를 너무 많이 보내서, 내 컴퓨터의 curl 프로그램이 다음번에 웹사이트에 접속할 때 너무 큰 데이터를 보내게 만들어 접속을 막아버리는 공격입니다. 이로 인해 특정 웹사이트에 계속 접속하지 못하는 상태가 될 수 있습니다.
🇺🇸 원문 (English)
A malicious server can serve excessive amounts of `Set-Cookie:` headers in a HTTP response to curl and curl < 7.84.0 stores all of them. A sufficiently large amount of (big) cookies make subsequent HTTP requests to this, or other servers to which the cookies match, create requests that become larger than the threshold that curl uses internally to avoid sending crazy large requests (1048576 bytes) and instead returns an error.This denial state might remain for as long as the same cookies are kept, match and haven't expired. Due to cookie matching rules, a server on `foo.example.com` can set cookies that also would match for `bar.example.com`, making it it possible for a "sister server" to effectively cause a denial of service for a sibling site on the same second level domain using this method.
📍 영향받는 시스템
curl 7.84.0 미만 버전
⚔️ 공격 벡터
악의적인 서버가 과도한 Set-Cookie 헤더를 포함한 HTTP 응답을 전송하여 클라이언트의 쿠키 저장소를 오염시킴
🛡️ 대응 방법
curl을 7.84.0 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 7.84.0 미만이면 취약한 상태이며, 7.84.0 이상이면 안전합니다.
curl --version | grep -E 'curl/[0-9]+\.[0-9]+'