CVE-2024-46507: Yeti Platform Server-Side Template Injection (SSTI)
Yeti's custom report templates were not sanitised before server-side rendering, allowing authenticated users to execute arbitrary code. A static JWT secret in the default Docker deployment let attackers forge tokens, so the two flaws together enabled unauthenticated remote code execution.
Yeti is a Forensic Intelligence platform and pipeline for DFIR teams. It allows threat intelligence and DFIR teams to catalog, search, and link pieces of intelligence such as IP addresses, TTPs, and threat actors.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the template engine rendered user-supplied template content without sandboxing or sanitisation, and the default deployment shipped a static JWT signing secret.
Impact
An authenticated user could execute code on the server; combined with the static JWT secret, an unauthenticated attacker could achieve remote code execution on default deployments.
What the attacker needed
A free account (for SSTI alone); default Docker deployment (for JWT secret)
The fix
The vulnerabilities were fixed in version 2.1.12.
How it was found
- Create a new observable via Observables -> New Observable -> Save.
- Create a malicious report template containing code.
- Select the observable and export it using the malicious template.
- Download the resulting .txt file, which contains the command output.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Yeti lets users create report templates that the server fills in with data. Because the server runs the template without cleaning it first, someone can put code in the template that the server then executes. Separately, the default setup used a hard-coded password for login tokens, so an attacker could make a valid token without knowing any real credentials.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.