Skip to content
CSRF Disclosed report Beginner

**"CSRF Vulnerability in ███████ Website Allows Attackers to Change User Profile Picture at ███████"**

The website's profile picture upload endpoint lacked CSRF protection, so an attacker could craft a request that changes a logged-in victim's profile picture to an image of the attacker's choosing. The report claims this could lead to identity theft and reputational damage.

bx00 Follow

Originally disclosed on HackerOne

Medium 5.0 View original
  • Triaged in 8 hours
  • Fixed in 8 days
  • Disclosed after 2 months

Summary by the program

CSRF Vulnerability Report

Vulnerability Description:

The identified vulnerability is a CSRF (Cross-Site Request Forgery) vulnerability that allows an attacker to change the user's profile picture. Steps to Reproduce: Create an account on ███████. Navigate to █████ and find the section at the bottom where you can upload a profile picture. Exploit the vulnerability by using the provided exploit code and your custom image hosted on an external server.

Important Note:

To successfully execute the attack, you need to use an image that is less than 200 KB in size or slightly increase the limit. 2-Dont Forget :there is a variable named "imageName" which you will need to change to the name of your own image file. Please make sure that your image file is placed in the same folder as the exploit code on the server.

Impact: An attacker can exploit this vulnerability to change the victim's profile picture to any image of their choice. This can lead to various consequences, such as identity theft, reputational damage, and unauthorized access to sensitive information. Moreover, the attacker can use this vulnerability to launch further attacks on the victim or other users of the website.

The original report as published on HackerOne, by bx00. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the profile picture upload request had no CSRF token or other origin check, so the server accepted state-changing requests from any site.

Impact

An attacker could change a victim's profile picture to any image, which the report says may lead to identity theft, reputational damage, or further attacks.

What the attacker needed

Victim is logged in; victim visits attacker page; image under 200 KB

How it was found

  1. Create an account on the target site.
  2. Go to the profile section and locate the profile picture upload area.
  3. Host a custom image on an external server and use the exploit code to submit the upload request.

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 report has not been written yet. The Original tab links to the source.

Cross-Site Request Forgery (CSRF) is when a malicious website tricks your browser into sending a request to another site where you are already logged in. Because your browser automatically includes your login cookies, the other site thinks the request came from you. Here, an attacker could make your browser upload a new profile picture without you ever intending to do so.

What is CSRF?

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

More from Mars

View all

The newest disclosed reports for this program.

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.