id: cookie-consent-detection

info:
  name: Cookie Consent Detection
  author: rxerium
  severity: info
  description: |
    This template detects the presence of cookie consent forms
  tags: headless,cookie,detect

headless:
  - steps:
      - action: navigate
        args:
          url: "{{BaseURL}}"
      - action: waitload

    matchers-condition: and
    matchers:
      - type: word
        name: keyword
        words:
          - 'cookie-consent'
          - 'cookie-popup'
          - 'cookie-notice'
          - 'We use cookies'
          - 'Manage privacy preferences'
          - 'Accept all cookies'
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100fee3a47066ada1e37863e0bd6c2ddeaf1edcca8353effbbc8970886cfbe23d86022034c9e56a56cb6eb48916cbff5a0c9d6be192299aca53f7647447f97fcaf993ba:922c64590222798bb761d5b6d8e72950