id: cookies-without-httponly-secure info: name: Cookies without HttpOnly or Secure 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" - "Secure" negative: true # digest: 4a0a004730450220123181274d69492219d698d89cf1fd5d0b71c908b139b6a52e15df69c7b8c6aa022100da21796dba95fc800f492b76bed8877b493b296856dc7f71fe89da22aff0fe3f:922c64590222798bb761d5b6d8e72950