🇰🇷 한글 설명
wpForo 플러그인의 두 단계 논리 결함으로 인한 임의 파일 삭제 취약점입니다. 공격자가 $_REQUEST를 통해 조작된 데이터를 postmeta에 저장한 후, 이를 통해 wp_delete_file() 함수에 임의의 파일 경로를 전달하여 실행됩니다. 인증된 사용자는 wp-config.php 등 서버의 중요 파일을 삭제할 수 있습니다.
💡 쉬운 설명
WordPress 포럼 플러그인(wpForo)에 버그가 있어서, 로그인한 사용자가 서버의 중요한 파일들을 삭제할 수 있게 됩니다. 이는 데이터 손실과 서비스 중단으로 이어질 수 있습니다.
🇺🇸 원문 (English)
The wpForo Forum plugin for WordPress is vulnerable to Arbitrary File Deletion in versions up to and including 3.0.2. This is due to a two-step logic flaw: the topic_add() and topic_edit() action handlers accept arbitrary user-supplied data[*] arrays from $_REQUEST and store them as postmeta without restricting which fields may contain array values. Because 'body' is included in the allowed topic fields list, an attacker can supply data[body][fileurl] with an arbitrary file path (e.g., wp-config.php or an absolute server path). This poisoned fileurl is persisted to the plugin's custom postmeta database table. Subsequently, when the attacker submits wpftcf_delete[]=body on a topic_edit request, the add_file() method retrieves the stored postmeta record, extracts the attacker-controlled fileurl, passes it through wpforo_fix_upload_dir() which only rewrites legitimate wpforo upload paths and returns all other paths unchanged, and then calls wp_delete_file() on the unvalidated path. This makes it possible for authenticated attackers, with subscriber-level access and above, to delete arbitrary files writable by the PHP process on the server, including critical files such as wp-config.
📍 영향받는 시스템
WordPress wpForo Forum Plugin version 3.0.2 and earlier
⚔️ 공격 벡터
Authenticated subscriber-level user submits malicious data[body][fileurl] parameter with arbitrary file path via POST/GET request to topic_add/topic_edit handlers
🛡️ 대응 방법
Update wpForo Forum plugin to version 3.0.3 or later that validates and restricts fileurl parameters
🔧 검증 코드
If Version shows 3.0.2 or below, system is vulnerable; version 3.0.3+ indicates patch is applied
grep -i 'Version:' /var/www/html/wp-content/plugins/wpforo/wpforo.php 2>/dev/null | head -1