🇰🇷 한글 설명
WordPress용 The Gallery by BestWebSoft 플러그인 4.7.9 이하 버전에서 SQL 인젝션 취약점이 발견되었습니다. '_gallery_order_{post_id}' 파라미터의 배열 키에 대한 검증 미흡으로 인해, 편집자 권한 이상의 인증된 공격자가 데이터베이스의 민감한 정보를 추출할 수 있습니다.
💡 쉬운 설명
웹사이트 관리 도구의 허점을 이용해 해커가 데이터베이스에 몰래 명령어를 입력하는 보안 결함입니다. 이를 통해 해커는 사이트의 중요한 정보를 훔쳐갈 수 있습니다.
🇺🇸 원문 (English)
The Gallery by BestWebSoft plugin for WordPress is vulnerable to SQL Injection via the '_gallery_order_{post_id}' parameter array keys in all versions up to, and including, 4.7.9. This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. The `gllr_save_postdata()` function stores unsanitized array keys from `$_POST` directly into post meta, which are later used in SQL queries without prepared statements. This makes it possible for authenticated attackers, with Editor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
📍 영향받는 시스템
The Gallery by BestWebSoft plugin for WordPress (version 4.7.9 and below)
⚔️ 공격 벡터
인증된 공격자가 조작된 $_POST 파라미터 배열 키를 전송하여 SQL 쿼리를 삽입
🛡️ 대응 방법
The Gallery by BestWebSoft 플러그인을 최신 버전으로 업데이트하거나 해당 파라미터에 대한 입력값 검증 로직을 적용
🔧 검증 코드
출력된 플러그인 버전이 4.7.9 이하인지 확인하여 취약 여부를 판단합니다.
wp plugin list --allow-root | grep 'the-gallery' | awk '{print $2, $3}'