sanitization-verification

Test HTML sanitizers against XSS payloads and edge cases.

836|66|Updated Feb 3, 2025
One-click install
npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill sanitization-verification
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sanitization-verification
Source: https://github.com/kreuzberg-dev/html-to-markdown/tree/main/.ai-rulez/domains/safety-sanitization/skills/sanitization-verification
Command: npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill sanitization-verification

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that sanitization processes effectively remove dangerous elements and attributes from input, preventing security vulnerabilities like XSS attacks.

Core Features & Use Cases

  • XSS Payload Testing: Verifies the removal of malicious HTML elements and attributes.
  • Content Integrity: Confirms that safe content and legitimate attributes are preserved.
  • Edge Case Handling: Tests various encoding and mixed-case attack vectors.
  • Use Case: A web application developer can use this skill to automatically test their HTML sanitizer against a list of known XSS payloads, ensuring their application remains secure.

Quick Start

Use the sanitization-verification skill to test the sanitizer against a list of XSS payloads.

Frequently Asked Questions about sanitization-verification

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

FAQPage Schema
How do I test my HTML sanitizer against XSS payloads?▼

To test HTML sanitization against XSS payloads, you verify the removal of dangerous elements and attributes while confirming that safe content and legitimate attributes are preserved.

What is sanitization verification for web application security?▼

Sanitization verification is the process of testing sanitization effectiveness by validating round-trip safety and checking for regressions in legitimate content handling against XSS attack vectors.

How do I handle edge cases and encoding attacks during HTML sanitization testing?▼

To handle edge cases during HTML sanitization testing, you test various encoding and mixed-case attack vectors to ensure the sanitizer removes malicious elements without breaking legitimate content.

Does sanitization verification check for round-trip safety in content handling?▼

Yes, sanitization verification validates round-trip safety to ensure the sanitization process does not cause regressions or alter legitimate content while removing XSS vulnerabilities.

What is the best way to verify removal of dangerous HTML elements without losing safe content?▼

The best way to verify dangerous HTML removal while preserving safe content is to test the sanitizer against known XSS payloads and confirm legitimate attributes and functionality remain intact.

Why does my HTML sanitizer still leave malicious attributes after testing?▼

Your HTML sanitizer may leave malicious attributes due to unhandled edge cases or mixed-case attack vectors, requiring comprehensive sanitization verification to identify and close these security gaps.