🇰🇷 한글 설명
OAuth2 베어러 토큰을 사용하여 HTTP(S) 전송을 수행할 때, 리다이렉트가 발생하면 curl이 특정 상황에서 토큰을 두 번째 호스트로 유출할 수 있는 취약점입니다. 특히 리다이렉트된 호스트의 정보가 .netrc 파일에 존재할 경우, 첫 번째 호스트를 위해 설정된 토큰이 두 번째 호스트로 전달될 수 있습니다.
💡 쉬운 설명
인터넷 주소가 자동으로 바뀌는 과정에서 중요한 로그인 정보(토큰)가 원래 가려져야 할 엉뚱한 사이트로 전달될 수 있는 문제입니다. 사용자의 설정 파일에 저장된 정보 때문에 보안 정보가 외부로 새 나갈 위험이 있습니다.
🇺🇸 원문 (English)
When an OAuth2 bearer token is used for an HTTP(S) transfer, and that transfer
performs a redirect to a second URL, curl could leak that token to the second
hostname under some circumstances.
If the hostname that the first request is redirected to has information in the
used .netrc file, with either of the `machine` or `default` keywords, curl
would pass on the bearer token set for the first host also to the second one.
📍 영향받는 시스템
OAuth2 베어러 토큰을 사용하며 .netrc 파일을 사용하는 curl 버전
⚔️ 공격 벡터
공격자가 제어하는 URL로 리다이렉트를 유도하여 사용자의 OAuth2 토큰을 탈취
🛡️ 대응 방법
curl을 최신 보안 패치가 적용된 버전으로 업데이트하거나 .netrc 파일의 설정을 점검하십시오.
🔧 검증 코드
출력된 curl 버전을 확인하여 해당 취약점이 해결된 최신 버전인지 확인하십시오.