63 Commits

Author SHA1 Message Date
samwaf d611961172 feat:add update process 2026-08-31 11:32:14 +08:00
samwaf d44f956ff5 feat: negotiate a per-session key for console traffic 2026-08-25 19:50:33 +08:00
samwaf 31a4937636 feat: encrypt stored credentials with a per-instance data key and mask secret fields 2026-08-25 11:39:36 +08:00
samwaf 77ffa81ef0 fix: validate batch task data source before reading 2026-08-24 09:05:42 +08:00
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 b3379d4150 fix:ssl export 2026-08-21 21:53:50 +08:00
samwafgo 1a8bf18ac9 fix:login bug (#961)
#938 #930 #897
2026-08-19 13:58:45 +08:00
samwafgo a035e768c8 fix:proxy header (#958)
#956
2026-08-18 17:25:08 +08:00
samwafgo d4583a63c7 Fix hostguard win bug (#944)
* fix:hostguard windows bug

* fix:hostguard windows ban debounce starvation
2026-08-14 10:47:39 +08:00
samwafgo 98b8803acd feat:add acme log (#943)
* feat:add acme log

* fix:acme bug

* fix:sslhttp_check config wording
2026-08-13 16:57:35 +08:00
samwaf 86409183b5 feat:add host guard
#529 #368 #555
2026-08-07 10:38:10 +08:00
samwaf f29df8f229 feat:sslcheck_config 2026-08-05 15:36:31 +08:00
samwaf 3ef6b4830b feat:unified access authentication
#408
2026-08-05 10:21:43 +08:00
samwaf 3a7dc1a6c8 feat:merging 2026-08-03 09:23:20 +08:00
samwaf c4456d237f fix: detect reverse-proxy loops, stop waf_req_uuid header growth, quiet URL_ENCODE logs 2026-07-20 11:23:32 +08:00
samwaf c7cdbe397a feat:add AI rule generation, GPT settings, request timeout config and rule chain mode entry
#844
2026-07-13 16:43:23 +08:00
samwaf 0b87b371a0 fix(security): gate /debug behind auth+ip-whitelist, CORS origin allowlist with loopback bypass (N8, N9) 2026-07-06 11:41:07 +08:00
samwaf 98035772ca fix(security): SSRF +OTP rate limit+IP binding+account authorization 2026-07-06 08:48:14 +08:00
samwaf 8aae66efbe fix(security): validate trusted proxy before honoring client-IP headers on management port
- default GCONFIG_MANAGE_PROXY_HEADER to empty; add GCONFIG_MANAGE_TRUSTED_PROXIES
2026-07-03 22:35:59 +08:00
samwaf 10174920d6 feat:add account rbac
#844
2026-06-29 14:05:09 +08:00
samwaf 51c36deb6f feat: graceful update
#831
2026-06-18 13:54:22 +08:00
samwaf 17ac5ebbd3 feat:add light ai model
#827
2026-06-15 17:00:35 +08:00
samwaf a9e7e3a737 feat:request protected 2026-05-07 08:38:53 +08:00
samwaf dc1b221dd8 feat:manage proxy header default
#781
2026-05-06 15:57:37 +08:00
samwaf 2f6b0d39c2 feat:manage proxy header
#781
2026-05-06 15:09:55 +08:00
qiulaidongfeng 47e94d1f2b perf: 增加http3使用bbr的选项
quic-go默认使用NewReno变种(初始拥塞窗口32MSS,丢包时拥塞窗口减少为原来0.7倍),源码中还有一个Cubic实现但未提供配置选项来改用它。

这两种拥塞控制算法在美国vps到中国客户端的夜间网络中表现不佳。BBR表现更好,原分支短期内无计划支持,我fork了一个分支来支持,默认关闭,需要显式开启,将其引入SamWaf时也遵循这种选择加入配置方式。

由于quic-go原分支已经在go.mod声明最低需要go1.25,main module不能声明低于依赖的go版本,SamWaf的go.mod需要提高声明的go版本。
2026-04-26 20:53:20 +08:00
samwaf 0ea2530a6a feat: default DetectionOnly
#546
2026-04-22 16:00:25 +08:00
samwaf 25c5bbedfe feat: owasp
#546
2026-04-20 17:32:11 +08:00
samwaf 4a3c0302b6 feat:add task log
#750
2026-04-13 14:29:17 +08:00
samwaf 703360d7fe feat:add open platform
#664 #698
2026-03-06 17:39:01 +08:00
samwaf 9d07261de2 feat: nginx access
#IDNH2E
2026-02-09 13:55:07 +08:00
samwaf fd662be3b2 feat:add zerossl
#641
2026-01-12 17:23:32 +08:00
samwaf 3c5be933fd feat:support ip ssl
#591
2026-01-07 16:23:13 +08:00
samwaf 70ff42f37b feat: add log desensitization configuration
- Introduced GCONFIG_RECORD_LOG_DESENSITIZE to control desensitization of request logs.
- Updated task configuration to include desensitization option.
- Modified log handling to apply desensitization based on the new configuration.

#626
2026-01-07 10:05:00 +08:00
qiulaidongfeng acb9077ee1 feat: 支持客户端->waf 使用http3
Fixes #550
2025-11-25 16:28:01 +08:00
samwaf 78039fbc34 feat:add update beta switch
#542
2025-11-24 14:32:23 +08:00
samwaf 902dd40394 feat: add ip failure
#529
2025-11-21 17:16:53 +08:00
samwaf 3a1d7ed124 feat: check ip response error count
#529
2025-11-18 13:59:19 +08:00
samwaf 68a57d93ab fix:fix ssl apply response header echo gzip
#527
2025-11-07 15:30:44 +08:00
samwaf e9ffb00384 feat:add enable_system_stats_push
#501
2025-10-30 10:49:42 +08:00
samwaf efb1825bb9 feat:add proxy protocol
#457
2025-09-26 14:14:55 +08:00
samwaf eb65e929d6 feat:switch log
#434
2025-09-25 16:03:39 +08:00
samwaf 1be1f974e2 feat:improve log attacking
#451
2025-09-19 11:26:00 +08:00
samwaf 462e569e84 fix:check auth ip logic
#ICEQ4L
2025-07-17 14:58:07 +08:00
samwaf 0b8b286166 feat:add ssl minVersion maxVersion
#ICDIVQ
2025-06-25 11:04:31 +08:00
samwaf 95e9981196 feat:same port http jump https
#36 #39
2025-06-16 08:28:25 +08:00
samwaf 4eae3e0f9a feat:well-known file
#323
2025-05-27 10:39:44 +08:00
samwaf 54c008124a feat:add announcement 2025-04-04 07:44:05 +08:00
samwaf 835e715f46 feat:captcha
#112 #3
2025-03-24 10:12:24 +08:00
samwaf 3d60ab1fc5 feat: otp force
#169
2025-03-05 09:58:16 +08:00