Commit aabd7e0
Fix command injection vulnerabilities in sqlite_create and sqlite_reset
- Use Utils\esc_cmd to properly escape database path arguments
- Add is_sqlite3_available() helper to check for sqlite3 binary
- Add preflight check with clear error message if sqlite3 not found
- Addresses security concerns about unescaped shell commands
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>1 parent 41709cd commit aabd7e0
1 file changed
Lines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
14 | 30 | | |
15 | 31 | | |
16 | 32 | | |
| |||
103 | 119 | | |
104 | 120 | | |
105 | 121 | | |
106 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
107 | 129 | | |
108 | 130 | | |
109 | 131 | | |
| |||
162 | 184 | | |
163 | 185 | | |
164 | 186 | | |
165 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
166 | 194 | | |
167 | 195 | | |
168 | 196 | | |
| |||
0 commit comments