🇰🇷 한글 설명
WordPress용 Printcart Web to Print Product Designer 플러그인 2.5.2 이하 버전에서 임의 파일 삭제 취약점이 발견되었습니다. store_design_data() 함수가 사용자 입력값에 대한 경로 검증을 제대로 수행하지 않아, 인증되지 않은 공격자가 서버의 임의 파일을 삭제할 수 있으며 이는 원격 코드 실행으로 이어질 수 있습니다.
💡 쉬운 설명
해커가 웹사이트의 특정 기능을 악용하여 서버에 있는 중요한 파일을 마음대로 지울 수 있는 보안 결함입니다. 이 과정에서 파일이 삭제되면 웹사이트가 망가지거나 해커가 서버를 완전히 장악할 위험이 있습니다.
🇺🇸 원문 (English)
The Printcart Web to Print Product Designer for WooCommerce plugin for WordPress is vulnerable to Arbitrary File Deletion in versions up to, and including, 2.5.2 This is due to insufficient path validation in the store_design_data() function, which constructs a filesystem path from the user-supplied 'nbd_item_key' POST parameter sanitized only with sanitize_text_field() — which does not strip path traversal sequences — and then passes that path directly to Nbdesigner_IO::delete_folder() and PHP's rename(). The nonce protecting the nbd_save_customer_design AJAX action is freely obtainable by unauthenticated users via the nbd_check_use_logged_in endpoint. This makes it possible for unauthenticated attackers to delete arbitrary files on the affected site's server which may make remote code execution possible.
📍 영향받는 시스템
Printcart Web to Print Product Designer for WooCommerce (버전 2.5.2 이하)
⚔️ 공격 벡터
인증되지 않은 공격자가 경로 조작(Path Traversal)이 가능한 파라미터를 이용해 AJAX 요청을 전송하여 공격
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나, 해당 취약점이 해결된 패치를 적용하십시오.
🔧 검증 코드
명령어 결과에 해당 플러그인이 나타나고 버전이 2.5.2 이하인지 확인하십시오.
wp plugin list --allow-root | grep -E 'printcart-web-to-print'