Description
9router 0.4.1 through 0.5.99 contains a configuration injection vulnerability in the POST /api/cli-tools/hermes-settings endpoint that allows authenticated dashboard users to inject arbitrary keys into the Hermes Agent config.yaml file. Attackers can submit a baseUrl containing double quotes and newlines to add hooks_auto_accept and a hooks.post_llm_call shell command, which Hermes Agent executes without approval after an LLM call.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| decolua | 9router | 0.4.1 – ≤ 0.5.99 | — |
References
- https://hackmd.io/@haind/9router-hermes-config-injection third-party-advisory
- https://github.com/decolua/9router/blob/a99cf57239ff778b61e434c2786009d5ed1c412c/src/app/api/cli-tools/hermes-settings/route.js#L20-L35 technical-description
- https://github.com/decolua/9router/blob/a99cf57239ff778b61e434c2786009d5ed1c412c/src/app/api/cli-tools/hermes-settings/route.js#L185-L223 technical-description
- https://github.com/decolua/9router product
- VulnCheck Advisory: 9router 0.4.1 through 0.5.99 Config Injection RCE via hermes-settings Endpoint third-party-advisory