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,discovery

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: 4a0a0047304502207bbeec287c97ff4bc1e05954f3809fdf565f022c22715e0c47f3adeed0e9f672022100e13807a2c734d800406412d1606668c1762f0159aa9bc65211d84ec08e1fb15e:922c64590222798bb761d5b6d8e72950