Sensitive Cookie in HTTPS Session Without 'Secure' Attribute in filegator/filegator

Valid

Reported on

Sep 27th 2021


Description

Secure flag is not implemented on the application

Proof of Concept

https://ibb.co/nLTbftm

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.

We have contacted a member of the filegator team and are waiting to hear back a month ago
We have contacted a member of the filegator team and are waiting to hear back a month ago
Milos Stojanovic validated this vulnerability a month ago
0xdhinu has been awarded the disclosure bounty
The fix bounty is now up for grabs
Milos
a month ago

Thanks, this is now configurable with https://github.com/filegator/filegator/blob/5ddec1a0e0f84c760779fff7c258cd276685d0cf/configuration_sample.php#L50

Milos Stojanovic confirmed that a fix has been merged on 5ddec1 a month ago
Milos Stojanovic has been awarded the fix bounty