🇰🇷 한글 설명
WordPress의 Custom Field Template 플러그인 2.7.8 이하 버전에서 'post_ID' 매개변수를 통한 SQL 인젝션 취약점이 발견되었습니다. 인증된 기여자(Contributor) 이상의 권한을 가진 공격자가 권한 검사를 우회하여 데이터베이스에서 민감한 정보를 추출할 수 있습니다.
💡 쉬운 설명
플러그인의 보안 허점을 이용해 데이터베이스에 몰래 명령을 입력하는 공격입니다. 글을 쓸 수 있는 권한만 있는 사용자라도 사이트의 중요한 정보를 훔쳐갈 수 있습니다.
🇺🇸 원문 (English)
The Custom Field Template plugin for WordPress is vulnerable to generic SQL Injection via the 'post_ID' parameter in all versions up to, and including, 2.7.8 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with contributor-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 capability check via current_user_can('edit_post', $id) is bypassable because WordPress internally casts $id to an integer for the permission evaluation while the full unsanitized string is preserved and passed to the SQL sink, and a valid nonce — which is also required — can be legitimately obtained by any Contributor-level user from the post edit screen.
📍 영향받는 시스템
WordPress Custom Field Template plugin (버전 2.7.8 및 그 이하 모든 버전)
⚔️ 공격 벡터
인증된 사용자가 'post_ID' 매개변수에 조작된 SQL 구문을 삽입하여 권한 검사를 우회하고 쿼리를 실행함
🛡️ 대응 방법
Custom Field Template 플러그인을 최신 보안 패치가 적용된 버전으로 즉시 업데이트하십시오.
🔧 검증 코드
명령어 결과에 해당 플러그인 이름과 2.7.8 이하의 버전 번호가 나타나면 취약한 상태입니다.
wp plugin list --name custom-field-template --format=json | grep -E '"version":"[0-2]\.[0-7]\.[0-8]"'