Skip to content
CSRF Disclosed report Intermediate

csrf bypass using flash file + 307 redirect method at plugins endpoint

The plugins endpoint only checked the Content-Type header for CSRF protection, which could be bypassed using a Flash file and a 307 redirect to send a JSON request. An attacker could create an application on behalf of a logged-in user.

qotoz Follow

Originally disclosed on HackerOne

  • Disclosed after 42 days

Hi Security team,

i have found that the request sent to https://my.stripo.email/cabinet/stripeapi/v1/plugin/$userid$/plugins don't have any protection against csrf attacks as the server only validates that the content type is application/json and this can be bypassed using the flash file + 307 redirect technique

Steps To Reproduce:

  1. login to your account at https://my.stripo.email
  2. visit https://thehackerblog.com/crossdomain/
  3. use this link as php redirector https://testingsubdomain.000webhostapp.com/stripo.php
  4. in the request headers : Content-Type: application/json;charset=UTF-8
  5. the payload
{"email":"[email protected]","name":"csrf poc","webUrl":"csrf poc "}

##Watch the network traffic from the network tab on the Devtools ##and go back to and refresh the site you'll find all the application data have created

all these steps would be integrated together and performed by the attacker's server

i am attaching a poc video declaring the steps

##Supporting Material/References: http://www.geekboy.ninja/blog/exploiting-json-cross-site-request-forgery-csrf-using-flash/ http://resources.infosecinstitute.com/bypassing-csrf-protections-fun-profit/#gref https://blog.cm2.pw/forging-content-type-header-with-flash/

Impact

attacker can send request to create an application in behalf of user

The original report as published on HackerOne, by qotoz. 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 server relied solely on the Content-Type header being application/json to prevent CSRF, without any token or origin check.

Impact

An attacker could create an application on behalf of a logged-in user.

What the attacker needed

Victim is logged in; victim visits attacker's page; Flash enabled in browser

How it was found

  1. Log in to the target account.
  2. Visit a crossdomain policy page.
  3. Use a PHP redirector link.
  4. Set the Content-Type header to application/json.
  5. Send the JSON payload.

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 is when a malicious site makes your browser send a request to another site where you are logged in, without you knowing. Here, the site tried to block such requests by requiring a special header, but the attacker found a way to fake that header using an old browser plugin called Flash and a redirect trick.

What is CSRF?

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

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.