Unsafe path traversal in app.py image extraction #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
In
app.pylines 24-28, the_extract_image_from_stdout()function resolves paths from pipeline stdout without validating they stay within the project directory:Problem
If the pipeline stdout contains a line like
../../etc/passwd.png, the path resolves outsideAPP_DIR. While exploitation requires control of stdout, the defense-in-depth principle applies — especially since stdout is a mix of debug prints and real output (issue #3).Fix