Commit c6b6d25
committed
fix(api): drop user-derived prefix from /ingest/json tempfile
CodeQL flagged the (whitelist-sanitised) safe_stem as "uncontrolled
data in path expression". The readable-filename feature was debug
ergonomics, not a contract — the URL and source already live inside
the file body. Use NamedTemporaryFile's random default name instead.
Tests untouched (the contract is the file contents, not the path).1 parent 798f5c3 commit c6b6d25
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | 149 | | |
154 | 150 | | |
155 | 151 | | |
| |||
159 | 155 | | |
160 | 156 | | |
161 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
0 commit comments