Skip to content
CSRF Disclosed report Beginner

CSRF vulnerability on https://sehacure.slack.com/account/settings

The CSRF token (crumb) did not expire after a user logged out and logged back in, so an old token remained valid. An attacker could potentially use a previously captured token to change the victim's username and other account settings.

anandpingsafe Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 5 months

Hi,

The CSRF token is not getting expired for a user.This can led to username change and many other account change information as well.

To reproduce the issue:

  1. Login into your Slack.com account
  2. Go to this URl https://sehacure.slack.com/account/settings
  3. Inspect element Copy your anti CSRF token i.e. crumb.
  4. Now logout from your account.
  5. Login again and visit the same page again i.e. https://sehacure.slack.com/account/settings
  6. Inspect element and change the value of crumb to token you copied.
  7. Change your username now it will be changed.

CSRF tokens should expire as soon as the user logs out and we have to assign a new one when a user signs in :-)

Best regards, Anand

The original report as published on HackerOne, by anandpingsafe. 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 did not invalidate the anti-CSRF token on logout and did not issue a fresh one on login, so tokens remained valid across sessions.

Impact

An attacker who obtained a valid CSRF token could potentially change the victim's username and other account settings, but the report does not demonstrate a full cross-site attack.

What the attacker needed

A Slack account; attacker obtains the victim's CSRF token

How it was found

  1. Log in to the Slack account.
  2. Go to the account settings page.
  3. Inspect the page and copy the anti-CSRF token (crumb).
  4. Log out of the account.
  5. Log in again and revisit the same settings page.
  6. Inspect the page, replace the current crumb with the previously copied token, and change the username; the change succeeds.

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 CSRF token is a secret code a website gives you to prove that a request really came from you. If that code never changes, someone who saw it once could reuse it later to make changes to your account without your permission.

What is CSRF?

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

More by anandpingsafe

View all

19 more disclosed reports, best first.

More from Slack

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.