Task #12578

Task #12556: Pentest - 2nd Assessment [2021]

Pentest_CDB - TLS Cookie Without Secure Flag Set [MED]

Added by Nurul Athira Abdul Rahim almost 3 years ago. Updated over 2 years ago.

Status:Development / Work In ProgressStart date:November 08, 2021
Priority:NormalDue date:
Assignee:Chun Feng Lim% Done:

0%

Category:Penetration Test IssueSpent time:-
Target version:-

Description

If the Secure flag is set on a cookie, then browsers will not submit the cookie in any requests that use an unencrypted HTTP connection, thereby preventing the cookie from being trivially intercepted by an attacker monitoring network traffic. If the Secure flag is not set, then the cookie will be transmitted in clear-text if the user visits any HTTP URLs within the cookie's scope. An attacker may be able to induce this event by feeding a user suitable links, either directly or via another web site. Even if the domain that issued the cookie does not host any content that is accessed over HTTP, an attacker may be able to use links of the form http://example.com:443/ to perform the same attack.

To exploit this vulnerability, an attacker must be suitably positioned to eavesdrop on the victim's network traffic. This scenario typically occurs when a client communicates with the server over an insecure connection such as public Wi-Fi, or a corporate or home network that is shared with a compromised computer. Common defenses such as switched networks are not sufficient to prevent this. An attacker situated in the user's ISP or the application's hosting infrastructure could also perform this attack. Note that an advanced adversary could potentially target any connection made over the Internet's core infrastructure.

Solution provided by LGMS :

The Secure flag should be set on all cookies that are used for transmitting sensitive data when accessing content over HTTPS. If cookies are used to transmit session tokens, then areas of the application that are accessed over HTTPS should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications.

'Affected Cookie:
JUAT

2021 BSN CDB Front End Portal Web Application Penetration Test Quick Results-v1.0.xlsx (4.57 MB) Nurul Athira Abdul Rahim, November 08, 2021 17:25

History

#1 Updated by Nurul Athira Abdul Rahim over 2 years ago

  • Status changed from New - Begin Life Cycle to Development / Work In Progress

Kindly review the fixes, as the new pentest (March,9,20202) result status stated "not solved".

Also available in: Atom PDF