cspt

Analyze JavaScript fetch() and XHR requests for Client-Side Path Traversal vulnerabilities.

6|1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/securityfortech/hacking-skills --skill cspt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cspt
Source: https://github.com/securityfortech/hacking-skills/tree/main/skills/web/client-side/cspt
Command: npx skills add https://github.com/securityfortech/hacking-skills --skill cspt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps identify and exploit Client-Side Path Traversal (CSPT) vulnerabilities, where user input in JavaScript fetch/XHR requests can be manipulated to access unintended resources or redirect requests.

Core Features & Use Cases

  • Identify CSPT Vulnerabilities: Detects JavaScript code where user input is unsafely concatenated into the path of fetch() or XHR requests.
  • Exploit Path Traversal: Crafts payloads to traverse the URL path, potentially leading to open redirects, data exfiltration, or XSS.
  • WAF Bypass Techniques: Provides strategies for evading Web Application Firewalls using various encoding methods.
  • Use Case: You suspect a web application is vulnerable to CSPT. This Skill analyzes JavaScript to find vulnerable fetch calls and helps you craft a payload to redirect the request to an attacker-controlled server, demonstrating an open redirect vulnerability.

Quick Start

Analyze the provided JavaScript code for instances of user input being concatenated into fetch() or XHR request paths.

Frequently Asked Questions about cspt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is client-side path traversal in JavaScript fetch and XHR requests?

Client-side path traversal (CSPT) occurs when user input is unsafely concatenated into the URL path of fetch() or XHR requests, allowing attackers to manipulate the path and access unintended resources or redirect requests.

How do I find unsafe URL concatenation vulnerabilities in JavaScript fetch calls?

Analyze JavaScript code for instances where user input is directly concatenated into fetch() or XHR request paths. This identifies vulnerable calls where traversal payloads can be crafted to redirect requests.

Can client-side path traversal lead to XSS in single page applications?

Yes, in SPA frameworks, client-side path traversal can manipulate DOM elements and redirect fetch requests, potentially leading to cross-site scripting (XSS) impact through malicious resource loading or data exfiltration.

How do I bypass WAFs when exploiting client-side path traversal vulnerabilities?

Bypass WAFs by applying various encoding strategies to the traversal payloads. This obfuscates the malicious path sequences in fetch and XHR requests, evading pattern-based firewall detection.

What is the best way to test traversal depth in client-side path traversal flaws?

Craft payloads using path traversal sequences to test the depth of URL manipulation in vulnerable fetch() calls. This methodology helps determine if the request can be redirected to an attacker-controlled server.