Web xss

From NoorQureshi/security-skills · View interactive version

Web xss is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Find and prove Cross-Site Scripting (reflected, stored, DOM). Load when input is echoed into HTML/JS/attributes, a search/comment/profile field renders your text, a URL param appears in the response, or a sink like innerHTML/document.write is in client JS. Signals: "search=", reflected values, error

How to use this skill

Skill file

Cross-Site Scripting (XSS)

When it applies

Any place your input reaches the response or the DOM without correct context-aware output

encoding: reflected (in the immediate response), stored (saved then rendered to others),

or DOM-based (client-side JS writes attacker data into a sink).

Why it works

The browser can't tell your data from the page's own markup/script. If input lands in an

HTML context and the app doesn't encode < > " ' & for that exact context, your bytes

become new elements, attributes, or script. Filters usually fail because they encode for

the wrong context (HTML-encode but you're in a JS string, or in an attribute, or in a URL).

Method

  1. Find reflections. Inject a unique canary rn0x931 in every param/header and grep the

response for it. ffuf/Burp Intruder to spray params; note where it lands (tag body,

attribute, JS string, comment).

  1. Break the context with the minimum needed for that spot:
  1. DOM XSS: trace location.hash/search/name → innerHTML/document.write/eval/

jQuery $(). Use browser DevTools + DOMInvader (Burp) to auto-find source→sink flows.

  1. Prove impact for a report: document.domain in the alert, or exfil a cookie/CSRF token

to your collaborator — not alert(1) on a sandboxed origin.

Gotchas

Verify success

Script executes in the target's origin (alert shows the real document.domain), or your

collaborator receives the exfil'd token. Screenshot the popup with the URL bar visible.

References

PortSwigger Web Security Academy (XSS); OWASP XSS Prevention Cheat Sheet.

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.