Session Management
HackerOne does not invalidate session cookies on the server when a user signs out, and old cookies remain valid after a new login. An attacker who obtains a previously used session cookie could reuse it to access the user's account.
Originally disclosed on HackerOne
- Triaged in 6 hours
- Fixed in 15 days
- Paid in 22 days
- Disclosed after 5 months
Hackerone fails to expire the session cookie from the server side even when the user logs off upon clicking "Sign-Out" from the application. The cookie is cleared from the client side (browser), but is not cleared from the server side. If reused, it provides access to the user's account. Upon logging in again, a new session cookie is created, but the old session cookies still stay active on the server side. Therefore, any session cookie can be reused to gain access to the user's account.
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 does not maintain or check a list of invalidated sessions, so it continues to accept old session cookies after logout and after new logins.
Impact
A stolen or leaked session cookie could be reused to access the user's account even after logout, though the report does not show a full attack chain.
What the attacker needed
Attacker obtains a valid session cookie
The fix
The server should invalidate the session on logout and expire old sessions when a new one is created.
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.
When you log in to a website, the site gives your browser a session cookie, which acts like a temporary key to your account. This report says that when you click sign out, the website only deletes the key from your browser but keeps it valid on its own servers. If someone had copied that key earlier, they could still use it to get into your account even after you thought you had logged out.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.