🇰🇷 한글 설명
curl에서 `--remote-header-name` 옵션을 사용할 때, 103 Early Hints 응답이 선행되거나 특정 헤더 처리 순서에 따라 기존 파일 덮어쓰기 방지 기능이 작동하지 않는 취약점입니다. 이로 인해 공격자가 조작된 HTTP 헤더를 통해 사용자의 로컬 파일을 의도치 않게 덮어쓸 수 있습니다.
💡 쉬운 설명
파일을 다운로드할 때 기존 파일을 보호하는 기능이 특정 상황에서 제대로 작동하지 않는 문제입니다. 나쁜 서버가 보낸 명령으로 인해 내 컴퓨터에 이미 있던 중요한 파일이 다른 파일로 바뀔 위험이 있습니다.
🇺🇸 원문 (English)
When invoked with `--remote-header-name` (`-J`), curl fails to preserve its
documented anti-clobbering protection if an intermediate 103 Early Hints
response precedes the final HTTP response, or if an `ETag` header is processed
before `Content-Disposition` under `--etag-save`. This flaw allows an HTTP(S)
server to overwrite an existing local file specified in the
`Content-Disposition` header despite the presence of the `-J` non-overwrite
constraint.
📍 영향받는 시스템
curl (특정 헤더 처리 조건이 충족되는 버전)
⚔️ 공격 벡터
조작된 103 Early Hints 응답 또는 특정 헤더 순서를 가진 HTTP(S) 서버를 통한 파일 덮어쓰기 공격
🛡️ 대응 방법
curl을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 curl 버전을 확인하여 해당 취약점이 해결된 최신 버전인지 제조사의 보안 공지와 대조하십시오.