🔍 CVE-2022-31081

7.3
CVSS Score
HIGH
2022-06-27
2026-06-17 04:44
✅ 완료

🇰🇷 한글 설명

Perl로 작성된 HTTP::Daemon 라이브러리 6.15 미만 버전에서 발생하는 취약점입니다. 이 취약점은 API에 대한 권한 없는 접근을 허용하거나 중간 캐시를 오염시킬 위험이 있습니다. 주로 로컬 개발 및 테스트 환경에서 사용되지만, 보안을 위해 업데이트가 권장됩니다.

💡 쉬운 설명

웹 서버 프로그램의 특정 부분이 잘못 처리되어 해커가 서버의 중요한 정보에 접근하거나 가짜 정보를 저장할 수 있는 문제입니다. 이 문제를 해결하려면 해당 프로그램을 최신 버전으로 업데이트해야 합니다.

🇺🇸 원문 (English)

HTTP::Daemon is a simple http server class written in perl. Versions prior to 6.15 are subject to a vulnerability which could potentially be exploited to gain privileged access to APIs or poison intermediate caches. It is uncertain how large the risks are, most Perl based applications are served on top of Nginx or Apache, not on the `HTTP::Daemon`. This library is commonly used for local development and tests. Users are advised to update to resolve this issue. Users unable to upgrade may add additional request handling logic as a mitigation. After calling `my $rqst = $conn->get_request()` one could inspect the returned `HTTP::Request` object. Querying the 'Content-Length' (`my $cl = $rqst->header('Content-Length')`) will show any abnormalities that should be dealt with by a `400` response. Expected strings of 'Content-Length' SHOULD consist of either a single non-negative integer, or, a comma separated repetition of that number. (that is `42` or `42, 42, 42`). Anything else MUST be rejected.

📍 영향받는 시스템

HTTP::Daemon versions prior to 6.15

⚔️ 공격 벡터

조작된 Content-Length 헤더를 포함한 HTTP 요청을 전송하여 캐시 오염 또는 API 권한 탈취 시도

🛡️ 대응 방법

HTTP::Daemon 라이브러리를 6.15 버전 이상으로 업데이트하거나, Content-Length 헤더 형식을 검증하는 로직을 추가함

🔧 검증 코드

출력된 버전 번호가 6.15 미만이면 취약한 상태이며, 6.15 이상이면 안전합니다.

Shell / Script
perl -MHTTP::Daemon -e 'print $HTTP::Daemon::VERSION . "\n"'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Apache HTTP Server