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 1.2.1 to 2.0 #736

Closed

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Jun 21, 2019

Bumps django-debug-toolbar from 1.2.1 to 2.0.

Changelog

Sourced from django-debug-toolbar's changelog.

2.0 (2019-06-20)

  • Updated StaticFilesPanel to be compatible with Django 3.0.
  • The ProfilingPanel is now enabled but inactive by default.
  • Fixed toggling of table rows in the profiling panel UI.
  • The ProfilingPanel no longer skips remaining panels or middlewares.
  • Improved the installation documentation.
  • Fixed a possible crash in the template panel.
  • Added support for psycopg2 Composed objects.
  • Changed the Jinja2 tests to use Django's own Jinja2 template backend.
  • Added instrumentation to queries using server side cursors.
  • Too many small improvements and cleanups to list them all.

Backwards incompatible changes

  • Removed support for Python 2.
  • Removed support for Django's deprecated MIDDLEWARE_CLASSES setting.
  • Restructured Panel to execute more like the new-style Django MIDDLEWARE. The Panel.__init__() method is now passed get_response as the first positional argument. The Panel.process_request() method must now always return a response. Usually this is the response returned by get_response() but the panel may also return a different response as is the case in the RedirectsPanel. Third party panels must adjust to this new architecture. Panel.process_response() and Panel.process_view() have been removed as a result of this change.

The deprecated API, debug_toolbar.panels.DebugPanel, has been removed. Third party panels should use debug_toolbar.panels.Panel instead.

The following deprecated settings have been removed:

  • HIDDEN_STACKTRACE_MODULES
  • HIDE_DJANGO_SQL
  • INTERCEPT_REDIRECTS
  • RESULTS_STORE_SIZE
  • ROOT_TAG_ATTRS
  • TAG

1.11 (2018-12-03)

  • Use defer on all <script> tags to avoid blocking HTML parsing, removed inline JavaScript.
  • Stop inlining images in CSS to avoid Content Security Policy errors altogether.
  • Reformatted the code using black.
  • Added the Django mail panel to the list of third-party panels.
  • Convert system check errors to warnings to accomodate exotic configurations.
  • Fixed a crash when explaining raw querysets.
  • Fixed an obscure unicode error with binary data fields.
  • Added MariaDB and Python 3.7 builds to the CI.

1.10.1 (2018-09-11)

  • Fixed a problem where the duplicate query detection breaks for non-hashable query parameters.
  • Added support for structured types when recording SQL.
  • Made Travis CI also run one test no PostgreSQL.
... (truncated)
Commits
  • 9c00973 django-debug-toolbar 2.0
  • 58f374a Lower Black target version to workaround Black bug
  • d26c616 Humm
  • a002d4d Same Python target version for reformatting code as for style checking
  • 6c6639f Remove unsupported Python 3.4 references from additional places
  • 088829a update travis
  • 733986f drop python 3.4
  • 185be8d Merge pull request #1164 from davidjb/fix-docs
  • ff86e11 django-debug-toolbar 2.0a1
  • e46af89 Add entries to the changelog
  • 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 ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major 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)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • 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)

Finally, you can contact us by mentioning @dependabot.

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Jun 21, 2019
@dependabot-preview dependabot-preview bot changed the base branch from v0.13 to v0.14 August 2, 2019 13:53
@dependabot-preview dependabot-preview bot changed the base branch from v0.14 to v0.15 August 20, 2019 11:38
@dependabot-preview dependabot-preview bot force-pushed the dependabot/pip/django-debug-toolbar-2.0 branch from 73f11ed to 9999683 Compare August 20, 2019 15:39
@coveralls
Copy link

Coverage Status

Coverage remained the same at 76.984% when pulling 9999683 on dependabot/pip/django-debug-toolbar-2.0 into 1a3f718 on v0.15.

@dependabot-preview dependabot-preview bot changed the base branch from v0.15 to v0.16 October 25, 2019 13:31
@dependabot-preview dependabot-preview bot changed the base branch from v0.16 to v0.17 November 26, 2019 20:26
@dependabot-preview dependabot-preview bot changed the base branch from v0.17 to v0.18 December 19, 2019 14:47
@dependabot-preview dependabot-preview bot changed the base branch from v0.18 to v0.19 January 7, 2020 20:14
@dependabot-preview dependabot-preview bot force-pushed the dependabot/pip/django-debug-toolbar-2.0 branch from 9999683 to 9282bd0 Compare January 7, 2020 20:14
@fredkingham fredkingham closed this Jan 7, 2020
@dependabot-preview
Copy link
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot-preview dependabot-preview bot deleted the dependabot/pip/django-debug-toolbar-2.0 branch January 7, 2020 20:20
@dependabot-preview
Copy link
Contributor Author

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:

Affected versions: [">= 0.10.0, < 1.11.1"]

@dependabot-preview dependabot-preview bot changed the title Bump django-debug-toolbar from 1.2.1 to 2.0 [Security] Bump django-debug-toolbar from 1.2.1 to 2.0 Apr 16, 2021
@dependabot-preview dependabot-preview bot added the security Pull requests that address a security vulnerability label Apr 16, 2021
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.

None yet

2 participants