🇰🇷 한글 설명
Phpkobo AdFreely 1.01 버전에서 발견된 디렉토리 순회 취약점으로, magic_quotes_gpc가 비활성화되어 있을 때 LANG_CODE 매개변수를 통해 원격 공격자가 임의의 로컬 파일을 포함하고 실행할 수 있습니다. common.inc.php 및 file.php 등 여러 경로에서 이 취약점이 존재합니다.
💡 쉬운 설명
Phpkobo AdFreely 1.01 버전의 웹 프로그램이 경로 조작 공격에 취약하여 해커가 서버의 임의의 파일을 열고 실행할 수 있습니다. 특정 PHP 보안 설정(magic_quotes_gpc)이 꺼져있을 때 이 공격이 가능합니다.
🇺🇸 원문 (English)
Multiple directory traversal vulnerabilities in Phpkobo AdFreely (aka Ad Board Script) 1.01, when magic_quotes_gpc is disabled, allow remote attackers to include and execute arbitrary local files via a ..// (dot dot slash slash) in the LANG_CODE parameter to common.inc.php in (1) codelib/cfg/, (2) codelib/sys/, (3) staff/, and (4) staff/app/; and (5) staff/file.php. NOTE: some of these details are obtained from third party information.
📍 영향받는 시스템
Phpkobo AdFreely (Ad Board Script) 버전 1.01
⚔️ 공격 벡터
LANG_CODE 파라미터에 ../를 삽입하여 디렉토리를 상위로 순회하면서 임의의 로컬 파일 포함 및 실행
🛡️ 대응 방법
Phpkobo AdFreely를 최신 버전으로 업데이트하고, PHP 설정에서 magic_quotes_gpc를 활성화하며, 입력값 검증 강화
🔧 검증 코드
결과에서 common.inc.php 또는 file.php가 발견되면 Phpkobo AdFreely가 설치된 것이며, 파일의 버전 정보 확인 필요
find / -type f \( -name 'common.inc.php' -o -name 'file.php' \) 2>/dev/null | grep -i 'phpkobo\|adfreely' | head -5