Commit 5533e6f
committed
fix(security): validate sort_column and sort_direction against ORDER BY injection
Validate in both get_order_string() and update_order_string() to
prevent bypassing validation via cached session values. Restrict
sort_direction to ASC/DESC, sort_column to alphanumeric/dots/underscores.
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>1 parent 02acd9b commit 5533e6f
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
148 | 157 | | |
149 | 158 | | |
150 | 159 | | |
| |||
0 commit comments