diff --git a/CHANGELOG.md b/CHANGELOG.md index a62de31..b0b5d10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ Note: Breaking changes between versions are indicated by "💥". ## Unreleased -- [Bugfix] Fix discussion notification not work. +- 💥[Security] Disable python-evaluated input by default as we don't run codejail. +- [Bugfix] Fix missing discussion notifications. - [Improvement] Better error logging when loading a plugin from an incompatible version. ## v11.2.11 (2021-05-18) diff --git a/tutor/templates/apps/openedx/settings/partials/common_all.py b/tutor/templates/apps/openedx/settings/partials/common_all.py index b46de53..0226510 100644 --- a/tutor/templates/apps/openedx/settings/partials/common_all.py +++ b/tutor/templates/apps/openedx/settings/partials/common_all.py @@ -136,5 +136,15 @@ JWT_AUTH["JWT_ISSUERS"] = [ } ] +# Disable codejail support +# explicitely configuring python is necessary to prevent unsafe calls +import codejail.jail_code +codejail.jail_code.configure("python", "nonexistingpythonbinary", user=None) +# another configuration entry is required to override prod/dev settings +CODE_JAIL = { + "python_bin": "nonexistingpythonbinary", + "user": None, +} + {{ patch("openedx-common-settings") }} ######## End of settings common to LMS and CMS