2022-05-16 16:12:06 +00:00
|
|
|
id: xss-deprecated-header-detect
|
|
|
|
|
|
|
|
info:
|
2022-09-16 19:50:10 +00:00
|
|
|
name: XSS-Protection Header - Cross-Site Scripting
|
2022-05-16 16:12:06 +00:00
|
|
|
author: joshlarsen
|
2022-09-21 08:50:57 +00:00
|
|
|
severity: info
|
2022-09-16 19:50:10 +00:00
|
|
|
description: XSS-Protection header in Explorer, Chrome, and Safari contains a cross-site scripting vulnerability if set to any value other than `0`.
|
2022-05-16 16:12:06 +00:00
|
|
|
reference:
|
|
|
|
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
|
|
|
|
- https://owasp.org/www-project-secure-headers/#x-xss-protection
|
2022-09-16 19:50:10 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
|
|
|
|
cvss-score: 7.2
|
|
|
|
cwe-id: CWE-79
|
2022-05-17 08:06:53 +00:00
|
|
|
tags: xss,misconfig,generic
|
2022-05-16 16:12:06 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- 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
|
2022-09-16 19:50:10 +00:00
|
|
|
|
|
|
|
# Enhanced by mp on 2022/09/15
|