🇰🇷 한글 설명
WordPress의 Modula Image Gallery – Photo Grid & Video Gallery 플러그인 3.0.2 이하 버전에서 파일 경로 검증 미흡으로 인해 임의 파일 삭제 취약점이 발견되었습니다. 권한이 있는 공격자(작성자 권한 이상)는 서버 내의 임의 파일을 삭제할 수 있습니다. wp-content/uploads 경로 제한이 존재하지만, 모든 사용자 첨부 파일이 해당 경로 내에 있어 실질적인 보안 경계 역할을 하지 못합니다.
💡 쉬운 설명
워드프레스의 이미지 갤러리 플러그인을 사용하는 사이트에서, 글쓰기 권한이 있는 사용자가 서버에 있는 중요한 파일을 마음대로 지울 수 있는 문제입니다. 보안 설정이 허술하여 공격자가 시스템 파일을 삭제해 사이트를 망가뜨릴 위험이 있습니다.
🇺🇸 원문 (English)
The Modula Image Gallery – Photo Grid & Video Gallery plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the upload_image function in all versions up to, and including, 3.0.2. This makes it possible for authenticated attackers, with author-level access and above, to delete arbitrary files on the server. The path restriction to wp-content/uploads is not an effective ownership boundary, as all user attachment files reside within that tree, and Authors trivially satisfy the edit_post check on their own galleries.
📍 영향받는 시스템
Modula Image Gallery – Photo Grid & Video Gallery plugin (v3.0.2 및 그 이하 모든 버전)
⚔️ 공격 벡터
인증된 공격자(작성자 권한 이상)가 upload_image 함수를 악용하여 조작된 파일 경로를 전송함으로써 발생
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나, 권한 관리를 강화하고 파일 경로 검증 로직이 포함된 패치를 적용해야 합니다.
🔧 검증 코드
명령어 결과로 출력되는 버전 번호가 3.0.2 이하인지 확인하여 취약 여부를 판단합니다.
wp-cli plugin list --name=modula-image-gallery --format=json | grep -E '"version":"[0-9.]+"'