Example Usage
using Ganss.Xss;
var sanitizer = new HtmlSanitizer();
var html = @"<script>alert('xss')</script><div onload=""alert('xss')"""
+ @"style=""background-color: rgba(0, 0, 0, 1)"">Test<img src=""test.png"""
+ @"style=""background-image: url(javascript:alert('xss')); margin: 10px""></div>";
var sanitized = sanitizer.Sanitize(html, "https://www.example.com");
var expected = @"<div style=""background-color: rgba(0, 0, 0, 1)"">"
+ @"Test<img src=""https://www.example.com/test.png"" style=""margin: 10px""></div>";
Assert.Equal(expected, sanitized);
See also
Burp Suite
Freemium
Kali
Leading platform for web application security testing. The Community Edition includes an interceptin…
api-firewall
Open Source
Fast and light-weight API proxy firewall for request and response validation by OpenAPI specs.…
JWT_Tool
Open Source
Toolkit for testing, tampering, and forging JSON Web Tokens. Tests common JWT vulnerabilities includ…
aaWAF
Open Source
…
waf-bypass
Open Source
Check your WAF before an attacker does…
All-CEHv13-Module-wise-PDF-Reports
Free
Practical labs, notes, and reports for CEH v13 modules — covering web hacking, network pentesting, m…