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 improper escaping of glob parameter, remove regex search #1062

Merged
merged 4 commits into from
Jun 21, 2022

Conversation

mvandenburgh
Copy link
Member

@mvandenburgh mvandenburgh commented Apr 25, 2022

Closes #1047. This also fixes a security issue where a user could include a regex inside the glob parameter and it would be parsed as a regex by postgres.

@mvandenburgh mvandenburgh added patch Increment the patch version when merged release Create a release when this pr is merged labels Apr 25, 2022
@mvandenburgh
Copy link
Member Author

Strange that check-migrations is failing. I'll look into that

@mvandenburgh mvandenburgh marked this pull request as draft April 26, 2022 16:00
This prevents postgres from executing a regex in the glob expression if the user provides one
@mvandenburgh mvandenburgh changed the title Fix improper escaping of glob parameter Fix improper escaping of glob parameter, remove regex search Jun 15, 2022
Supporting regex opens us up to the possibility of a reDOS attack.
@mvandenburgh mvandenburgh marked this pull request as ready for review June 16, 2022 21:36
@mvandenburgh mvandenburgh merged commit 0e0f38a into master Jun 21, 2022
@mvandenburgh mvandenburgh deleted the fix-globs branch June 21, 2022 17:59
@dandibot
Copy link
Member

🚀 PR was released in v0.2.24 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asset glob parameter not working correctly
3 participants