Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sanity check on attachment filename #1212

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Add sanity check on attachment filename #1212

merged 3 commits into from
Apr 29, 2024

Conversation

bhou2
Copy link
Contributor

@bhou2 bhou2 commented Apr 27, 2024

When using the local filesystem to store the job attachments, the attachment filename should not contain '/' as this allows saving and potentially executing files at any path of the genie server. To avoid this security issue, we reject the attachment if its filename is illegal, i.e., containing '/'.

Copy link
Collaborator

@zdong2 zdong2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bhou2 bhou2 merged commit 67a44e5 into master Apr 29, 2024
2 checks passed
natedanner pushed a commit to natedanner/Netflix__genie that referenced this pull request May 20, 2024
* genie client integration tests: throw the exception of setting up the docker container

* Add sanity check on attachment filename

---------

Co-authored-by: bhou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants