break-filter-js-from-html

Analyze HTML snippets to bypass sanitization filters for XSS testing.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/Zurybr/lefarma-skills --skill break-filter-js-from-html-zurybr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: break-filter-js-from-html
Source: https://github.com/Zurybr/lefarma-skills/tree/main/letta/benchmarks/trajectory-only/break-filter-js-from-html
Command: npx skills add https://github.com/Zurybr/lefarma-skills --skill break-filter-js-from-html-zurybr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps security professionals and bug bounty hunters bypass HTML sanitization filters to execute JavaScript, enabling them to test for Cross-Site Scripting (XSS) vulnerabilities.

Core Features & Use Cases

  • Filter Analysis: Systematically identify how sanitization libraries block or preserve HTML elements and attributes.
  • Bypass Categories: Provides structured approaches for exploiting parser differentials, alternative JavaScript vectors, event handler variations, URL-based execution, and CSS-based attacks.
  • Testing Methodology: Guides users in building testing harnesses and performing staged verification to confirm bypasses.
  • Use Case: When performing a penetration test on a web application that sanitizes user-submitted HTML, use this skill to craft payloads that bypass the filter and demonstrate an XSS vulnerability.

Quick Start

Use the break-filter-js-from-html skill to analyze the provided HTML snippet for potential XSS filter bypasses.

Frequently Asked Questions about break-filter-js-from-html

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

FAQPage Schema
How do I bypass HTML sanitization filters for XSS penetration testing?

Bypassing HTML sanitization filters for XSS penetration testing requires systematically analyzing how sanitization libraries block or preserve HTML elements and attributes. You exploit parser differentials and alternative JavaScript execution vectors to demonstrate vulnerabilities in web applications.

What is a parser differential in XSS filter evasion?

A parser differential in XSS filter evasion occurs when the sanitization library and the web browser interpret HTML differently. Exploiting this mismatch allows security testers to craft payloads that the filter perceives as safe but the browser executes as active JavaScript.

What are the best ways to execute JavaScript when event handlers are sanitized?

When event handlers are sanitized, alternative ways to execute JavaScript include leveraging URL-based execution and CSS-based attacks. Security testers can also target specific parsing quirks in the sanitization library to trigger execution.

How do I build a testing harness to verify XSS bypasses?

Building a testing harness to verify XSS bypasses involves implementing a staged verification methodology that confirms whether crafted payloads successfully bypass the sanitization filter and execute JavaScript. This systematic approach guides the testing of web application vulnerabilities.

Does this XSS filter evasion methodology work on all HTML sanitization libraries?

This XSS filter evasion methodology does not universally work on all HTML sanitization libraries, as it requires understanding common sanitization quirks and specific parser differentials. Security professionals must systematically analyze the specific filter to identify applicable bypass categories.