Files
SamWaf/model/response
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
..
2024-11-11 15:08:40 +08:00
2026-03-10 16:54:05 +08:00
2025-11-21 17:16:53 +08:00
2026-06-29 14:05:09 +08:00
2026-06-15 17:00:35 +08:00
2025-05-02 15:43:23 +08:00
2026-04-24 16:52:53 +08:00
2025-12-25 15:58:13 +08:00
2026-03-10 16:54:05 +08:00
2025-10-30 11:20:58 +08:00
2026-06-29 17:08:53 +08:00