2023-06-09 19:52:56 +05:30
|
|
|
id: dns-ssl-http-with-variables
|
|
|
|
|
|
|
|
|
|
info:
|
|
|
|
|
name: multi protocol request with dynamic values
|
|
|
|
|
author: pdteam
|
|
|
|
|
severity: info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variables:
|
2024-11-19 12:38:25 +07:00
|
|
|
cname_filtered: '{{trim_suffix(dns_cname,".vercel-dns.com")}}'
|
2023-06-09 19:52:56 +05:30
|
|
|
|
|
|
|
|
dns:
|
|
|
|
|
- name: "{{FQDN}}" # DNS Request
|
|
|
|
|
type: cname
|
|
|
|
|
|
|
|
|
|
ssl:
|
|
|
|
|
- address: "{{Hostname}}" # ssl request
|
|
|
|
|
|
|
|
|
|
http:
|
|
|
|
|
- method: GET # http request
|
|
|
|
|
path:
|
|
|
|
|
- "{{BaseURL}}"
|
|
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
|
- type: dsl
|
|
|
|
|
dsl:
|
2024-11-19 12:38:25 +07:00
|
|
|
- contains(http_body,'introduction') # check for http string
|
|
|
|
|
- cname_filtered == 'cname' # check for cname (extracted information from dns response)
|
|
|
|
|
- ssl_subject_cn == 'docs.projectdiscovery.io'
|
2023-06-09 19:52:56 +05:30
|
|
|
condition: and
|