Skip to content
CSRF Write-up Intermediate

The Little CV + CSRF That Broke an Account

A CSRF vulnerability allowed an attacker to upload a CV to a victim's account without consent. By including a null byte in the filename, the uploaded file became undeletable, causing a persistent denial of service that blocked the victim from completing job applications.

medium.com

Published on medium.com

السَّلاَ� ُ عَلَيْكُ� ْ وَرَحْ� َةُ اللهِ وَبَرَكَاتُهُ. اللَّهُ� َّ صَلِّ عَلَى � ُحَ� َّدٍ وَعَلَى آلِ � ُحَ� َّدٍ، كَ� َا صَلَّيْتَ عَلَى إِبْرَاهِي� َ وَآلِ إِبْرَاهِي� َ، إِنَّكَ حَ� ِيدٌ � َجِيدٌ، وَبَارِكْ عَلَى � ُحَ� َّدٍ وَعَلَى آلِ � ُحَ� َّدٍ، كَ� َا بَارَكْتَ عَلَى إِبْرَاهِي� َ وَآلِ إِبْرَاهِي� َ، إِنَّكَ حَ� ِيدٌ � َجِيدٌ

0_oNoProblem, 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 cause a persistent denial of service for a victim's job application feature with a single click, as the undeletable CV blocks the application process.

What the attacker needed

Victim is logged in; victim visits a malicious page; attacker can host a PDF file

How it was found

  1. Craft a test PDF and upload it.
  2. Rename the file to include a null byte and replay the upload.
  3. Observe the CV appears in the user's profile.
  4. Try to delete the CV via the UI and API; it persists.
  5. Apply for a job using that CV; the application errors out and cannot proceed.

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.

This report describes two bugs that, when combined, let an attacker mess with someone's account. First, a CSRF flaw meant a malicious website could make a logged-in user's browser upload a file without them knowing. Second, by putting a special character (a null byte) in the file's name, the file became impossible to delete, so the user got stuck and couldn't apply for jobs.

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.