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

IBX-6185: Add file upload blocklist to security checklist #2059

Merged
merged 7 commits into from
Jul 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs/infrastructure_and_maintenance/security/security_checklis…
…t.md

Co-authored-by: Magdalena Dziadosz <[email protected]>
  • Loading branch information
glye and MagdalenaZuba authored Jul 21, 2023
commit f41185c35da7c036db10a560531441c5b5748222
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ See [Security advisory: EZSA-2020-002.](https://developers.ibexa.co/security-adv

The `ibexa.site_access.config.default.io.file_storage.file_type_blacklist` setting defined in the config file `src/bundle/Core/Resources/config/default_settings.yml` in the Core bundle lists filename extensions for files that shouldn't be uploaded. Attempting to upload such files results in an error message. It exists to prevent uploading files that might be executed on the server, a Remote Code Execution (RCE) vulnerability. (There are also other prevention measures in place, like using the web server configuration to block execution of uploaded scripts, see the next point.)

You should adapt this list to your needs. Note that `svg` images are blocked because they may contain JavaScript code. If you opt to allow them, make sure you take steps to mitigate this risk.
You should adapt this list to your needs. Note that `svg` images are blocked because they may contain JavaScript code.
If you opt to allow them, make sure you take steps to mitigate the risk.

The default list of blocked file types contains: `hta htm html jar js jse pgif phar php php3 php4 php5 phps phpt pht phtml svg swf xhtm xhtml`

Expand Down