VOKO-Utrecht / voko

Administration and automation for VOKO
4 stars 8 forks source link

[Security] Bump django-debug-toolbar from 1.11 to 3.2.1 #156

Closed dependabot-preview[bot] closed 1 year ago

dependabot-preview[bot] commented 3 years ago

Bumps django-debug-toolbar from 1.11 to 3.2.1.

Changelog

Sourced from django-debug-toolbar's changelog.

3.2.1 (2021-04-14)

  • Fixed SQL Injection vulnerability, CVE-2021-30459. The toolbar now calculates a signature on all fields for the SQL select, explain, and analyze forms.
  • Changed djdt.cookie.set() to set sameSite=Lax by default if callers do not provide a value.
  • Added PRETTIFY_SQL configuration option to support controlling SQL token grouping. By default it's set to True. When set to False, a performance improvement can be seen by the SQL panel.
  • Fixed issue with toolbar expecting URL paths to start with /__debug__/ while the documentation indicates it's not required.

3.2 (2020-12-03)

  • Moved CI to GitHub Actions: https://github.com/jazzband/django-debug-toolbar/actions
  • Stopped crashing when request.GET and request.POST are dictionaries instead of QueryDict instances. This isn't a valid use of Django but django-debug-toolbar shouldn't crash anyway.
  • Fixed a crash in the history panel when sending a JSON POST request with invalid JSON.
  • Added missing signals to the signals panel by default.
  • Documented how to avoid CORS errors now that we're using JavaScript modules.
  • Verified support for Python 3.9.
  • Added a css and a js template block to debug_toolbar/base.html to allow overriding CSS and JS.

3.2a1 (2020-10-19)

  • Fixed a regression where the JavaScript code crashed with an invalid CSS selector when searching for an element to replace.
  • Replaced remaining images with CSS.
  • Continued refactoring the HTML and CSS code for simplicity, continued improving the use of semantic HTML.
  • Stopped caring about prehistoric browsers for good. Started splitting up the JavaScript code to take advantage of JavaScript modules.
  • Continued removing unused CSS.
  • Started running Selenium tests on Travis CI.
  • Added a system check which prevents using django-debug-toolbar without any enabled panels.
  • Added Panel.run_checks() <debug_toolbar.panels.Panel.run_checks> for panels to verify the configuration before the application starts.
  • Validate the static file paths specified in STATICFILES_DIRS exist via ~debug_toolbar.panels.staticfiles.StaticFilesPanel
  • Introduced prettier to format the frontend code.
  • Started accessing history views using GET requests since they do not change state on the server.
  • Fixed a bug where unsuccessful requests (e.g. network errors) were silently ignored.
  • Started spellchecking the documentation.
  • Removed calls to the deprecated request.is_ajax() method. These calls were unnecessary now that most endpoints return JSON anyway.
  • Removed support for Python 3.5.

3.1 (2020-09-21)

  • Fixed a crash in the history panel when sending an empty JSON POST request.
  • Made make example also set up the database and a superuser account.
  • Added a Makefile target for regenerating the django-debug-toolbar screenshot.
  • Added automatic escaping of panel titles resp. disallowed HTML tags.
  • Removed some CSS
  • Restructured the SQL stats template.
  • Changed command line examples to prefer python -m pip to pip.

3.0 (2020-09-20)

... (truncated)

Commits
  • e9eebfb Fix lint issue in docs.
  • 38e1bd7 Merge pull request from GHSA-pghf-347x-c2gj
  • 8b280e1 Merge pull request #1456 from jazzband/master-to-main
  • 60af440 Rename Django's dev branch to main.
  • 5a3ccd9 Merge pull request #1445 from xi/fix-1248
  • b17d7bc Merge pull request #1453 from tim-schilling/fix-url-expectation
  • 06bf4ba Stop checking STATICFILES_DIRS with Django 4 or better (#1455)
  • 135e7ca Fixed documentation spelling error.
  • d07c2d5 Fixed issue with toolbar expecting urls to start with debug.
  • 3dc5437 Change the default branch for the repository to main.
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
dependabot-preview[bot] commented 3 years ago

We've just been alerted that this update fixes a security vulnerability:

Sourced from The GitHub Security Advisory Database.

SQL Injection via in django-debug-toolbar

Impact

With Django Debug Toolbar attackers are able to execute SQL by changing the raw_sql input of the SQL explain, analyze or select forms and submitting the form.

NOTE: This is a high severity issue for anyone using the toolbar in a production environment.

Generally the Django Debug Toolbar team only maintains the latest version of django-debug-toolbar, but an exception was made because of the high severity of this issue.

Patches

Please upgrade to one of the following versions, depending on the major version you're using: