nuclei-templates/http/misconfiguration/http-missing-security-heade...

98 lines
2.8 KiB
YAML
Raw Normal View History

2021-07-28 12:40:20 +00:00
id: http-missing-security-headers
info:
name: HTTP Missing Security Headers
2023-05-20 12:02:26 +00:00
author: socketz,geeknik,G4L1T0,convisoappsec,kurohost,dawid-czarnecki,forgedhallpass,jub0bs
2021-07-28 12:40:20 +00:00
severity: info
description: |
This template searches for missing HTTP security headers. The impact of these missing headers can vary.
tags: misconfig,headers,generic
metadata:
max-request: 1
2021-07-28 12:40:20 +00:00
http:
2021-07-28 12:40:20 +00:00
- method: GET
path:
- "{{BaseURL}}"
2021-09-03 16:54:11 +00:00
host-redirects: true
2021-07-28 12:40:20 +00:00
max-redirects: 3
matchers-condition: or
matchers:
- type: dsl
2021-09-03 16:54:11 +00:00
name: strict-transport-security
dsl:
- "!regex('(?i)strict-transport-security', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
2021-09-03 16:54:11 +00:00
- type: dsl
2021-09-03 16:54:11 +00:00
name: content-security-policy
dsl:
- "!regex('(?i)content-security-policy', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
2021-09-03 16:54:11 +00:00
- type: dsl
name: permissions-policy
dsl:
- "!regex('(?i)permissions-policy', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
- type: dsl
2021-09-03 16:54:11 +00:00
name: x-frame-options
dsl:
- "!regex('(?i)x-frame-options', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
2021-09-03 16:54:11 +00:00
- type: dsl
2021-09-03 16:54:11 +00:00
name: x-content-type-options
dsl:
- "!regex('(?i)x-content-type-options', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
2021-09-03 16:54:11 +00:00
- type: dsl
2021-09-03 16:54:11 +00:00
name: x-permitted-cross-domain-policies
dsl:
- "!regex('(?i)x-permitted-cross-domain-policies', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
2021-09-03 16:54:11 +00:00
- type: dsl
2021-09-03 16:54:11 +00:00
name: referrer-policy
dsl:
- "!regex('(?i)referrer-policy', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
2021-09-03 16:54:11 +00:00
- type: dsl
2021-09-03 16:54:11 +00:00
name: clear-site-data
dsl:
- "!regex('(?i)clear-site-data', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
2021-09-03 16:54:11 +00:00
- type: dsl
2021-09-03 16:54:11 +00:00
name: cross-origin-embedder-policy
dsl:
- "!regex('(?i)cross-origin-embedder-policy', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
2021-09-03 16:54:11 +00:00
- type: dsl
2021-09-03 16:54:11 +00:00
name: cross-origin-opener-policy
dsl:
- "!regex('(?i)cross-origin-opener-policy', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and
2021-09-03 16:54:11 +00:00
- type: dsl
2021-09-03 16:54:11 +00:00
name: cross-origin-resource-policy
dsl:
- "!regex('(?i)cross-origin-resource-policy', all_headers)"
- "status_code != 301 && status_code != 302"
condition: and