SX

songjianyang/xss-audit

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

546 stars 品質 65 トレンド 61MIT

React、TypeScript、JavaScript プロジェクトの 14 層のチェックで静的 XSS の監査スキル.

概要

React/TypeScript/JavaScript コードベース(静的監査)のチェックの14層の包括的なXSS脆弱性検出スキル。 SVG、MathML、CSS の注入、マークダウンのパイプライン、mXSS/sanitizer のバイパス、JSON の記述の注入、URL の検証のバイパスおよび信頼されたタイプ分析を含む広い静的な適用範囲のユーザーの深い XSS の監査を望むとき使用して下さい。 xs-audit-report.md への出力レポート。 静的解析のみ。 検索の一致は確認された脆弱性ではありません。 このスキルは、現実世界のバグの賞金プログラムで私の実践的な仕事から来ます。 1年間のコースでは、日々の監査ワークフローで使用し、仕事や見逃しさに基づいて継続的に改善しました。 そのワークフローは、賞金獲得したXSS脆弱性の数十点を識別することができました。 同じ期間中、マイクロソフトのMSRCセキュリティ研究者リーダーボード(四半期トップ10)に4つの連続四半期のランク付けされました。 2025 Q3 #4、Q4 #7、2026 Q1 #6、Q2 #10(リーダーボード、私のプロフィール).

概要(AI 翻訳)

React/TypeScript/JavaScript コードベース(静的監査)のチェックの14層の包括的なXSS脆弱性検出スキル。 SVG、MathML、CSS の注入、マークダウンのパイプライン、mXSS/sanitizer のバイパス、JSON の記述の注入、URL の検証のバイパスおよび信頼されたタイプ分析を含む広い静的な適用範囲のユーザーの深い XSS の監査を望むとき使用して下さい。 xs-audit-report.md への出力レポート。

静的解析のみ。 検索の一致は確認された脆弱性ではありません。

背景

このスキルは、現実世界のバグの賞金で私のハンズオンの仕事から来ます プログラム 1年コースを過ぎて、昼から昼まで使っていました。 監査ワークフローを継続的に改善し、作業した内容に基づいて改善 そして何が逃したか。 そのワークフローは、XSSの数十を識別するのに役立ちました 賞金を与えられた脆弱性。

同じ期間中、マイクロソフトのMSRCセキュリティにランクインしました 研究者リーダーボード(本部トップ10)4連連続 四半期 — 2025 Q3 #4、Q4 #7、2026 Q1 #6、Q2 #10 (リーダーボード、プロフィール)

私はそれを共有しているので、他の人は同じレビュープロセスを適応させることができます 自身の監査。

インストール

このディレクトリをエージェントのスキルディレクトリにコピーします。

使用法

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

xss-audit

Comprehensive XSS vulnerability detection skill with 14 layers of checks for React/TypeScript/JavaScript codebases (static audit). Use when the user wants an in-depth XSS audit with broad static coverage, including SVG, MathML, CSS injection, markdown pipelines, mXSS/sanitizer bypass, JSON-in-script injection, URL validation bypass, and Trusted Types analysis. Outputs report to xss-audit-report.md.

Static analysis only. A search match is not a confirmed vulnerability.

Background

This skill comes from my hands-on work in real-world bug bounty programs. Over the course of one year, I used it in my day-to-day audit workflow and refined it continuously based on what worked and what missed. That workflow helped me identify dozens of XSS vulnerabilities that were awarded bounties.

During the same period, I was ranked in Microsoft’s MSRC Security Researcher Leaderboard (quarterly Top 10) for four consecutive quarters — 2025 Q3 #4, Q4 #7, 2026 Q1 #6, Q2 #10 (leaderboard, my profile).

I’m sharing it so others can adapt the same review process to their own audits.

Installation

Copy this directory into your agent’s skills directory:

/xss-audit/SKILL.md

Usage

/xss-audit
/xss-audit src/

Or use $ if that is your agent’s skill syntax:

$xss-audit
$xss-audit src/

What it checks

The 14 review layers cover:

  1. DOM and HTML injection: innerHTML, outerHTML, insertAdjacentHTML, document.write, DOMParser, setHTMLUnsafe, shadow DOM, and React dangerouslySetInnerHTML.
  2. Attributes and event handlers: dynamic on* handlers, href, src, srcdoc, action, formaction, style, and JSX props that forward attacker-controlled values.
  3. URLs and navigation: window.open, location, router navigation, protocol allowlists, hostname and substring validation errors, parser normalization, and downstream use of History API state.
  4. Configuration and JSON-in-script: SSR bootstrap data, hydration state, JSON-LD, rich-text configuration, and `` breakout caused by unsafe serialization.
  5. Props spreading and gadget components: untrusted props forwarded to anchors, iframes, URL-handling components, and dynamic attributes.
  6. Untrusted sources and messaging: URL data, API responses, cookies, storage, IndexedDB, referrer, postMessage, BroadcastChannel, and MessageChannel, including origin, source, schema, and target-origin checks.
  7. Prototype pollution chains: unsafe merge, setter, and assignment paths that can influence a security-sensitive XSS gadget.
  8. JavaScript execution: eval, new Function, string timers, dynamically created scripts, Blob/ObjectURL execution, and worker script imports.
  9. CSS and style injection: cssText, setProperty, insertRule, CSS-in-JS interpolation, external CSS URLs, and legacy browser-specific execution mechanisms where relevant.
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add songjianyang/xss-audit
MCP 初心者?mcpskill.org のガイドから始めましょう →