filter-js-from-html

Analyze HTML sanitizers and generate JavaScript bypass payloads for security testing.

127|27|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill filter-js-from-html-lazyfroglol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: filter-js-from-html
Source: https://github.com/lazyFrogLOL/Harness_Engineering/tree/main/skills/filter-js-from-html
Command: npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill filter-js-from-html-lazyfroglol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Security testers often encounter HTML sanitizers that strip malicious scripts, making it hard to craft payloads that execute JavaScript. This skill provides a structured methodology to analyze and bypass such filters.

Core Features & Use Cases

  • Systematic filter analysis: Identify libraries, parsers, and filtering rules.
  • Categorized bypass techniques: Exploit parser differences, alternative vectors, event handlers, URL schemes, and CSS attacks.
  • Testing harness guidance: Build scripts to verify payload preservation and browser execution.
  • Use Cases: CTF challenges, penetration testing of web applications, and internal security audits where sanitizers like BeautifulSoup, DOMPurify, or custom filters are deployed.

Quick Start

Use the filter-js-from-html skill to generate a bypass payload for a given HTML sanitizer.

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 HTML sanitizers to execute JavaScript in XSS testing?

Bypassing HTML sanitizers to execute JavaScript involves systematically analyzing parser differences, alternative event handlers, and URL schemes to craft payloads that evade filters like DOMPurify or BeautifulSoup. This skill provides a categorized methodology for identifying and exploiting these filtering weaknesses.

What is the best way to analyze custom HTML filter implementations for CTF challenges?

Analyzing custom HTML filter implementations for CTF challenges requires identifying the specific parsing libraries and filtering rules in use. This skill delivers a structured workflow to map filter behavior, categorize potential bypass techniques, and validate payload preservation through a testing harness.

Does this HTML sanitizer bypass methodology work with DOMPurify and BeautifulSoup?

Yes, this HTML sanitizer bypass methodology works with DOMPurify and BeautifulSoup by exploiting parser differences and alternative execution vectors. It is specifically designed for security testing, CTF challenges, and penetration testing scenarios involving these common sanitization filters.

Why does my XSS payload get stripped by the HTML sanitizer?

Your XSS payload gets stripped by the HTML sanitizer because the filter identifies and removes malicious scripts, event handlers, or dangerous URL schemes. This skill helps you analyze the specific filtering rules and craft alternative vectors that preserve payload syntax while achieving code execution.

Can I validate browser execution of bypass payloads without external libraries?

Yes, you can validate browser execution of bypass payloads without external libraries by using a Python testing harness. This skill provides guidance on building scripts to verify both payload preservation through the sanitizer and subsequent JavaScript execution in the browser environment.

What alternative vectors can I use to bypass JavaScript sanitization filters?

Alternative vectors to bypass JavaScript sanitization filters include exploiting parser differences, utilizing alternative event handlers, manipulating URL schemes, and executing CSS attacks. This skill categorizes these techniques to help you systematically test and circumvent various HTML and JavaScript filtering mechanisms.