The issue here is that tar files (and probably zip files too), can store
full and/or relative paths and therefore escape out of the extraction
root.
Attached is an initial WIP to show the issue and possible solution.
--
Ticket URL: <https://code.djangoproject.com/ticket/27659>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "patch.diff" added.
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/27659#comment:1>
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/27659#comment:2>
* status: new => closed
* needs_better_patch: 1 => 0
* has_patch: 1 => 0
* resolution: => fixed
* needs_tests: 1 => 0
Comment:
Fixed in 05413afa8c18cdb978fcdf470e09f7a12b234a23.
--
Ticket URL: <https://code.djangoproject.com/ticket/27659#comment:3>