Files
SamWaf/wafenginecore
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
..
2026-08-03 16:33:22 +08:00
2025-03-07 08:21:28 +08:00
2026-05-13 14:28:44 +08:00
2026-06-18 13:54:22 +08:00
2025-06-06 10:58:59 +08:00
2026-08-21 21:53:50 +08:00
2026-08-13 16:57:35 +08:00
2026-08-12 21:51:05 +08:00
2026-08-12 21:51:05 +08:00
2025-04-16 15:39:09 +08:00
2026-02-09 17:34:37 +08:00
2026-06-15 17:00:35 +08:00
2025-05-03 15:17:32 +08:00
2026-08-03 16:33:22 +08:00
2026-05-13 14:28:44 +08:00
2026-08-03 16:33:22 +08:00
2026-08-03 16:33:22 +08:00
2026-05-26 11:39:45 +08:00
2026-08-12 16:41:30 +08:00
2026-08-03 13:34:59 +08:00
2026-08-12 16:41:30 +08:00
2025-02-08 08:27:34 +08:00
2025-05-29 16:31:02 +08:00
2026-08-18 17:25:08 +08:00
2026-08-18 17:25:08 +08:00
2026-06-23 11:35:48 +08:00
2026-04-17 14:58:43 +08:00
2026-05-08 15:04:32 +08:00
2025-04-02 14:28:10 +08:00
2026-08-03 16:33:22 +08:00
2025-03-07 08:21:28 +08:00
2026-05-14 14:08:42 +08:00
2026-08-18 12:53:21 +08:00
2026-08-18 12:53:21 +08:00
2025-02-21 08:38:22 +08:00
2026-05-09 16:02:13 +08:00
2026-08-16 10:58:42 +08:00
2026-08-03 13:34:59 +08:00
2026-08-03 13:34:59 +08:00
2026-08-19 08:40:51 +08:00
2026-08-19 08:40:51 +08:00
2026-08-19 08:40:51 +08:00
2026-08-03 13:34:59 +08:00