Update python/ql/src/experimental/Security/CWE-022bis/UnsafeUnpack.qhelp

Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com>
This commit is contained in:
Sim4n6
2022-12-06 14:39:16 +01:00
committed by GitHub
parent a5849eb9b0
commit c22c0b5029

View File

@@ -40,7 +40,7 @@ In this example an archive is extracted without validating file paths.
<sample src="examples/HIT_UnsafeUnpack.py" />
<p>To fix this vulnerability, we need to call the function <code>tarfile.extract()</code>
on each <code>member</code> after verifying that it does not contain either `..` or startswith `/`.
on each <code>member</code> after verifying that it does not contain either <code>..</code> or startswith <code>/</code>.
</p>
<sample src="examples/NoHIT_UnsafeUnpack.py" />