nuclei-templates/http/misconfiguration/xss-deprecated-header.yaml

42 lines
1016 B
YAML
Raw Normal View History

2022-09-22 07:28:46 +00:00
id: xss-deprecated-header
info:
name: XSS-Protection Header - Cross-Site Scripting
author: joshlarsen
2022-09-21 08:50:57 +00:00
severity: info
description: Setting the XSS-Protection header is deprecated. Setting the header to anything other than `0` can actually introduce an XSS vulnerability.
reference:
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
- https://owasp.org/www-project-secure-headers/#x-xss-protection
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
cvss-score: 0.0
2022-05-17 08:06:53 +00:00
tags: xss,misconfig,generic
metadata:
max-request: 1
http:
- method: GET
path:
- "{{BaseURL}}"
matchers-condition: and
matchers:
- type: regex
part: header
regex:
- "(?i)x-xss-protection: 0"
negative: true
- type: regex
part: header
regex:
- "(?i)x-xss-protection: 1+"
extractors:
- type: kval
part: header
kval:
2022-05-17 08:06:53 +00:00
- x_xss_protection