filter-js-from-html

Analyze HTML sanitizer filters and document XSS bypass payload outcomes.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/bianhaifeng789-hue/openclaw-config --skill filter-js-from-html-bianhaifeng789-hue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: filter-js-from-html
Source: https://github.com/bianhaifeng789-hue/openclaw-config/tree/main/skills/tb2/filter-js-from-html
Command: npx skills add https://github.com/bianhaifeng789-hue/openclaw-config --skill filter-js-from-html-bianhaifeng789-hue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured approach for bypassing HTML/JavaScript sanitization filters in authorized security testing contexts (CTF challenges, penetration testing, security research). The methodology emphasizes understanding filter mechanisms before attempting bypasses, avoiding trial-and-error approaches in favor of systematic analysis.

Core Features & Use Cases

  • Systematic filter analysis: identify sanitization libraries/parsers and map blocked/preserved elements and attributes.
  • Phase-based bypass categorization: parser differential exploits, alternative JavaScript execution vectors, event handler variations, URL-based execution, and CSS-based angles.
  • Testing methodology & verification: build a testing harness, perform two-stage verification, and document results with cross-browser considerations.
  • Reference-driven learning: references and resources to deepen understanding of XSS filter evasion in authorized contexts.

Quick Start

Provide a target HTML sanitizer configuration and a test payload to start a structured bypass assessment.

Frequently Asked Questions about filter-js-from-html

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bypass XSS filters systematically during web security testing?

To bypass XSS filters systematically, you must first identify the sanitization library, map blocked versus preserved elements, and then apply phase-based bypass strategies like parser differential exploits or alternative JavaScript execution vectors.

What is parser differential exploitation in XSS filter bypass?

Parser differential exploitation in XSS filter bypass leverages discrepancies between how different HTML sanitization parsers interpret malformed markup, allowing malicious tags or attributes to slip through unrecognized by the target library.

Can I use this methodology to test DOMPurify and BeautifulSoup sanitization robustness?

Yes, you can use this methodology to test DOMPurify and BeautifulSoup robustness by providing your target sanitizer configuration and test payloads to systematically evaluate filter preservation and identify viable event handler execution vectors.

What are the best ways to execute JavaScript when event handlers are blocked by HTML sanitization?

When event handlers are blocked by HTML sanitization, alternative JavaScript execution vectors include URL-based execution pathways, CSS-based angles, and exploiting parser differentials to inject unsanitized attributes that trigger script loading.

How to verify if an XSS payload bypass works across different web browsers?

To verify if an XSS payload bypass works across different web browsers, build a testing harness to perform two-stage verification and document the payload outcomes with explicit cross-browser considerations to ensure consistent execution.

When should I avoid trial-and-error for CTF XSS filter evasion?

You should avoid trial-and-error for CTF XSS filter evasion when facing complex sanitization libraries, opting instead for a structured analysis approach that maps filter mechanisms and categorizes bypass vectors before testing payloads.