Skip to content
CSRF Write-up Beginner

How I found CVE-2026–27146 (CSRF)| Cyber Tamarin

The file upload endpoint lacked CSRF protection, so an attacker could make an authenticated victim's browser silently upload a file. Chained with a stored XSS flaw in SVG uploads, this let an attacker plant persistent JavaScript without the victim's knowledge.

medium.com

Published on medium.com

In Part 1, I described how an image upload functionality allowed Stored XSS via SVG upload, which was later assigned CVE-2026–27147.

Cyber Tamarin, 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

Impact

An attacker could force an authenticated user to silently upload a persistent XSS payload, potentially leading to session hijacking and account compromise.

What the attacker needed

Victim is authenticated; victim visits attacker page; upload endpoint accepts multipart POST

The fix

The upload endpoint should require a valid anti-CSRF token and enforce Origin/Referer checks; the text says the issue was disclosed and assigned a CVE but does not state that a fix was deployed.

How it was found

  1. Observe that the upload endpoint requires authentication and accepts POST multipart form data.
  2. Check the upload request for anti-CSRF tokens, Origin/Referer validation and SameSite cookie enforcement.
  3. Confirm no CSRF token is present and origin checks are not enforced.
  4. Create an HTML page that automatically submits a file upload request when opened.
  5. Open the page in an authenticated victim's browser and observe the upload succeeds without confirmation.
  6. Replace the harmless file with a malicious SVG containing a stored XSS payload to escalate impact.

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.

CSRF is when a malicious website makes your browser send a request to another site where you are already logged in, without you meaning to. Here the upload form had no secret token or origin check, so a page could quietly submit a file as you. Because uploaded SVGs could also run JavaScript, the attacker could plant a script that runs whenever the file is viewed.

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.