The zipfile module. ZipFile.extractall() and extract() are zip-slip sinks when the archive is untrusted. Python's extractall resolves .. segments in archive members to paths outside the target directory.
.extractall().extract()| FQN | Field | |
|---|---|---|
| zipfile | fqns[0] | |
| zipfile.ZipFile | fqns[1] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
from codepathfinder.go_rule import PyZipfile