auto-logout after 20 minutes
The application does not expire a user's session after 20 minutes of inactivity or after the browser is closed, so a session stays valid longer than intended. An attacker who obtains a session identifier could keep using it, though the text does not demonstrate this.
Originally disclosed on HackerOne
- Triaged in 13 hours
- Paid in 13 hours
- Disclosed after 5 months
Hi,
Session is not getting expired even after keeping the application idle for 20 min and after browser closure.
Information: (JavaScript code can be used by the web application in all (or critical) pages to automatically logout client sessions after the idle timeout expires, for example, by redirecting the user to the logout page (the same resource used by the logout button mentioned previously).
The benefit of enhancing the server-side idle timeout functionality with client-side code is that the user can see that the session has finished due to inactivity, or even can be notified in advance that the session is about to expire through a countdown timer and warning messages. This user-friendly approach helps to avoid loss of work in web pages that require extensive input data due to server-side silently expired sessions.
With the goal of detecting (and, in some scenarios, protecting against) user misbehaviors and session hijacking, it is highly recommended to bind the session ID to other user or client properties, such as the client IP address, User-Agent, or client-based digital certificate. If the web application detects any change or anomaly between these different properties in the middle of an established session, this is a very good indicator of session manipulation and hijacking attempts, and this simple fact can be used to alert and/or terminate the suspicious session.
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-side idle timeout is missing or too long, and no client-side logout or session binding is used to end stale sessions.
Impact
A session that should have ended stays usable, so anyone holding the session identifier could keep acting as the user; the text does not show this being exploited.
What the attacker needed
A logged-in session; session identifier obtained by an attacker
The fix
The application should enforce a server-side idle timeout and add client-side code to log the user out or warn them before expiry, and should bind the session to client properties.
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, the site gives your browser a session identifier so it knows who you are on later requests. This report says that identifier keeps working even after you leave the site idle for 20 minutes or close the browser, when it should stop working. If someone else got hold of that identifier, they could carry on acting as you.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.