Jsonp injection

From zakirkun/ice-tea · View interactive version

Jsonp injection is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects JSONP endpoints that reflect user-controlled callback names without validation, enabling XSS.

How to use this skill

Skill file

JSONP Callback Injection

Overview

JSONP (JSON with Padding) endpoints that reflect a user-supplied callback name without validation allow attackers to inject arbitrary JavaScript. JSONP is a legacy cross-origin technique that modern applications should replace with CORS.

Attack: https://api.example.com/data?callback=alert(document.cookie)//

Response: alert(document.cookie)//({"user": "admin"}) — executes JS

Remediation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.