🇰🇷 한글 설명
Betster (PHP Betoffice) 1.0.4에서 showprofile.php, categoryedit.php의 id 매개변수 및 index.php의 username 매개변수를 통한 SQL Injection 취약점으로, 원격 공격자가 임의의 SQL 명령을 실행할 수 있습니다.
💡 쉬운 설명
웹 로그인 및 프로필 페이지에서 특수한 문자를 입력하면 데이터베이스에 직접 명령을 내릴 수 있습니다. 이를 통해 개인정보 탈취, 계정 접근, 데이터 변조 등이 가능합니다.
🇺🇸 원문 (English)
Multiple SQL injection vulnerabilities in Betster (aka PHP Betoffice) 1.0.4 allow remote attackers to execute arbitrary SQL commands via the id parameter to (1) showprofile.php or (2) categoryedit.php or (3) username parameter in a login to index.php.
📍 영향받는 시스템
Betster (PHP Betoffice) 버전 1.0.4
⚔️ 공격 벡터
showprofile.php, categoryedit.php의 id 파라미터 또는 index.php 로그인 username 필드에 SQL 쿼리 구문 주입
🛡️ 대응 방법
PHP Betoffice를 최신 보안 패치 버전으로 업그레이드하고, 모든 사용자 입력에 Prepared Statements 사용
🔧 검증 코드
검색 결과에서 입력값이 직접 SQL 쿼리에 사용되는지 확인하고, mysqli_real_escape_string 등 불완전한 방어가 있으면 패치 필요
grep -r "\$_GET\['id'\]\|\$_POST\['username'\]" /var/www/ 2>/dev/null | grep -E '(showprofile|categoryedit|index)\.php'