🇰🇷 한글 설명
WordPress의 WP Ticket 플러그인 6.0.4 이하 버전에서 SQL 인젝션 취약점이 발견되었습니다. 공격자가 검색 파라미터('s')를 통해 조작된 SQL 구문을 삽입하면 데이터베이스의 민감한 정보를 탈취할 수 있습니다.
💡 쉬운 설명
웹사이트 검색창에 특수한 명령어를 입력하여 데이터베이스를 조작할 수 있는 보안 결함입니다. 이를 통해 해커가 회원 정보나 비밀번호 같은 중요한 데이터를 몰래 빼낼 수 있습니다.
🇺🇸 원문 (English)
The WP Ticket plugin for WordPress is vulnerable to SQL Injection via the WordPress search query parameter (`s`) in versions up to, and including, 6.0.4 The plugin hooks WordPress's `posts_request` filter with `wp_ticket_com_posts_request()`, which calls `emd_author_search_results()` when the current request is an unauthenticated front-end search. That function reads `$query->query_vars['s']` — already wp_unslash()'d by `WP_Query::parse_query()`, so wp_magic_quotes protection has been stripped — and concatenates the raw value into a SQL `LIKE` clause inside a UNION sub-SELECT appended to the main query, with no `$wpdb->prepare()` or escaping. This makes it possible for unauthenticated attackers to append additional SQL queries into already-existing queries that can be used to extract sensitive information from the database.
📍 영향받는 시스템
WordPress WP Ticket plugin versions up to and including 6.0.4
⚔️ 공격 벡터
인증되지 않은 사용자가 검색 쿼리 파라미터('s')에 악의적인 SQL 구문을 삽입하여 공격
🛡️ 대응 방법
WP Ticket 플러그인을 최신 보안 패치가 적용된 버전으로 즉시 업데이트하십시오.
🔧 검증 코드
출력된 결과에서 wp-ticket의 버전이 6.0.4 이하인지 확인하십시오.
wp-cli plugin list --allow-root | grep wp-ticket