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

[Security] Bump django-debug-toolbar from 2.0 to 2.2.1 #326

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps django-debug-toolbar from 2.0 to 2.2.1. This update includes a security fix.

Vulnerabilities fixed

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:

For more information

If you have any questions or comments about this advisory:

Affected versions: >= 2.0.0, < 2.2.1

Changelog

Sourced from django-debug-toolbar's changelog.

2.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.

2.2 (2020-01-31)

  • Removed support for end of life Django 2.0 and 2.1.
  • Added support for Python 3.8.
  • Add locals() option for sql panel.
  • Added support for Django 3.0

2.1 (2019-11-12)

  • Changed the Travis CI matrix to run style checks first.
  • Exposed the djdt.init function too.
  • Small improvements to the code to take advantage of newer Django APIs and avoid warnings because of deprecated code.
  • Verified compatibility with the upcoming Django 3.0 (at the time of writing).
Commits
  • 5e6750b Merge pull request from GHSA-pghf-347x-c2gj
  • e154955 Merge pull request #1234 from tim-schilling/ddt-2.2
  • 852e455 Merge pull request #1229 from tim-schilling/postgres-json-explain
  • 530fde6 Bump to version 2.2
  • 98308a2 Merge pull request #1226 from tim-schilling/tox-expand-db-tests
  • 0caa826 Only use postgres CursorDebugWrapper with Django 3
  • 59af30f Expand travis tests.
  • 863664d Handle postgres CursorDebugWrapper in debugsqlshell.
  • 9efa204 Test with postgresql and mariadb on multiple versions of Django.
  • a8ae50b get_safe_settings' location has changed in Django 3.1 (#1233)
  • 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:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Apr 16, 2021
@codecov
Copy link

codecov bot commented Apr 16, 2021

Codecov Report

Merging #326 (fc9b6a8) into master (d5b5b2d) will decrease coverage by 0.67%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #326      +/-   ##
==========================================
- Coverage   34.82%   34.15%   -0.68%     
==========================================
  Files          38       26      -12     
  Lines        2481     1827     -654     
==========================================
- Hits          864      624     -240     
+ Misses       1617     1203     -414     
Impacted Files Coverage Δ
apps/catastro/urls.py
apps/api3/views.py
apps/usuarios/urls.py
apps/core/urls.py
apps/api3/serializers.py
apps/editor/views.py
apps/catastro/views.py
apps/core/views.py
apps/usuarios/views.py
apps/editor/urls.py
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5b5b2d...fc9b6a8. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants