Skip to content

Commit 29f69bd

Browse files
Update zipslip_bad.py
1 parent dfe7f53 commit 29f69bd

File tree

1 file changed

+1
-1
lines changed
  • python/ql/test/experimental/query-tests/Security/CWE-022

1 file changed

+1
-1
lines changed

python/ql/test/experimental/query-tests/Security/CWE-022/zipslip_bad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ def unzip4(filename):
3434
filelist = zf.namelist()
3535
for x in filelist:
3636
with zf.open(x) as srcf:
37-
shutil.copyfileobj(x, dstfile)
37+
shutil.copyfileobj(x, "/tmp/unpack/")
3838

0 commit comments

Comments
 (0)