Skip to content
CSRF Disclosed report Beginner

Sensitive information/action is stored/done is done using a GET request

The action to remove an email from an account is performed via a GET request with the security token in the URL. An attacker who obtains the URL could host a malicious site and perform a CSRF attack to unlink the victim's email address.

saurabhb Follow

Originally disclosed on HackerOne

  • Disclosed after 2.8 years

###Description: The action to remove an email from account is done using a GET request and it has security token.

The URL is : https://www.khanacademy.org/settings/unlinkaccount?email=█████&fkey=<security token here>

It is never a good practice to have sensitive information in URL. Following are the reasons:

  • GET requests can be cached
  • GET requests remain in the browser history
  • GET requests can be bookmarked

Whereas:

  • POST requests are never cached
  • POST requests do not remain in the browser history
  • POST requests cannot be bookmarked

###Attack Scenario: If the URL goes in the hands of malicious user then host a malicious website and perform a CSRF attack against the victim and this un-link that email address.

The original report as published on HackerOne, by saurabhb. 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 application uses a GET request for a state-changing action and places the security token in the URL, making it susceptible to CSRF if the token leaks.

What the attacker needed

Attacker obtains the URL with token; victim is logged in; victim visits malicious site

The fix

The action should use a POST request rather than a GET 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.

A GET request is a way for a browser to ask a website for a page, and the details of the request are visible in the address bar. Here, a sensitive action (removing an email) is triggered just by visiting a link, and the security token is included in that link. If someone else gets that link, they could trick a logged-in user into visiting it and remove their email without consent.

What is CSRF?

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

More by saurabhb

View all

10 more disclosed reports, best first.

More from Khan Academy

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.