🇰🇷 한글 설명
curl의 경로 비교 로직 결함으로 인해 힙 버퍼 경계를 벗어나 읽는 취약점이 발견되었습니다. 이로 인해 보안 쿠키가 암호화되지 않은 HTTP 사이트에 의해 덮어씌워지거나 프로그램이 충돌할 수 있습니다.
💡 쉬운 설명
보안이 적용된 사이트에서 사용하던 중요한 정보(쿠키)를 해커가 만든 일반 사이트가 가로채거나 바꿀 수 있는 문제입니다. 이 과정에서 프로그램이 갑자기 꺼지거나 데이터가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
1. A cookie is set using the `secure` keyword for `https://target`
2. curl is redirected to or otherwise made to speak with `http://target` (same
hostname, but using clear text HTTP) using the same cookie set
3. The same cookie name is set - but with only a slash as path (`path="/"`).
Since this site is not secure, the cookie *should* be ignored.
4. A bug in the path comparison logic makes curl read outside a heap buffer
boundary
The bug either causes a crash or it potentially makes the comparison come to
the wrong conclusion and lets the clear-text site override the contents of the
secure cookie, contrary to expectations and depending on the memory contents
immediately following the single-byte allocation that holds the path.
The presumed and correct behavior would be to plainly ignore the second set of
the cookie since it was already set as secure on a secure host so overriding
it on an insecure host should not be okay.
📍 영향받는 시스템
curl (경로 비교 로직 결함이 포함된 버전)
⚔️ 공격 벡터
보안 쿠키가 설정된 상태에서 공격자가 유도한 HTTP 사이트로 리다이렉트하여 쿠키를 덮어쓰는 방식
🛡️ 대응 방법
curl을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 curl 버전을 확인하여 해당 취약점이 해결된 최신 버전인지 확인하십시오.