Skip to content

Commit

Permalink
Merge pull request #10522 from rxerium/cookie-form-detect
Browse files Browse the repository at this point in the history
Cookie Form Detection
  • Loading branch information
princechaddha authored Aug 26, 2024
2 parents 7b69d0e + 59522f0 commit ee934a4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions headless/cookie-consent-detection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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

0 comments on commit ee934a4

Please sign in to comment.