nuclei-templates/miscellaneous/gpc-json.yaml

54 lines
989 B
YAML
Raw Normal View History

2022-12-19 14:56:12 +00:00
id: gpc-json
info:
2022-12-20 06:34:40 +00:00
name: Global Privacy Control (GPC) File Disclosure
2022-12-19 14:56:12 +00:00
author: MihhailSokolov
severity: info
2022-12-20 06:34:40 +00:00
description: |
The website defines a Global Privacy Control policy.
metadata:
verified: "true"
tags: misc,generic,gpc
2022-12-19 14:56:12 +00:00
requests:
- method: GET
path:
- "{{RootURL}}/.well-known/gpc.json"
- "{{RootURL}}/gpc.json"
stop-at-first-match: true
host-redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: word
words:
- "gpc"
2022-12-20 06:34:40 +00:00
- type: status
status:
- 200
2022-12-19 14:56:12 +00:00
- type: dsl
dsl:
- "len(body) <= 1024 && len(body) > 0"
extractors:
- type: json
part: body
name: gpc-value
json:
- ".gpc"
2022-12-19 15:26:14 +00:00
2022-12-19 14:56:12 +00:00
- type: json
part: body
name: gpc-last-update
json:
- ".lastUpdate?"
2022-12-19 15:26:14 +00:00
2022-12-19 14:56:12 +00:00
- type: json
part: body
name: gpc-version
json:
- ".version?"