Skip to content
Back to skills

Xssi

ASecurity

Cross-Site Script Inclusion (XSSI) — stealing sensitive data from endpoints that return JavaScript or JSON-as-script by including them cross-origin via a script tag, including dynamic JS variable theft, JSONP leakage, and non-standard JSON prefixes bypass. Tier 1. Use for endpoints returning JS/JSONP or JSON without anti-XSSI protections.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securityjavascriptjavabackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill xssi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xssi?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Xssi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-xssi/badge)](https://www.skillsdirectory.com/skills/anandjogawade-xssi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: xssi
description: Cross-Site Script Inclusion (XSSI) — stealing sensitive data from endpoints that return JavaScript or JSON-as-script by including them cross-origin via a script tag, including dynamic JS variable theft, JSONP leakage, and non-standard JSON prefixes bypass. Tier 1. Use for endpoints returning JS/JSONP or JSON without anti-XSSI protections.
---

# Cross-Site Script Inclusion (XSSI)

If a sensitive endpoint returns executable JS (or JSON loadable as script), an attacker page can `<script src>` it and read the data cross-origin.

## Trigger phrases
`xssi, cross site script inclusion, jsonp leak, javascript data theft, json hijacking`

## Method
1. Find endpoints returning `application/javascript` or JSON that executes as script (dynamic JS with global vars, JSONP callbacks, arrays/old-browser JSON).
2. **Dynamic-JS XSSI:** include the endpoint via `<script>`; read the global variables/functions it defines (containing user data).
3. **JSONP leakage:** supply your own `callback` to capture the data.
4. **Prefix checks:** confirm whether anti-XSSI prefixes (`)]}'`, `while(1);`, `for(;;);`) are present; absence → leakable.
5. Confirm cross-origin read on an attacker page with a victim session.

## Escalation
Theft of authenticated data (PII, tokens, config) cross-origin without CORS.

## Backend & tooling
Preferred Kali path or headless browser for client-side execution/evidence; if a Burp MCP is present, proxy traffic for visibility and send PoCs to Repeater (see `zazy-orchestrator`).

## Verification (background, before reporting)
Reproduce in a real browser / second context and confirm impact before marking CONFIRMED; use OAST for blind cases. Report true positives only.

## Evidence
The leakable endpoint, the attacker-page PoC, and the data read cross-origin.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.