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
|
2022-05-20 21:38:52 +00:00
|
|
|
description: |
|
|
|
|
This template searches for missing HTTP security headers. The impact of these missing headers can vary.
|
2022-10-24 14:42:57 +00:00
|
|
|
tags: misconfig,headers,generic
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2021-07-28 12:40:20 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-28 12:40:20 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}"
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-10-07 21:27:25 +00:00
|
|
|
host-redirects: true
|
2021-07-28 12:40:20 +00:00
|
|
|
max-redirects: 3
|
|
|
|
matchers-condition: or
|
|
|
|
matchers:
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: strict-transport-security
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)strict-transport-security', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: content-security-policy
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)content-security-policy', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2022-09-23 10:56:33 +00:00
|
|
|
name: permissions-policy
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)permissions-policy', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-12-29 14:36:58 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: x-frame-options
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)x-frame-options', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: x-content-type-options
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)x-content-type-options', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: x-permitted-cross-domain-policies
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)x-permitted-cross-domain-policies', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: referrer-policy
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)referrer-policy', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: clear-site-data
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)clear-site-data', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: cross-origin-embedder-policy
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)cross-origin-embedder-policy', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: cross-origin-opener-policy
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)cross-origin-opener-policy', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|
2021-09-03 16:54:11 +00:00
|
|
|
|
2022-05-17 20:49:08 +00:00
|
|
|
- type: dsl
|
2021-09-03 16:54:11 +00:00
|
|
|
name: cross-origin-resource-policy
|
2022-05-17 20:49:08 +00:00
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "!regex('(?i)cross-origin-resource-policy', header)"
|
2022-05-17 20:49:08 +00:00
|
|
|
- "status_code != 301 && status_code != 302"
|
|
|
|
condition: and
|