🔍 CVE-2024-21494

5.4
CVSS Score
MEDIUM
2024-02-17
2026-06-17 07:09
✅ 완료

🇰🇷 한글 설명

github.com/greenpau/caddy-security 패키지의 모든 버전에서 X-Forwarded-For 헤더를 통한 인증 우회 취약점이 발견되었습니다. 부적절한 입력값 검증으로 인해 공격자가 사용자 식별 모듈(/whoami API 엔드포인트)에서 사용하는 IP 주소를 위조할 수 있습니다. 시스템이 위조된 IP를 신뢰할 경우 권한 없는 접근이 발생할 수 있습니다.

💡 쉬운 설명

공격자가 자신의 IP 주소를 가짜로 속여서 시스템을 속일 수 있는 보안 약점이 있습니다. 이를 통해 원래는 접근할 수 없는 정보나 기능에 몰래 들어갈 위험이 있습니다.

🇺🇸 원문 (English)

All versions of the package github.com/greenpau/caddy-security are vulnerable to Authentication Bypass by Spoofing via the X-Forwarded-For header due to improper input sanitization. An attacker can spoof an IP address used in the user identity module (/whoami API endpoint). This could lead to unauthorized access if the system trusts this spoofed IP address.

📍 영향받는 시스템

github.com/greenpau/caddy-security 패키지의 모든 버전

⚔️ 공격 벡터

X-Forwarded-For HTTP 헤더를 조작하여 IP 주소를 위조하는 방식

🛡️ 대응 방법

해당 패키지를 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 패키지 버전이 보안 패치가 적용된 최신 버전인지 확인하십시오.

Shell / Script
go list -m github.com/greenpau/caddy-security

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N