Session cookie missing SecureFlag on git.edoverflow.com.
The session cookie for git.edoverflow.com was set without the Secure flag, so a browser could send it over plain HTTP. An attacker who intercepts that unencrypted traffic could steal the cookie and gain unauthorised access to the victim's web session.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 2 days
- Disclosed after 3 days
Assigned to:-ED Assigned by:- Kirtikumar Anandrao Ramchandani Assigned on:- 01/05/2018 Bug overview:- Session Cookie without secure flag. Cookie Name:- _gitlab_session Description:-Risk description: Since the Secure flag is not set on the cookie, the browser will send it over an unencrypted channel (plain HTTP) if such a request is made. Thus, the risk exists that an attacker will intercept the clear-text communication between the browser and the server and he will steal the cookie of the user. If this is a session cookie, the attacker could gain unauthorized access to the victim's web session. Recommendation:I recommend reconfiguring the web server in order to set the flag(s) Secure to all sensitive cookies. Reference:-https://blog.dareboost.com/en/2016/12/secure-cookies-secure-httponly-flags/.
Impact The secure flag is an option that can be set by the application server when sending a new cookie to the user within an HTTP Response. The purpose of the secure flag is to prevent cookies from being observed by unauthorized parties due to the transmission of a the cookie in clear text. To accomplish this goal, browsers which support the secure flag will only send cookies with the secure flag when the request is going to a HTTPS page. Said in another way, the browser will not send a cookie with the secure flag set over an unencrypted HTTP request. By setting the secure flag, the browser will prevent the transmission of a cookie over an unencrypted channel. Thank you very much sir :) whatever you can award it will be a great honour for me to secure your website at just age of 15. Once again thank you very much and have a tip: I had learned we should never apologlize if we have learned any lesson. Have a great day and have a great day,
Kind regards, Kirti
Impact
The secure flag is an option that can be set by the application server when sending a new cookie to the user within an HTTP Response. The purpose of the secure flag is to prevent cookies from being observed by unauthorized parties due to the transmission of a the cookie in clear text.
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 web server or application was not configured to mark the session cookie with the Secure attribute.
Impact
An attacker who intercepts clear-text HTTP traffic could steal the session cookie and gain unauthorised access to the victim's web session.
What the attacker needed
Victim's browser sends cookie over HTTP; attacker can intercept network traffic
The fix
The web server should be reconfigured to set the Secure flag on all sensitive cookies.
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. Without it, the cookie can travel over unencrypted HTTP, where someone on the same network could read it and use it to pretend to be you.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.