We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a555eb1 + 696fe34 commit cddfedeCopy full SHA for cddfede
src/binwalk/plugins/unpfs.py
@@ -104,7 +104,7 @@ def extractor(self, fname):
104
data = binwalk.core.common.BlockFile(fname, 'rb')
105
data.seek(fs.get_end_of_meta_data())
106
for entry in fs.entries():
107
- outfile_path = os.path.join(out_dir, entry.fname)
+ outfile_path = os.path.abspath(os.path.join(out_dir, entry.fname))
108
if not outfile_path.startswith(out_dir):
109
binwalk.core.common.warning("Unpfs extractor detected directory traversal attempt for file: '%s'. Refusing to extract." % outfile_path)
110
else:
0 commit comments