2023-03-23 11:42:27 +00:00
|
|
|
id: httponly-cookie-detect
|
|
|
|
|
2023-02-16 12:21:56 +00:00
|
|
|
info:
|
2023-03-23 11:42:27 +00:00
|
|
|
name: HttpOnly Cookie - Detect
|
|
|
|
author: 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
|
|
|
|
reference:
|
|
|
|
- https://stackoverflow.com/questions/4316539/how-do-i-test-httponly-cookie-flag
|
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
|
2023-10-14 11:27:55 +00:00
|
|
|
cvss-score: 0
|
2023-03-23 11:42:27 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 1
|
2023-03-23 11:42:27 +00:00
|
|
|
tags: misconfig,http,cookie,generic
|
2023-02-16 12:21:56 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2023-02-16 12:21:56 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2023-03-23 11:42:27 +00:00
|
|
|
- "{{BaseURL}}"
|
|
|
|
|
2023-02-16 12:21:56 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
2023-03-23 11:42:27 +00:00
|
|
|
- Set-Cookie
|
2023-02-16 12:21:56 +00:00
|
|
|
- HttpOnly
|
2023-03-23 11:42:27 +00:00
|
|
|
condition: and
|
|
|
|
case-insensitive: true
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a0046304402207aea4f66841920dd854bfb78b8f8976dfce17e524b019c56457d0e8bd46fac0a0220298f5fa7b968b183c6e1192bf731eaaf267414e55014ad43627b9ccedfe87854:922c64590222798bb761d5b6d8e72950
|