Files
SamWaf/model/request
samwaf 8e4286150d fix(security): structured whitelist for SQL query API (remove raw SQL)
- Replace raw SQL execution with a structured query (table/mode/columns/filters/top); backend no longer accepts any SQL string
- Fail-closed table & column whitelist: block sensitive tables (auth/key/cert/config/plugin) and columns (password/secret/token/private/key)
- Block EAV/key-value tables (value/params columns) to prevent plaintext secret leak, e.g. system_configs.value
- Parameterize all filter values via GORM clause expressions; operator whitelist; cap filters/IN length
- Add queryable-schema endpoint + query audit logging; harden GetTableInfo to skip sensitive tables/columns
2026-07-03 16:30:53 +08:00
..
2026-06-29 14:05:09 +08:00
2026-06-15 17:00:35 +08:00
2026-04-16 14:41:40 +08:00
2026-04-16 14:41:40 +08:00
2025-05-02 15:43:23 +08:00
2026-04-17 10:14:30 +08:00
2025-06-04 08:42:27 +08:00
2026-04-16 14:41:40 +08:00
2026-04-16 14:41:40 +08:00
2025-05-13 08:43:09 +08:00
2025-02-17 15:51:44 +08:00
2025-01-06 09:42:13 +08:00
2025-11-21 17:16:53 +08:00
2025-08-22 10:04:33 +08:00
2024-09-27 16:55:58 +08:00
2025-02-26 13:39:25 +08:00
2025-11-25 09:07:21 +08:00
2026-01-09 11:19:18 +08:00
2026-04-24 16:52:53 +08:00
2026-02-05 16:07:30 +08:00
2026-06-29 17:08:53 +08:00
2025-01-03 13:54:03 +08:00
2026-03-25 15:10:54 +08:00
2026-03-10 16:54:05 +08:00
2023-03-29 14:50:10 +08:00
2023-03-29 14:50:10 +08:00
2026-02-06 10:37:26 +08:00
2025-05-12 17:23:40 +08:00
2026-03-17 14:31:39 +08:00
2026-06-29 17:08:53 +08:00