🔍 CVE-2007-4536

4.6
CVSS Score
MEDIUM
2007-08-25
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

TorrentTrader 1.07 이전 버전에서 루트 디렉토리의 파일에 대해 불안전한 권한을 설정하고 있습니다. disclaimer.txt, sponsors.txt, banners.txt 파일이 PHP include 호출에서 사용되는데, 공격자가 이 파일들의 권한을 악용하여 임의의 PHP 코드를 실행할 수 있습니다.

💡 쉬운 설명

웹사이트에서 사용하는 특정 텍스트 파일들이 누구나 수정할 수 있도록 열려있어서, 악의적인 사용자가 이를 악용해 해킹 코드를 주입할 수 있습니다. 이로 인해 웹서버가 공격자의 명령을 실행하게 됩니다.

🇺🇸 원문 (English)

TorrentTrader 1.07 and earlier sets insecure permissions for files in the root directory, which allows attackers to execute arbitrary PHP code by modifying (1) disclaimer.txt, (2) sponsors.txt, and (3) banners.txt, which are used in an include call. NOTE: there might be local attack vectors that extend to other files.

📍 영향받는 시스템

TorrentTrader 1.07 및 그 이전 버전

⚔️ 공격 벡터

include()로 포함되는 파일들(disclaimer.txt, sponsors.txt, banners.txt)에 대한 쓰기 권한이 없는 사용자도 수정 가능한 상태에서 파일을 변조하여 악성 PHP 코드 주입

🛡️ 대응 방법

TorrentTrader를 최신 버전으로 업그레이드하고, include 파일들의 권한을 644 이하로 제한(chmod 644 *.txt)하여 웹서버 프로세스만 읽을 수 있도록 설정

🔧 검증 코드

파일 권한이 644(-rw-r--r--)로 표시되면 안전한 상태이며, 그 외의 권한(특히 w 권한이 다른 사용자에게 있는 경우)이 표시되면 취약한 상태입니다.

Shell / Script
ls -l disclaimer.txt sponsors.txt banners.txt 2>/dev/null | grep -E '^-rw-r--r--' || echo 'Insecure permissions detected'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP