🇰🇷 한글 설명
follow-redirects 1.16.0부터 1.16.1 버전 사이에서 escapeRegex 함수가 sensitiveHeaders 내의 특정 메타문자를 제대로 이스케이프하지 못하는 취약점이 발견되었습니다. 이로 인해 특정 헤더 이름을 가진 민감한 정보가 리다이렉트 과정에서 필터링되지 않고 공격자가 제어하는 대상 서버로 유출될 수 있습니다.
💡 쉬운 설명
웹사이트가 다른 주소로 연결될 때, 중요한 비밀 정보가 담긴 헤더를 숨겨야 하는데 특수문자 때문에 이 기능이 제대로 작동하지 않는 문제입니다. 결과적으로 사용자의 민감한 정보가 해커의 서버로 전달될 위험이 있습니다.
🇺🇸 원문 (English)
follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From 1.16.0 until 1.16.1, escapeRegex leaves valid header-name metacharacters unescaped in sensitiveHeaders. When an application declares a sensitive header whose name contains ^ or | and follows a cross-origin or HTTPS-to-HTTP redirect, unescaped regular-expression metacharacters prevent the generated filter from matching the declared header name, and the credential header is forwarded to an attacker-controlled redirect target. This issue is fixed in version 1.16.1.
📍 영향받는 시스템
follow-redirects version 1.16.0 to 1.16.1
⚔️ 공격 벡터
특수문자(^, |)가 포함된 민감한 헤더를 사용하는 애플리케이션이 교차 출처 또는 HTTPS-to-HTTP 리다이렉트를 수행할 때 발생
🛡️ 대응 방법
follow-redirects 라이브러리를 1.16.1 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 결과에서 follow-redirects의 버전이 1.16.1보다 낮은지 확인하십시오.
npm list follow-redirects