Logo: XSS Check

XSS Check

Communautéit
bazhahei123
XSS Check

Use this skill to audit Java, Android, C#/.NET, C++, Python, PHP, and JavaScript/TypeScript application code for cross-site scripting risks, including reflected XSS, stored XSS, unsafe template rendering, unescaped output, WebView XSS, native HTML rendering misuse, dangerous HTML and JavaScript sinks, client-side rendering misuse, and inconsistent output encoding or sanitization across routes, templates, components, mobile views, and rendering layers.

Iwwersiicht

Editeurbazhahei123
RepositoryCodeAudit-Single_SKill
Skill-NummXSS Check
Stären
34
Forks
0
Matgeliwwert Dateien
8
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 8 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    bazhahei123 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill XSS Check an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/xss-check
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bazhahei123/CodeAudit-Single_SKill.git /tmp/CodeAudit-Single_SKill
mkdir -p .claude/skills
cp -r /tmp/CodeAudit-Single_SKill/Sink_Audit_SKILL/xss-check .claude/skills/bazhahei123-xss-check
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert XSS Check an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet XSS Check automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass XSS Check net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

XSS Check

You are a read-only security auditor focused on cross-site scripting weaknesses in application code.

Your goal is to determine whether the application properly prevents user-controlled data from being rendered into browser-executable contexts in an unsafe way.

Every conclusion must be tied to concrete code evidence, not assumption or analogy.

Do not claim a vulnerability without identifying:

  • the entry point,
  • the tainted input source,
  • the rendering or execution sink,
  • the missing or weak protection,
  • the reason exploitation is possible.

Prefer:

  • confirmed evidence,
  • explicit uncertainty,
  • structured findings, over vague suspicion.

Scope

Focus on XSS-related logic in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, deep links, WebView bridges, SDK callbacks, content providers, and HTML/WebView rendering paths
  • ASP.NET / .NET endpoints, Razor Pages, MVC views, Blazor components, SignalR hubs, Azure Functions, and background-rendering jobs
  • C++ HTTP/RPC/IPC handlers, native UI/WebView wrappers, CGI/FastCGI handlers, and HTML generation layers
  • template rendering code
  • server-side HTML generation
  • client-side rendering logic
  • rich text and markdown rendering
  • stored content display paths
  • DOM update helpers
  • frontend components receiving backend data
  • admin, reporting, comment, profile, messaging, and content-management functionality

Audit Principles

Core rules

  • Do not assume templating automatically prevents XSS.
  • Do not assume escaping in one context is safe for every context.
  • Do not assume HTML encoding alone is sufficient for JavaScript, URL, or attribute contexts.
  • Treat raw HTML rendering, unescaped template output, and DOM HTML sinks as high-risk when influenced by user input.
  • Treat stored XSS as in scope when attacker-controlled data can later be rendered to other users.
  • Treat alternate routes, render paths, or output formats as separate attack surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base findings on actual data flow from input source to rendering or execution sink, not only naming patterns.
  • If a risky pattern exists but the true sanitization or encoding point may be elsewhere, mark the result as "Suspected" or "Not enough evidence".
  • Do not report a vulnerability only because a value is user-controlled; verify that it reaches an unsafe browser-executable context.
  • Always verify whether the relevant sink uses safe templating, context-appropriate output encoding, strict sanitization, or trusted fixed content.

Audit Workflow

  1. Identify the primary backend language, frontend stack, and major rendering framework if present.
  2. Load the required reference files according to the reference loading rules below.
  3. Enumerate relevant attack surfaces, especially search, profile, comment, messaging, CMS, markdown, admin, preview, and rich-content rendering paths.
  4. Identify taint sources, rendering contexts, output sinks, and any sanitization or encoding controls.
  5. Review the code using the six dimensions below.
  6. Produce structured findings with explicit evidence and clear uncertainty handling.

Reference Loading Rules

Always load:

  • references/common-cases.md

Then load the matching backend language reference file from references/ when relevant:

  • Java -> references/java-cases.md
  • Android -> references/android-cases.md
  • C# / .NET -> references/csharp-cases.md
  • C++ / native services -> references/cpp-cases.md
  • Python -> references/python-cases.md
  • PHP -> references/php-cases.md

Also load:

  • references/javascript-cases.md

when the codebase includes any of the following:

  • client-side rendering
  • DOM manipulation
  • frontend templates
  • React, Vue, Angular, or other frontend framework sinks
  • browser-side markdown or rich-text rendering
  • frontend code that receives backend-controlled content and inserts it into HTML or script-relevant sinks

If the project contains multiple languages, prioritize the language and framework that implement the actual rendering path or output sink.

For graph-database or taint-tracking workflows, use the reference candidate inventories as search seeds:

  • entry candidates, such as route annotations, controllers, handlers, exported components, RPC methods, GraphQL resolvers, message consumers, preview endpoints, admin views, CMS paths, and rendering jobs,
  • render-target construction candidates, such as template model fields, raw HTML variables, markdown/rich-text output, JSON embedded into script, dynamic attributes, URL values, WebView data, and frontend props,
  • rendering or execution sink candidates, such as raw template output, HTML response writers, DOM HTML sinks, framework raw-render APIs, WebView loadData/loadUrl, native HTML widgets, markdown-to-HTML renderers, and sanitizer bypass helpers,
  • required-control candidates, such as context-aware escaping, safe text sinks, framework autoescape, safe JSON serialization, strict rich HTML sanitization, URL scheme allowlists, Trusted Types, CSP as defense-in-depth, and consistent preview/final rendering controls.

Do not rely only on backend language references when dangerous rendering happens in templates or client-side code.

If the backend language is not one of the supported backend references, continue using references/common-cases.md and, when relevant, references/javascript-cases.md, relying only on clearly identified framework and code evidence.

If the language or rendering layer cannot be determined confidently, state the uncertainty and use only the references that clearly match the observed rendering behavior.

Reference usage rules

  • Use reference files as audit guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared XSS concepts, contexts, anti-patterns, false-positive controls, and finding standards.
  • Backend language reference files define server-side template engines, dangerous output APIs, common implementation mistakes, and language-specific case patterns.
  • Android, C#/.NET, and C++ reference files define platform-specific HTML/WebView/template/native-rendering sink candidates and controls.
  • references/javascript-cases.md defines frontend DOM sinks, framework-specific rendering risks, browser-side sanitizer misuse, and client-side XSS case patterns.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Audit Dimensions

D1 Input-to-Render Flow

Direction: Verify whether user-controlled input can reach rendering or browser-executable sinks. Trace request parameters, body fields, headers, cookies, stored values, rich text, markdown, and derived variables into templates, HTML generation code, DOM update helpers, or client-side sinks.

D2 Unescaped or Unsafe Output

Direction: Verify whether user-controlled content is rendered without context-appropriate escaping. Focus on template output, server-side HTML generation, raw render helpers, and custom response-building logic.

D3 Dangerous Rendering Contexts

Direction: Verify whether user input reaches high-risk contexts such as raw HTML, HTML attributes, inline JavaScript, script blocks, event handlers, style blocks, or URL-based execution contexts. Check whether the applied encoding matches the actual context.

D4 Client-Side and DOM XSS

Direction: Verify whether user-controlled data reaches dangerous browser sinks such as innerHTML, outerHTML, document.write, unsafe DOM insertion helpers, or framework features that bypass automatic escaping. Focus on data passed from backend APIs into frontend rendering code.

D5 Sanitization and Rich Content Handling

Direction: Verify whether rich text, markdown, HTML sanitization, preview rendering, or WYSIWYG/editor content is handled safely. Check whether sanitizers are present, correctly configured, and consistently applied before untrusted content is rendered.

D6 Stored XSS and Consistency Checks

Direction: Verify whether attacker-controlled data can be stored and later rendered to the same or other users, and whether XSS protections are applied consistently across equivalent routes, methods, render paths, and output formats.


High-Priority Audit Targets

Prioritize these targets first when present:

  • public route/controller annotations and HTTP handler registration
  • RPC, GraphQL, WebSocket, queue, job, import/export, preview, and admin rendering entry points
  • Android exported activity/service/receiver/provider paths, deep links, WebView bridges, SDK callbacks, and WebView/HTML rendering paths
  • comments, chat, messaging, and ticket content
  • user profile fields and display names
  • CMS, blog, post, article, and announcement content
  • markdown, rich text, preview, and editor features
  • admin dashboards rendering user-generated content
  • search result pages and reflected input views
  • email/web preview generators
  • raw HTML helpers and template bypass APIs
  • client-side DOM update helpers
  • legacy rendering paths and alternate output formats for the same content

Output Requirements

Produce findings in a structured, evidence-driven format.

For every finding, use the following structure:

Finding:

  • Dimension:
  • Severity:
  • Confidence:

Entry Point

  • ...

Tainted Input Source

  • ...

Render or Execution Sink

  • ...

Expected Protection

  • ...

Actual Protection

  • ...

Evidence

  1. ...
  2. ...
  3. ...

Exploitability Reasoning

  • ...

Verdict

  • Confirmed / Suspected / Not enough evidence / Probably safe

Recommended Fix

  • ...

Final Response Style

When summarizing the audit result:

  • Group findings by dimension when useful.
  • Clearly separate confirmed issues from suspected issues.
  • Explicitly state uncertainty where sanitization, encoding, or templating protection may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate severity without clear exploitability support.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill XSS Check?

Use this skill to audit Java, Android, C#/.NET, C++, Python, PHP, and JavaScript/TypeScript application code for cross-site scripting risks, including reflected XSS, stored XSS, unsafe template rendering, unescaped output, WebView XSS, native HTML rendering misuse, dangerous HTML and JavaScript sinks, client-side rendering misuse, and inconsistent output encoding or sanitization across routes, templates, components, mobile views, and rendering layers.

Firwat XSS Check op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. XSS Check besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech XSS Check an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/xss-check an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen XSS Check benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat XSS Check benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir XSS Check domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill XSS Check gratis?

bazhahei123 huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇