cve-2024–46507_AttackWalkthrough (Educational & Defensive Anal
A Yeti platform instance was reachable with default admin credentials, and its export template feature was vulnerable to server-side template injection. An attacker with that access could run commands on the server, read sensitive files and add an SSH key to gain a root shell.
Published on medium.com
This vulnerability allows malicious template payloads to be executed on the server.
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 evaluated user-supplied template content without sandboxing, and the deployment kept default admin credentials.
Impact
An attacker with the default admin login could execute commands on the server, read sensitive files and, because the SSH key file was writable, add their own key and obtain a root shell.
What the attacker needed
Network access to the web port; default admin credentials unchanged; admin panel login
How it was found
- Scan the target and find the Yeti web service on port 80.
- Log in to the admin panel with the default admin credentials.
- Create an IPv4 observable under Observables.
- Create a new export template under Automation and insert a template injection test.
- Check the export output to confirm the injected expression is evaluated.
- Run the public exploit script against the target to execute commands and reach sensitive directories.
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.
The web app lets an admin write templates, which are text with placeholders that the server fills in. The server ran those placeholders as code instead of treating them as plain text, so someone who could edit a template could make the server run their own commands. The admin account also still used the factory default password, which made getting in trivial.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.