🇰🇷 한글 설명
PHP-Nuke 8.0 FINAL 이전 버전의 Search 모듈 index.php에 SQL injection 취약점이 존재합니다. magic_quotes_gpc가 비활성화되었을 때 원격 공격자가 modules.php의 comments 액션에서 sid 파라미터를 통해 임의의 SQL 명령을 실행할 수 있습니다.
💡 쉬운 설명
PHP-Nuke 웹사이트의 검색 기능에 보안 결함이 있어서 해커가 특수한 URL을 만들어 데이터베이스에 직접 명령을 실행할 수 있습니다. 이를 이용해 사용자 정보를 빼내거나 데이터베이스를 손상시킬 수 있습니다.
🇺🇸 원문 (English)
SQL injection vulnerability in index.php in the Search module in PHP-Nuke 8.0 FINAL and earlier, when magic_quotes_gpc is disabled, allows remote attackers to execute arbitrary SQL commands via the sid parameter in a comments action to modules.php. NOTE: some of these details are obtained from third party information.
📍 영향받는 시스템
PHP-Nuke 8.0 FINAL 이전 모든 버전 (magic_quotes_gpc 비활성화 환경)
⚔️ 공격 벡터
modules.php?name=Search&file=index&action=comments&sid=[SQL_PAYLOAD] 형태의 URL을 통한 SQL injection 공격
🛡️ 대응 방법
PHP-Nuke를 최신 버전으로 업그레이드하고, php.ini에서 magic_quotes_gpc를 On으로 설정하며, 모든 사용자 입력에 대해 SQL prepared statement와 입력 검증 구현
🔧 검증 코드
출력이 'Enabled'이면 magic_quotes_gpc가 활성화된 상태(방어됨), 'Disabled'이면 비활성화된 상태(취약함). PHP-Nuke 버전 확인은 별도로 필요
php -i 2>/dev/null | grep -i 'magic_quotes_gpc' && echo 'Enabled' || echo 'Disabled'