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