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

Fix : Prevent potential LFI by ensuring filename uses basename #163

Conversation

muhammedBkf
Copy link

This change ensures that only the file name (not the full path) is used, mitigating the risk of LFI attacks.

@syphax-bouazzouni syphax-bouazzouni self-requested a review October 9, 2024 07:08
Copy link

@syphax-bouazzouni syphax-bouazzouni left a comment

Choose a reason for hiding this comment

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

tests are not passing

@syphax-bouazzouni syphax-bouazzouni merged commit 25819bc into ontoportal-lirmm:development Oct 9, 2024
12 checks passed
@jonquet
Copy link

jonquet commented Oct 9, 2024

I understand this change will affect the value also present in the json serialization when a call is done by API, no?
If yes, this means a non backward compatible change that might require a check with a larger group of users

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.

3 participants