Missing Secure flag in "_rapgenius_session" session cookie
The session cookie used for login lacked the Secure flag after a framework migration, so it could be sent over plain HTTP. An attacker on the same network could intercept the cookie and take over the user's session.
- Accepted in 15 days
- Fixed in 16 days
- Disclosed after 3 months
Summary by Genius
A framework migration briefly removed the setting of the Secure flag in the _rapgenius_session cookie, exposing this login credential over insecure HTTP requests. This made Genius users connecting over untrusted connections (e.g. public wifi) vulnerable to session takeover. In response, we rotated the session key and invalidated all potentially exposed sessions.
Summary by divideBy0
Session cookies or any cookies containing sensitive information should have the Secure flag set to ensure they are transmitted only over HTTPS. Many websites redirect HTTP requests to HTTPS for security, but if the Secure flag is missing, the cookie will be exposed during the initial HTTP request before the redirect occurs. This allows an attacker on the same network to intercept the cookie and potentially hijack the 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 a framework migration changed the cookie configuration and dropped the Secure attribute.
Impact
Users on untrusted networks such as public Wi-Fi could have their session cookie intercepted and their session taken over.
What the attacker needed
Attacker on same network; victim connects over HTTP
The fix
The session key was rotated and all potentially exposed sessions were invalidated; the Secure flag should be set on the cookie.
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 cookie is a small piece of data a website stores in your browser to remember who you are. The Secure flag tells the browser to send that cookie only over encrypted HTTPS connections, not over plain HTTP. Without it, someone on the same Wi-Fi could read the cookie and use it to log in as you.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.