HexBrain

Ed · Report #343928

Session Cookie Without Secure Flag

N/Astatus
7upvotes
28 Apr 2018disclosed

Summary

Hello Everyone, It's not a report. In a comment, Ed @edoverflow said that the cookie Missing 'Secure' Flag requires XSS. But I think that the cookie missing Secure Flag doesn't require XSS. It requires MITM(Man-In-The-Middle). Cookie missing 'HttpOnly'Flag requires XSS. If u think that I'm correct so plz vote up this report. Thanks.

How it was found

Hi Ed,

The bug mentioned in the report #343095 is not yet correctly patched I believe.

Previously, the Researcher reports that the cookie(_gitlab_session) is not Secure (Missing Secure Flag) and u closed that report as Informative and said that "Expoitability of this issue is so low that it does not warrant an immediate fix. In order to actually exploit this issue you would need to find an XSS vulnerability. Please feel free to prove me wrong by hacking me."

U said: In order to actually exploit this issue you would need to find an XSS vulnerability.

But Let me tell u that it doesn't require XSS to exploit. Insecure HTTPOnly cookies require XSS. It requires MITM(Man-In-The-Middle) Attack to steal that cookie.

I submit this report only for your comment "Please feel free to prove me wrong by hacking me."

Thanks Cheers Anas

Impact

Attacker may steal session cookie through MITM.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original