17 Commits
Author SHA1 Message Date
samwaf 24227923e8 feat: strengthen WAF detection coverage and gate the new inspection paths
Detection engine:
- Normalize request data (body, cookies, form and JSON values, request headers)
  before inspection instead of only the URL query string, so encoded variants
  are evaluated consistently.
- Extend XSS / SQLi / command-injection inspection to request bodies and to
  custom request headers; bodies and headers are scanned per value rather than
  as one blob to keep false positives low.
- Add a configurable body inspection mode (body_detect_mode: observe/block/off,
  default observe) so the new deep checks record rather than block until an
  operator confirms them, plus body_detect_field_exclude to skip fields that
  legitimately carry rich text.
- Keep false positives down on the new paths: skip structured values, require a
  corroborating signal before flagging body/header XSS, and leave dual-use
  keywords out of the fallback lists.
- Path traversal is now normalized and judged on whether it escapes the site
  root instead of matching literally; this also clears a long-standing false
  positive on legitimate in-site relative paths. Adds a sensitive-file list.
- Scanner detection now covers all request headers and known probe paths.

Plugins:
- Suspend plugin loading pending signing and admission work. The code path is
  retained but gated off, and shipped disabled by default.

Validated against a local test corpus and a 33k real-traffic benchmark:
detection improved across every category while the real-traffic false-positive
count stayed flat.
2026-08-23 11:29:22 +08:00
samwaf cf5ac4a697 chore: stop tracking conf/config.yml (auto-generated & gitignored) 2026-07-03 22:45:31 +08:00
samwaf 693c0eed6e feat: add safe entry
#IHWKI6
2026-04-07 15:15:49 +08:00
samwaf f3460580c6 security:samwaf url
#606
2026-01-05 13:40:02 +08:00
samwaf ae2321ed41 feat:add plugin
#587
2025-12-26 23:48:28 +08:00
samwaf 902dd40394 feat: add ip failure
#529
2025-11-21 17:16:53 +08:00
samwaf eb89d4c227 feat:add manage panel
#514
2025-11-13 17:01:09 +08:00
samwaf 17fd450320 feat:modify rule 2025-11-06 16:39:49 +08:00
samwaf ee2ca70f09 feat:add zlog console
#210
2025-03-20 08:48:27 +08:00
samwaf bee9885515 feat:disabled log download 2024-11-01 17:05:08 +08:00
samwaf 1fc8b9373b feat:资源优化 2024-01-18 12:49:22 +08:00
samwaf fd4fe0f3fb refactor:适配主机和yml;通知 2023-12-21 16:15:30 +08:00
samwaf 9b46152363 自定义服务器名称 2023-02-04 21:48:58 +08:00
samwaf 592533f97c 增加本地静态文件的处理 2022-10-25 09:09:23 +08:00
samwaf 21cdf14a71 增加本地web资源;增加本地sqlite3,增加本地server gin 2022-10-05 17:30:34 +08:00
samwaf 2f14e624f9 修复select 有default导致cpu超高的问题 2022-10-01 22:01:15 +08:00
samwaf 588fdec38b 增加用户本地配置 2022-09-30 16:49:22 +08:00