🔍 CVE-2014-4511

7.5
CVSS Score
HIGH
2014-07-22
2026-05-06 22:30
✅ 완료

🇰🇷 한글 설명

Gitlist 0.5.0 이전 버전에서 URI의 파일명에 쉘 메타문자를 삽입하여 원격 공격자가 임의 명령어를 실행할 수 있는 취약점입니다. blame, file, stats 페이지에서 사용자 입력이 적절히 검증되지 않아 명령 인젝션 공격이 가능합니다.

💡 쉬운 설명

Gitlist 웹사이트의 파일명 입력창에 특수문자를 넣으면 서버에서 명령어가 실행되는 보안 결함입니다. 이를 통해 공격자가 서버 내 모든 파일을 접근하거나 수정할 수 있습니다.

🇺🇸 원문 (English)

Gitlist before 0.5.0 allows remote attackers to execute arbitrary commands via shell metacharacters in the file name in the URI of a request for a (1) blame, (2) file, or (3) stats page, as demonstrated by requests to blame/master/, master/, and stats/master/.

📍 영향받는 시스템

Gitlist 버전 0.5.0 이전

⚔️ 공격 벡터

HTTP 요청의 blame/file/stats 페이지 URI에 쉘 메타문자(예: ; | & ` $()) 포함

🛡️ 대응 방법

Gitlist를 0.5.0 이상으로 업데이트하고, 모든 사용자 입력에 대한 엄격한 검증 및 이스케이핑 구현

🔧 검증 코드

버전 0.5.0 미만이면 취약함. 0.5.0 이상이면 안전. 명령어 결과가 없으면 Gitlist가 설치되지 않음.

Shell / Script
dpkg-query -W -f='${Version}' gitlist 2>/dev/null || git -C /opt/gitlist describe --tags 2>/dev/null || cat /opt/gitlist/VERSION 2>/dev/null

📊 CVSS Vector String

CVSS Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P