🇰🇷 한글 설명
WordPress의 Registrations For The Events Calendar 플러그인 3.2 이하 버전에서 SQL 인젝션 취약점이 발견되었습니다. 공격자가 'standard' 파라미터 내의 JSON 키를 조작하여 데이터베이스 쿼리를 변조할 수 있으며, 이를 통해 민감한 정보를 탈취할 수 있습니다.
💡 쉬운 설명
이 플러그인을 사용하는 웹사이트에서 권한이 있는 사용자가 특수한 명령어를 입력하면 데이터베이스의 정보를 몰래 빼낼 수 있는 보안 약점이 있습니다. 데이터베이스를 관리하는 규칙이 허술하여 발생하는 문제입니다.
🇺🇸 원문 (English)
The Registrations For The Events Calendar plugin for WordPress is vulnerable to SQL Injection via JSON keys in the 'standard' parameter handled by the rtec_records_edit AJAX action in versions up to and including 3.2. The handler decodes attacker-controlled JSON from $_POST['standard'] and uses the JSON array keys directly as column identifiers in the SET clause of an UPDATE statement built inside RTEC_Db_Admin::update_entry(). Only esc_sql() (mysqli_real_escape_string) is applied to the identifier; that function escapes quotes, backslashes, and a few control characters but does not escape spaces, equals signs, parentheses, or hyphens, so an attacker can break out of the identifier context and inject subqueries (terminated with a SQL comment). This makes it possible for authenticated attackers, with Contributor-level access and above who can edit the targeted event, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
📍 영향받는 시스템
Registrations For The Events Calendar plugin for WordPress (버전 3.2 이하)
⚔️ 공격 벡터
AJAX 액션(rtec_records_edit)을 통해 전달되는 JSON 데이터의 키 값을 조작하여 SQL 쿼리 주입
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나, 해당 취약점이 해결된 보안 패치를 적용하십시오.
🔧 검증 코드
명령어 결과에 해당 플러그인이 나타나면 설치된 것이며, 설치된 버전이 3.2 이하인지 확인이 필요합니다.
wp plugin list --status=active | grep -i 'registrations-for-the-events-calendar'