Repository navigation
Commit ceb1f26
Fix directory traversal vulnerability in tar unpack
Iterate over tar archive entries and call `unpack_in` on each entry instead
of using the top-level `Archive::unpack` method, ensuring proper directory
traversal protections are applied.
Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>1 parent 5afb72b commit ceb1f26
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
262 | 265 | | |
263 | 266 | | |
264 | 267 | | |
| |||
0 commit comments