🇰🇷 한글 설명
Apache 2.x HTTP 서버용 mod_auth_openidc 모듈에서 오픈 리다이렉트 취약점이 발견되었습니다. oidc_validate_redirect_url() 함수가 '/ '로 시작하는 URL을 제대로 검증하지 못해 발생하며, 2.4.12.2 미만 버전이 이에 해당합니다.
💡 쉬운 설명
로그아웃 시 사용자를 엉뚱한 사이트로 강제 이동시킬 수 있는 보안 약점입니다. 공격자가 이 취약점을 이용해 사용자를 피싱 사이트로 유도할 수 있습니다.
🇺🇸 원문 (English)
mod_auth_openidc is an OpenID Certified™ authentication and authorization module for the Apache 2.x HTTP server. Versions prior to 2.4.12.2 are vulnerable to Open Redirect. When providing a logout parameter to the redirect URI, the existing code in oidc_validate_redirect_url() does not properly check for URLs that start with /\t, leading to an open redirect. This issue has been patched in version 2.4.12.2. Users unable to upgrade can mitigate the issue by configuring mod_auth_openidc to only allow redirection when the destination matches a given regular expression with OIDCRedirectURLsAllowed.
📍 영향받는 시스템
mod_auth_openidc 2.4.12.2 미만 버전
⚔️ 공격 벡터
로그아웃 파라미터의 리다이렉트 URI에 '/ '로 시작하는 조작된 URL을 삽입하여 공격
🛡️ 대응 방법
mod_auth_openidc를 2.4.12.2 이상 버전으로 업그레이드하거나 OIDCRedirectURLsAllowed 설정을 통해 허용된 정규식만 리다이렉트되도록 제한
🔧 검증 코드
출력된 모듈 버전이 2.4.12.2보다 낮은지 확인하여 취약 여부를 판단합니다.
apache2ctl -M | grep mod_auth_openidc && mod_auth_openidc --version 2>/dev/null || dpkg -l | grep mod-auth-openidc