Reviews client-side code for DOM-based XSS vulnerabilities based on OWASP standards.
Install
mkdir -p .claude/skills/security-review-owasp-dom-based-xss-prevention && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14920" && unzip -o skill.zip -d .claude/skills/security-review-owasp-dom-based-xss-prevention && rm skill.zipInstalls to .claude/skills/security-review-owasp-dom-based-xss-prevention
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Review Dom Based XSS Prevention concerns, trust boundaries, and operational assumptions against OWASP Dom Based XSS Prevention guidance.Key capabilities
- →Identify DOM injection vulnerabilities
- →Review client-side trust boundaries
- →Validate third-party script behavior
- →Check browser policies for bypasses
- →Analyze framing and cross-origin leakage issues
- →Prioritize findings by severity and exploitability
How it works
The skill acts as a security reviewer, examining browser-rendered code, DOM sinks, and client-origin interactions against OWASP Dom Based XSS Prevention guidance. It traces attacker-controlled data paths and validates relevant areas against a checklist.
Inputs & outputs
When to use security-review-owasp-dom-based-xss-prevention
- →Identify unsafe DOM sinks
- →Audit client-side trust boundaries
- →Review third-party script behavior
- →Check framing and storage security
About this skill
OWASP Dom Based XSS Prevention Security Review
Apply this skill to security reviews focused on Dom Based XSS Prevention concerns across code, configuration, architecture, and operational controls.
Role
Act as a security reviewer. Focus on DOM injection, unsafe client-side state, cross-origin trust mistakes, browser policy bypasses, framing and leakage issues, and unsafe third-party script behavior. Prefer precise findings over broad advice.
Scope
- browser-rendered pages, front-end code, DOM sinks, storage, and client-origin interactions related to this topic
- response headers, browser policies, framing rules, script loading, and client-side trust boundaries
- embedded third-party code, extensions, widgets, and browser APIs that expand attacker influence
Review Goals
- Find weaknesses that let attacker-controlled content execute, leak sensitive data, or subvert browser trust decisions.
- Prioritize DOM injection, policy bypass, framing, cross-origin leakage, and unsafe third-party code over cosmetic client issues.
- Produce findings with concrete evidence from code, headers, browser behavior, tests, documentation, or observable behavior.
Review Procedure
- Identify rendering paths, browser storage, script loading, and cross-origin interactions in scope.
- Trace attacker-controlled data into DOM sinks, browser APIs, policies, and third-party integrations.
- Validate each relevant area against the checklist below.
- Separate confirmed weaknesses from unknowns. If a control may exist elsewhere but is not visible, report that as a review gap rather than as a confirmed vulnerability.
- Prioritize findings by whether they enable script execution, credential theft, framing abuse, or cross-origin data leakage.
Review Checklist
Rendering and Client-Side Sinks
- Check whether attacker-controlled input reaches DOM APIs, template escape hatches, or other executable browser contexts.
- Check browser storage, postMessage, and local state handling for cross-origin or script-injection abuse paths.
- Flag assumptions that client-side checks, hidden fields, or browser-only controls provide server-grade security.
Browser Policies and Framing
- Check CSP, framing, navigation, and origin policies for bypasses, weak defaults, or inconsistent deployment.
- Check mixed-content, sandbox, and permission boundaries where the topic depends on browser enforcement.
- Flag policy gaps that leave sensitive UI or state exposed to embedding, probing, or leakage.
Third-Party and Ecosystem Risk
- Check third-party scripts, extensions, widgets, and browser features for excessive privilege and supply-chain exposure.
- Check dependency loading, integrity, update, and allowlisting practices where external code runs in trusted contexts.
- Check telemetry and incident controls for client-side abuse or content-tampering signals.
Topic Focus Areas
- Review the browser trust boundaries, client-side state, and rendering behaviors most affected by this topic.
- Review unsafe interactions among DOM updates, storage, framing, messaging, and third-party content relevant to this topic.
- Review response-side defenses, browser-enforced controls, and frontend isolation mechanisms relevant to this topic.
- Review how user-controlled input, script execution, and client-side dependencies can weaken this topic.
- Review test coverage and telemetry for client-side failures or abuse paths related to this topic.
Output Contract
Structure every review response exactly in this order.
1. Findings
- Start with confirmed findings only.
- Order findings by severity, then by exploitability.
- If there are no confirmed findings, state
No confirmed findings for this review topic.
Use this format for each finding:
Title: <short vulnerability statement>
Severity: Critical | High | Medium | Low
Confidence: High | Medium | Low
Affected area: <flow, endpoint, component, or trust boundary>
Evidence: <specific file, behavior, response pattern, configuration, or code path>
Why it matters: <attacker outcome and impact>
Recommendation: <minimal concrete remediation>
OWASP basis: <relevant topic from this skill>
2. Review Gaps
- Could not verify <control or flow> because <missing evidence>.
3. Passed Checks
- <control> appears correctly implemented based on <evidence>.
4. Overall Assessment
- End with a short conclusion covering the dominant risk theme for this topic.
Severity Guidance
- Critical: Browser-side weaknesses that enable reliable script execution in sensitive contexts or broad credential/session theft.
- High: Policy bypasses, framing abuse, or cross-origin leakage with realistic attacker control over inputs or origins.
- Medium: Important hardening and boundary gaps that increase exposure but need additional conditions.
- Low: Defense-in-depth and observability issues with stronger client and server controls otherwise in place.
Findings Format Rules
- Tie each finding to visible evidence from code, configuration, tests, documentation, or behavior.
- Prefer root causes over listing multiple symptoms separately.
- Distinguish confirmed weaknesses from review gaps where evidence is missing.
- State whether the weakness affects rendering, policy enforcement, client storage, framing, or third-party script trust.
- Mention the browser-controlled boundary or sink involved when possible.
Review Constraints
- Do not invent controls that are not visible in code, configuration, tests, or documentation.
- Do not produce a long narrative summary before listing findings.
When not to use it
- →When the security review is not focused on DOM-based XSS prevention
- →When the scope is limited to server-side vulnerabilities
Limitations
- →Focuses specifically on DOM Based XSS Prevention concerns
- →Does not invent controls not visible in code, configuration, tests, or documentation
- →Prioritizes DOM injection, policy bypass, framing, cross-origin leakage, and unsafe third-party code
How it compares
This skill provides a structured, checklist-driven approach to identify DOM-based XSS vulnerabilities, ensuring a systematic review of client-side code, browser policies, and third-party integrations, which is more thorough than an ad-hoc m
Compared to similar skills
security-review-owasp-dom-based-xss-prevention side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| security-review-owasp-dom-based-xss-prevention (this skill) | 0 | 4mo | No flags | Advanced |
| xss-testing | 1 | 7mo | Review | Advanced |
| frontend-security-coder | 0 | 4mo | No flags | Advanced |
| security-hardening | 0 | 7mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by sjinks
View all by sjinks →You might also like
xss-testing
Ed1s0nZ
XSS跨站脚本攻击测试的专业技能
frontend-security-coder
sickn33
Expert in secure frontend coding practices specializing in XSS prevention, output sanitization, and client-side security patterns. Use PROACTIVELY for frontend security implementations or client-side security code reviews.
security-hardening
CeamKrier
Implement client-side security measures including Content Security Policy, input sanitization, XSS prevention, and secure data handling. Use when handling user input, displaying dynamic content, or storing sensitive data.
vibe-security
diegosouzapw
Write secure web applications following security best practices. Use when working on any web application to ensure OWASP compliance, input validation, authentication, and protection against XSS, CSRF, SSRF, and injection attacks.
xss-scan
itsimonfredlingjack
You are a frontend security specialist focusing on Cross-Site Scripting (XSS) vulnerability detection and prevention. Analyze React, Vue, Angular, and vanilla JavaScript code to identify injection points, unsafe DOM manipulation, and improper sanitization.
fullstack-guardian
Jeffallan
Use when implementing features across frontend and backend, building APIs with UI, or creating end-to-end data flows. Invoke for feature implementation, API development, UI building, cross-stack work.