Files
SamWaf/model
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-05-12 17:00:04 +08:00
2026-06-29 14:05:09 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-07-02 11:31:43 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-07-02 13:59:35 +08:00
2026-07-02 13:59:35 +08:00
2026-07-02 13:59:35 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-05-12 17:00:04 +08:00
2026-06-08 16:08:54 +08:00
2026-06-15 17:00:35 +08:00
2026-05-12 17:00:04 +08:00