Skip to content
RCE Write-up Intermediate

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.

Cyber Public School Follow

Published on medium.com

This vulnerability allows malicious template payloads to be executed on the server.

Cyber Public School, on medium.com

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

  1. Scan the target and find the Yeti web service on port 80.
  2. Log in to the admin panel with the default admin credentials.
  3. Create an IPv4 observable under Observables.
  4. Create a new export template under Automation and insert a template injection test.
  5. Check the export output to confirm the injected expression is evaluated.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.