frontend-mobile-security-xss-scan

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 poi

By sickn33 · 509 installs

npx skills add sickn33/agentic-awesome-skills --skill frontend-mobile-security-xss-scan

Source repository · Upstream listing

XSS Vulnerability Scanner for Frontend Code 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. Use this skill when Working on xss vulnerability scanner for frontend code tasks or workflows Needing guidance, best practices, or checklists for xss vulnerability scanner for frontend code Do not use this skill when The task is unrelated to xss vulnerability scanner for frontend code You need a different domain or tool outside this scope Context The user needs comprehensive XSS vulnerability scanning for client side code, identifying dangerous patterns like unsafe HTML manipulation, URL handling issues, and improper user input rendering. Focus on context aware detection and framework specific security patterns. Requirements $ARGUMENTS Instructions 1. XSS Vulnerability Detection Scan codebase for XSS vulnerabilities using static analysis: 2. Framework Specific Detection 3. Secure Coding Examples 4. Automated Scanning Integration 5. Report Generation 6. Prevention Checklist HTML Manipulation Never use innerHTML with user input Prefer textContent for text content Sanitize with DOMPurify before rendering HTML Avoid document.write entirely URL Handling Validate all URLs before assignment Block javascript: and data: protocols Use URL constructor for validation Sanitize href attributes Event Handlers Use addEventListener instead of inline handlers Sanitize all event handler input Avoid string to code patterns Framework Specific React: Sanitize before using unsafe APIs Vue: Prefer v text over v html Angular: Use built in sanitization Avoid bypassing framework security features Output Format 1. Vulnerability Report : Detailed findings with severity levels 2. Risk Analysis : Impact assessment for each vulnerability 3. Fix Recommendations : Secure code examples 4. Sanitization Guide : DOMPurify usage patterns 5. Prevention Checklist : Best practices for XSS prevention Focus on identifying XSS attack vectors, providing actionable fixes, and establishing secure coding patterns. Limitations Use this skill only when the task clearly matches the scope described above. Do not treat the output as a substitute for environment specific validation, testing, or expert review. Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.