Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/oscap_docker_python/oscap_docker_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
self.mountpoint = tempfile.mkdtemp()
self.extracted_container = True
with tarfile.open(fileobj=tar) as tf:
tf.extractall(path=self.mountpoint)
tf.extractall(path=self.mountpoint, filter="fully_trusted")

Check failure

Code scanning / CodeQL

Arbitrary file write during tarfile extraction High

This file extraction depends on a
potentially untrusted source
.
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Path(os.path.join(self.mountpoint, '.dockerenv')).touch()


Expand Down
Loading