🔍 CVE-2026-7381

9.1
CVSS Score
CRITICAL
2026-04-29
2026-06-17 11:02
✅ 완료

🇰🇷 한글 설명

Plack::Middleware::XSendfile 1.0053 이하 버전에서 클라이언트가 X-Sendfile-Type 헤더를 조작하여 서버의 임의 파일 경로에 접근할 수 있는 취약점입니다. nginx 리버스 프록시 환경에서 X-Accel-Redirect 타입으로 설정된 X-Accel-Mapping을 통해 서버의 민감한 파일들을 노출시킬 수 있습니다.

💡 쉬운 설명

웹 애플리케이션의 파일 전송 기능이 사용자의 요청을 충분히 검증하지 않아, 해커가 서버에 있는 어떤 파일이든 접근할 수 있습니다. 이를 통해 암호, 설정 파일, 데이터베이스 정보 등 민감한 정보를 도용당할 수 있습니다.

🇺🇸 원문 (English)

Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting. Plack::Middleware::XSendfile allows the variation setting (sendfile type) to be set by the client via the X-Sendfile-Type header, if it is not considered in the middleware constructor or the Plack environment. A malicious client can set the X-Sendfile-Type header to "X-Accel-Redirect" to services running behind nginx reverse proxies, and then set the X-Accel-Mapping to map the path to an arbitrary file on the server. Since 1.0053, Plack::Middleware::XSendfile is deprecated and will be removed from future releases of Plack. This is similar to CVE-2025-61780 for Rack::Sendfile, although Plack::Middleware::XSendfile has some mitigations that disallow regular expressions to be used in the mapping, and only apply the mapping for the "X-Accel-Redirect" type.

📍 영향받는 시스템

Plack::Middleware::XSendfile <= 1.0053 (Perl PSGI 웹 프레임워크)

⚔️ 공격 벡터

악의적 클라이언트가 HTTP 요청 헤더(X-Sendfile-Type, X-Accel-Mapping)를 조작하여 서버의 임의 경로 파일 접근

🛡️ 대응 방법

Plack를 최신 버전으로 업그레이드하거나 deprecated된 XSendfile 미들웨어 제거 및 보안 보완 필요

🔧 검증 코드

출력된 버전이 1.0053 이하면 취약, 1.0054 이상이면 안전 (또는 모듈 설치 안 됨)

Shell / Script
perl -e 'use Plack::Middleware::XSendfile; print $Plack::Middleware::XSendfile::VERSION'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Nginx