Skip to content
CSRF Disclosed report Beginner

CSRF - Modify Project Settings

The project settings endpoint accepted state-changing requests without a CSRF token, so a page on another site could submit a forged request. An attacker who knew the victim's project ID could change project settings such as the contact email.

ahmd_halabi Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 46 hours
  • Fixed in 31 days
  • Disclosed after 34 days

Target Url/Endpoint https://my.stripo.email/cabinet/stripeapi/v1/projects/{Project_Id}

Note Attacker just need to know victim project Id.

Summary:

This CSRF Vulnerability leads to change user's project settings including General Information, Contacts, Social Networks and Other Options.

Steps To Reproduce:

This POC is a simple example on exploiting this bug. Attacker can exploit it with more advanced techniques and can really lead to critical issues.

  1. Navigate to Project Settings -> Modify any data and intercept the request, send it to repeater, and do the following.
  2. Take the HTML code format from burp suite -> Engagement Tools -> Generate CSRF POC.
  3. Put the piece of code in an html file, then open it.
  4. Now hit on the button and intercept its request.
  5. Change POST to PATCH.
  6. Copy the patch data from the old intercepted request from repeater and paste it to the current intercepted request and modify the data (email for example).
  7. Modify the request header of Content-Type: Content-Type: application/json;charset=UTF-8
  8. Forward the request and CSRF exploited successfully and the modified data changed successfully :)

Supporting Material/References:

Please See this video where I recorded the above PoC in details ██████

Impact

This attack can be exploited in advanced way to modify all project settings and manipulate its data. Smart attacker can gain a big advantage from this bug. Hope you fix it asap.

Regards

The original report as published on HackerOne, by ahmd_halabi. 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 settings endpoint accepted PATCH requests with a JSON body without any CSRF token or origin check, so a cross-site form submission was treated as a legitimate action.

Impact

An attacker who knows the victim's project ID could change project settings, including the contact email, though the report does not show any further consequence such as account takeover.

What the attacker needed

Victim is logged in; attacker knows the victim's project ID; victim visits an attacker page

How it was found

  1. Open the project settings, change some data and intercept the request.
  2. Generate a CSRF proof-of-concept HTML page from the intercepted request.
  3. Save the page as an HTML file and open it.
  4. Submit the button and intercept the resulting request.
  5. Change the method from POST to PATCH and paste in the original request body, altering a value such as the email.
  6. Set the content type to JSON and forward the 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.

CSRF (cross-site request forgery) 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 settings page did not check that the request really came from the site itself, so a page the victim visited could quietly change their project settings.

What is CSRF?

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

More by ahmd_halabi

View all

12 more disclosed reports, best first.

More from Stripo Inc

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.