🇰🇷 한글 설명
PhpMyFactures 1.0 및 1.2 이하 버전에서 magic_quotes_gpc 설정이 비활성화된 경우 여러 SQL 인젝션 취약점이 발생합니다. 공격자는 /pays/modifier_pays.php, /stocks/ajouter.php를 포함한 여러 파일의 매개변수를 통해 임의의 SQL 명령을 실행할 수 있습니다.
💡 쉬운 설명
웹사이트의 입력창에 특수한 명령어를 입력하여 데이터베이스의 정보를 훔치거나 수정할 수 있는 취약점입니다. 보안 설정이 꺼져 있을 때 발생하며, 이를 통해 공격자가 시스템 권한을 탈취할 수 있습니다.
🇺🇸 원문 (English)
Multiple SQL injection vulnerabilities in PhpMyFactures 1.0, and possibly 1.2 and earlier, with magic_quotes_gpc disabled, allow remote attackers to execute arbitrary SQL commands via the (1) id_pays parameter in (a) /pays/modifier_pays.php; (2) id_produit, (3) quantite, (4) prix_ht, and (5) date parameter in (b) /stocks/ajouter.php; (6) id_cat parameter in (c) /produits/modifier_cat.php; (7) id_client parameter in (d) /clients/modifier_client.php; (8) id_remise parameter in (e) /remises/index.php; (9) id_taux parameter in (f) /tva/index.php; (10) ref_produit, and (11) id_stock parameter in (g) /stocks/index.php; (12) id_pays parameter in (h) /pays/index.php; and (13) id_cat parameter in (i) /produits/index.php.
📍 영향받는 시스템
PhpMyFactures 1.0 및 1.2 이하 버전
⚔️ 공격 벡터
HTTP 요청의 다양한 매개변수(id_pays, id_produit 등)를 통한 SQL 인젝션 공격
🛡️ 대응 방법
소프트웨어를 최신 버전으로 업데이트하거나, 입력값에 대한 적절한 필터링 및 Prepared Statement를 적용하십시오.
🔧 검증 코드
명령어 실행 결과로 PhpMyFactures 버전 1.0 또는 1.2가 출력되면 취약한 버전이 설치된 것입니다.
grep -r "PhpMyFactures" /var/www/html | grep -E '1\.0|1\.2'