nuclei-templates/http/misconfiguration/cookies-without-httponly.yaml

42 lines
1.3 KiB
YAML

id: cookies-without-httponly
info:
name: Cookies without HttpOnly attribute - Detect
author: princechaddha,Mr.Bobo HP
severity: info
description: |
Checks whether cookies in the HTTP response contain the HttpOnly attribute. If the HttpOnly flag is set, it means that the cookie is HTTP-only
impact: |
Lack of HttpOnly flag on cookies increases the risk of client-side attacks, compromising user session security and data privacy.
remediation: |
Ensure that all cookies are set with the HttpOnly attribute to prevent client-side access.
reference:
- https://owasp.org/www-community/HttpOnly
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:
- "HttpOnly"
negative: true
# digest: 4a0a00473045022100d9b191fde19b5091d9b1ed789721ea3e93689c0b964658df7a578d1e5903ea5802205b26c3af43b5b32a731d2ecd2ef48401ae45a37258168e67710fb2f47abb0989:922c64590222798bb761d5b6d8e72950