Skip to content
CSRF Write-up Intermediate

Privilege Escalation using Client-Side Path Traversal

A low-privileged user could set a plugin's picture field to a path pointing at an internal automation-task API endpoint. When an admin viewed the plugins page, the browser fetched that path and the task ran silently, letting the attacker trigger privileged actions without permission.

medium.com

Published on medium.com

Hey folks, I’m Mohamed AboAlezz— a cybersecurity enthusiast and bug hunter. This write-up is about a bug I recently found on a private program — we’ll call it redacted.com — where a completely innocent-looking field ended up being a quiet door into something much bigger.

Mohamed AboAlezz, 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 plugin picture field was used to build a request path without validating or restricting it to image locations, so a crafted relative path reached an internal API endpoint.

Impact

An attacker could make admins silently run automation tasks they were not permitted to run, repeatedly, which could perform sensitive actions or incur costs; the report was closed as a duplicate of a previous CSRF report on the same endpoint.

What the attacker needed

A low-privileged account; ability to create a plugin; a task UUID visible to the attacker; an admin views the plugins page

How it was found

  1. Log in with a low-privileged account that cannot run automation tasks.
  2. Create a new plugin and intercept the request containing the picture field.
  3. Replace the picture path with a relative path to the internal task API endpoint, using a task UUID visible to the account.
  4. Send the request, then log in as an admin and open the plugins page.
  5. Observe that the task runs silently on page load and repeats on each reload.

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.

A website sometimes takes a value from one place, like an image path, and uses it to build a request to its own server. If that value is not checked, someone can put a path to a different internal address there. Then, when a more powerful user opens the page, their browser makes that request for the attacker, and the server treats it as if the powerful user asked for it.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.