mirror of
https://github.com/Safe3/uusec-waf.git
synced 2025-10-04 06:51:54 +08:00
### Feature Updates **Interface & Management** - Redesigned main program and management interface with improved aesthetics and usability, supports UI language switching (English/Chinese) - Added Rule Collections functionality: Create custom rule templates for batch configuration - Introduced whitelist rules that terminate further rule matching upon success - UUSEC WAF Rules API intelligent suggestions during advanced rule editing:ml-citation - New plugin management supporting hot-reloaded plugins to extend WAF capabilities **Protocol & Optimization** - Supports streaming responses for continuous data push (e.g., LLM stream outputs) - Enables Host header modification during proxying for upstream service access - Search engine validation: `waf.searchEngineValid(dns,ip,ua)` prevents high-frequency rules from affecting SEO indexing - Interception log report generation (HTML/PDF exports) - Automatic rotation of UUSEC WAF error/access logs to prevent performance issues **Security & Infrastructure** - Expanded free SSL certificate support: HTTP-01 & DNS-01 verification across 50+ domain providers - Customizable advanced WAF settings: HTTP2, GZIP, HTTP Caching, SSL protocols, etc - Cluster configuration: Manage UUSEC WAF nodes and ML servers via web UI
22 lines
No EOL
503 B
Lua
22 lines
No EOL
503 B
Lua
--[[
|
|
Rule name: HTTP Splitting
|
|
Filtering stage: Request phase
|
|
Threat level: Critical
|
|
Rule description: This rule detects \n or \r in the request file name. reference resources: https://www.owasp.org/index.php/Testing_for_HTTP_Splitting/Smuggling_(OTG-INPVAL-016)
|
|
--]]
|
|
|
|
|
|
local rgx = waf.rgxMatch
|
|
local function fMatch(v)
|
|
local m = rgx(v, "[\\n\\r]", "jo")
|
|
if m then
|
|
return m, v
|
|
end
|
|
return false
|
|
end
|
|
local m, d = fMatch(waf.uri)
|
|
if m then
|
|
return m, d, true
|
|
end
|
|
|
|
return false |