Logout any user of same team
An invalid password reset link on a team subdomain logged the user out of their session, even when 'Keep me signed in' was selected. An attacker could embed the link in an image on a page they control to log out any user of the same team who visits it.
Originally disclosed on HackerOne
- Triaged in 12 hours
- Fixed in 39 hours
- Paid in 39 hours
- Disclosed after 32 days
It is possible for a user to logout other member of same team even if they had selected Keep me signed in option.
Steps to Verify:
- Login to your team i.e https://yourteamname.slack.com.
- On new tab on the same browser request a url which would be like https://yourteamname.slack.reset/youareloggedout
- You will be automatically logged out of your account even if you have selected Keep me signed in option.
Attacker can embed the invalid password reset link in a image tag in a website of his/her control and when users visists the page they will be logged out.
`<html>
<head> <title>I Logged You Out</title> </head> <body> </body> </html>`You should not logout a user when an invalid password reset link is accessed rather than you should redirect a user to homepage whenever a password reset link is accessed when user is allready logged in.
Thanks Uttam Soren
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 password reset endpoint cleared the session cookie even when the reset token was invalid, instead of only doing so for a valid reset.
Impact
An attacker could log out any user of the same team by getting them to load a page containing the reset link, though this only causes a logout and not account takeover.
What the attacker needed
Victim is logged in to the team; victim visits attacker-controlled page
The fix
The password reset endpoint should not clear the session when the reset link is invalid; it should redirect logged-in users to the homepage instead.
How it was found
- Log in to your team's Slack workspace.
- In a new tab in the same browser, request a URL on the team's password reset path.
- Observe that you are logged out even though 'Keep me signed in' was selected.
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.
Visiting a made-up password reset link on a team's Slack address would sign you out. An attacker could hide that link in an image on their own website, so anyone from the same team who viewed the page would be signed out.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.