🇰🇷 한글 설명
WordPress용 'Offload, AI & Optimize with Cloudflare Images' 플러그인 1.10.2 이하 버전에서 원격 코드 실행(RCE) 취약점이 발견되었습니다. 'account-id' 파라미터에 대한 권한 검증 미흡과 입력값 필터링 부재로 인해, 인증된 공격자가 wp-config.php 파일을 조작하여 서버에서 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
플러그인의 보안 설정 오류로 인해, 글을 쓸 권한이 있는 사용자가 서버의 핵심 설정 파일을 마음대로 수정할 수 있는 문제입니다. 이를 통해 해커가 서버를 완전히 장악하거나 악성 코드를 심을 수 있습니다.
🇺🇸 원문 (English)
The Offload, AI & Optimize with Cloudflare Images plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.10.2 via the 'account-id' parameter parameter. This is due to insufficient privilege enforcement on the cf_images_do_setup AJAX handler, which requires only the upload_files capability (Author+) rather than manage_options before writing to wp-config.php, combined with the absence of single-quote escaping — sanitize_text_field() does not strip single quotes, and filter_input(INPUT_POST) bypasses wp_magic_quotes() slashing — allowing a single quote in the account-id or api-key parameter to break out of the single-quoted PHP string literal in the write_config() define() statement. This makes it possible for authenticated attackers, with author-level access and above, to execute code on the server. This is possible because the 'cf-images-nonce' nonce required by the AJAX handler is exposed to all Author-level and above users on wp-admin/upload.php via the CFImages JavaScript object, meaning any upload-capable user can satisfy the nonce check and reach the vulnerable wp-config.php write path.
📍 영향받는 시스템
Offload, AI & Optimize with Cloudflare Images plugin for WordPress (버전 1.10.2 이하)
⚔️ 공격 벡터
인증된 사용자(Author 권한 이상)가 AJAX 핸들러의 'account-id' 파라미터에 특수 문자를 삽입하여 wp-config.php 파일에 악성 코드를 주입
🛡️ 대응 방법
해당 플러그인을 최신 버전으로 업데이트하거나, 권한 관리가 강화된 보안 패치를 적용하십시오.
🔧 검증 코드
명령어 결과에 해당 플러그인이 나타나면 설치된 것이며, 설치된 버전이 1.10.2 이하인지 확인해야 합니다.
wp plugin list --status=active | grep -i 'cloudflare-images'