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

[MediaBundle] file whitelist #2871

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JZuidema
Copy link
Contributor

@JZuidema JZuidema commented May 6, 2021

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets

An audit was performed on one of the websites we've built with kunstmaan. They strongly recommended a whitelist for files that are being uploaded into the admin. Kunstmaan currently only has a blacklisted (which only renames the uploaded file).
This merge requests adds a whitelist, and uses both the whitelist and the blacklist to validate if the uploaded file is actually allowed to be uploaded.
By default the whitelist is not used (empty array) to make sure there are no backward compatibility breaks.

@ProfessorKuma ProfessorKuma added this to the 5.9.0 milestone May 6, 2021
Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @, your PR needs some changes

  • This PR seems to need a milestone of a minor release.

Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @, your PR passed all our requirements.

Thank you for contributing!

@acrobat
Copy link
Member

acrobat commented May 17, 2021

Hi @JZuidema, thanks for the PR! Related to #2680

In the other PR there were some concerns about the proposed solution, which this PR might solve or fix in a different way. I will do review to check if the concerns are addressed in this PR or if any other changes need to be done here!

@acrobat acrobat self-assigned this May 17, 2021
@acrobat acrobat modified the milestones: 5.9.0, 5.10.0 Oct 10, 2021
@acrobat acrobat removed this from the 5.10.0 milestone Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants