🇰🇷 한글 설명
WordPress용 MasterStudy LMS 플러그인 3.7.50 이전 버전에는 경로 순회 취약점이 존재합니다. 인증된 Subscriber 권한 사용자가 stm_lms_step 매개변수에 디렉터리 순회 시퀀스를 넣어 stm_lms_import_sample_data AJAX 액션을 호출하면, 권한 검사와 nonce 검증이 없어 임의의 WXR XML 파일을 가져올 수 있습니다. 이를 통해 공격자가 지정한 게시물 유형, 제목, 내용, 메타데이터를 공격자 명의로 게시할 수 있습니다.
💡 쉬운 설명
구독자 권한만 있는 일반 사용자도 사이트의 파일을 악용해 원하는 글을 대신 게시할 수 있는 문제입니다. 사이트 관리자가 플러그인을 3.7.50 이상으로 업데이트해야 합니다.
🇺🇸 원문 (English)
MasterStudy LMS plugin for WordPress before 3.7.50 contains a path traversal vulnerability that allows authenticated Subscriber-level users to import arbitrary WXR XML files by supplying directory traversal sequences in the stm_lms_step parameter passed to the stm_lms_import_sample_data AJAX action, which lacks capability checks and nonce verification. Attackers can traverse the file system to reference a reachable WXR file and have the handler publish its contained posts under their identity, enabling publication of attacker-chosen post type, title, content, and metadata.
📍 영향받는 시스템
WordPress MasterStudy LMS 플러그인 3.7.50 미만 버전
⚔️ 공격 벡터
Subscriber 권한 계정으로 stm_lms_step 매개변수에 경로 순회 문자열을 넣어 stm_lms_import_sample_data AJAX 요청을 보내 임의 WXR 파일을 게시
🛡️ 대응 방법
MasterStudy LMS 플러그인을 3.7.50 이상 버전으로 업데이트하고, 미사용 계정을 점검하며 필요 시 임시로 해당 AJAX 액션을 비활성화
🔧 검증 코드
출력된 버전이 3.7.50 미만이면 취약하므로 업데이트가 필요하고, 3.7.50 이상이면 취약점이 수정된 상태입니다.
wp plugin list --name=masterstudy-lms-learning-management-system --field=version 2>/dev/null || grep -rh 'Version:' wp-content/plugins/masterstudy-lms-learning-management-system/*.php 2>/dev/null | head -1