🇰🇷 한글 설명
Flexi Product Slider and Grid for WooCommerce 플러그인의 flexipsg_carousel shortcode에서 theme 파라미터가 적절히 검증되지 않아 Local File Inclusion 취약점이 발생합니다. Contributor 이상의 인증된 사용자가 디렉토리 traversal을 통해 서버의 임의 PHP 파일을 포함하고 실행할 수 있습니다.
💡 쉬운 설명
WordPress 플러그인이 파일 경로를 입력받을 때 사용자 입력을 제대로 검증하지 않아, 공격자가 의도하지 않은 파일을 실행할 수 있는 문제입니다. 블로거나 기여자 권한이 있는 사람이 악의적인 shortcode를 추가하면 서버를 장악할 수 있습니다.
🇺🇸 원문 (English)
The Flexi Product Slider and Grid for WooCommerce plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 1.0.5 via the `flexipsg_carousel` shortcode. This is due to the `theme` parameter being directly concatenated into a file path without proper sanitization or validation, allowing directory traversal. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute arbitrary PHP files on the server via the `theme` parameter granted they can create posts with shortcodes.
📍 영향받는 시스템
Flexi Product Slider and Grid for WooCommerce plugin for WordPress, all versions up to and including 1.0.5
⚔️ 공격 벡터
Authenticated attacker with Contributor+ role creates post containing malicious flexipsg_carousel shortcode with crafted theme parameter using directory traversal (../) to access arbitrary PHP files
🛡️ 대응 방법
Update plugin to version 1.0.6 or later; implement strict input validation and use basename() function to prevent directory traversal attacks on theme parameter
🔧 검증 코드
플러그인 버전이 1.0.5 이하면 취약점 대상이며, 1.0.6 이상이면 패치된 버전입니다
find /var/www/html/wp-content/plugins/flexi-product-slider-grid -name '*.php' -exec grep -l 'Version' {} \; 2>/dev/null | head -1 | xargs grep -E 'Version|define.*VERSION'