| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-07-25 | 2.2 kB | |
| v6.2.2 -- Agent File-Download Hardening source code.tar.gz | 2026-07-25 | 204.8 MB | |
| v6.2.2 -- Agent File-Download Hardening source code.zip | 2026-07-25 | 206.3 MB | |
| Totals: 3 Items | 411.0 MB | 2 | |
RedAmon v6.2.2 — Agent File-Download Hardening
A security patch release. Closes an unauthenticated OS command-injection (RCE) in the agent's GET /files in-chat download endpoint (CWE-78), responsibly disclosed by threatroute66 and tracked as GHSA-vqf8-hfgc-v5cf.
🛡️ Unauthenticated /files command injection closed (Critical, CVSS 9.8)
- The endpoint interpolated the untrusted
pathquery parameter into abash -ccommand run inside kali-sandbox via thekali_shelltool, guarded only byos.path.normpathplus a/tmp/prefix check that does not strip shell metacharacters. Sopath=/tmp/x; <cmd>executed arbitrary commands as root inside the sandbox, and the route carried no authentication of its own. - The
pathis nowshlex.quoted in bothkali_shellsinks so it is always a single literal argument (neutralising;,|, backtick,$(...),&&, and also repairing legitimate filenames with spaces/parens the unquoted form had broken), and the route now requiresrequire_internal_auth_only. The webapp/api/agent/filesproxy forwards the internal key so the now-authenticated endpoint keeps working. - On a default
docker compose/redamon.sh installthe agent is published on0.0.0.0:8090, so this was remotely reachable. Thedeploy/single-hosthardened posture already keeps the agent REST surface off the public origin (nginx proxies only the four/ws/*paths), so that deployment was not internet-exposed, though the endpoint stayed reachable unauthenticated container-to-container.
✅ Tests
- 21 unit/regression checks (a
shlex.splitargument-boundary proof over 11 injection/edge vectors plus realTestClientauth enforcement) and 6 live end-to-end checks against the running agent + kali-sandbox (401 unauthenticated, benign and spaced-filename downloads, and three injection classes proven inert via marker files). Both suites are proven to fail on the pre-fix code.
⬆️ Updating an existing deployment
- Rebuild both changed images:
docker compose build agent webapp && docker compose up -d agent webapp
Full changelog: https://github.com/samugit83/redamon/compare/v6.0.2...v6.2.2