42 lines
1017 B
YAML
42 lines
1017 B
YAML
|
id: xss-deprecated-header
|
||
|
|
||
|
info:
|
||
|
name: XSS-Protection Header - Cross-Site Scripting
|
||
|
author: joshlarsen
|
||
|
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
|
||
|
tags: xss,misconfig,generic
|
||
|
|
||
|
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:
|
||
|
- x_xss_protection
|
||
|
|
||
|
# Enhanced by mp on 2022/09/15
|