42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
|
id: cookies-without-secure
|
||
|
|
||
|
info:
|
||
|
name: Cookies without Secure attribute - Detect
|
||
|
author: vthiery
|
||
|
severity: info
|
||
|
description: |
|
||
|
Checks whether cookies in the HTTP response contain the Secure attribute. If the Secure flag is set, it means that the cookie can only be transmitted over HTTPS
|
||
|
impact: |
|
||
|
Lack of Secure flag on cookies allows the cookie to be sent over unsecure HTTP, making it vulnerable to man-in-the-middle (MITM) attacks.
|
||
|
remediation: |
|
||
|
Ensure that all cookies are set with the Secure attribute to prevent MITM attacks.
|
||
|
reference:
|
||
|
- https://owasp.org/www-community/controls/SecureCookieAttribute
|
||
|
classification:
|
||
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
|
||
|
cvss-score: 0
|
||
|
metadata:
|
||
|
verified: true
|
||
|
max-request: 1
|
||
|
tags: misconfig,http,cookie,generic
|
||
|
|
||
|
http:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "{{BaseURL}}"
|
||
|
|
||
|
host-redirects: true
|
||
|
max-redirects: 2
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: word
|
||
|
part: header
|
||
|
words:
|
||
|
- 'Set-Cookie'
|
||
|
|
||
|
- type: word
|
||
|
part: header
|
||
|
words:
|
||
|
- "Secure"
|
||
|
negative: true
|