Skip to content

HackerOne

Django

Every publicly disclosed report for Django and what kind of bugs they were.

disclosed reports
14
most reported class
SQL injection
bug classes found
8
first disclosure
2016
Scope, rewards and live status on bugbounty.fyi Paused Bounty not published

Disclosed reports

Newest first. Only what Django chose to make public.

Cache bugs

`Vary` cache-key conflation of absent and empty request fields

Django's cache middleware generates the same cache key when a request header nominated by Vary is absent and when it is present with an empty value. An attacker could cause a response intended for one request state to be served to the other, potentially disclosing private data.

Django

Low
Path traversal

Path traversal via archive.extract - CVE 2021-3281 incomplete patch

The fix for CVE-2021-3281 in Django's archive extraction is incomplete because the path check uses a prefix match that can be bypassed by a sibling directory whose name starts with the same characters. An attacker could write files outside the intended base directory when extracting a malicious tar or zip archive.

Django

Low
SQL injection

SQL Injection in Django ORM via Unvalidated `_connector` in Q Objects

The Django ORM's WhereNode.as_sql method uses unsafe string formatting to insert the query connector, which can be controlled via the _connector key when a Q object is created from user-supplied dictionary unpacking. An attacker could inject arbitrary SQL into the WHERE clause, bypassing filters and exfiltrating all data from the queried model.

Django

Critical
SQL injection

SQL Injection when using FilteredRelation

A SQL injection exists in Django's FilteredRelation when used with select_related, via a crafted annotation alias, for users with access to select_related.

Django

Critical
SQL injection

SQL injection in JSONField KeyTransform

A JSONField key transform in Django's ORM did not properly quote the key name passed to .values(), so a crafted key containing a double quote broke out of the SQL string literal. An attacker who could control that key name could inject SQL into the generated query.

Django

High
SQL injection

CVE-2022-34265

Django's Trunc and Extract database functions did not properly sanitise their kind and lookup_name arguments, allowing SQL injection when user input is passed directly. An attacker could execute arbitrary SQL commands, potentially accessing or deleting database data.

Django

RCE

Deserialization of potentially malicious data to RCE

Django's database and Redis cache backends use Python pickle to deserialize cached data, so an attacker who gains access to the cache store can execute arbitrary code on the Django server. The report demonstrates this by modifying a cached entry in a SQLite database to run a command.

Django

High
Misconfiguration

Email Spoofing Possible on djangoproject.com Email Domain

The djangoproject.com domain lacked SPF and DMARC records, allowing attackers to send spoofed emails that appear to come from the domain. This could be used for phishing attacks against employees or customers.

Django

Medium
CSRF

CSRF protection bypass on any Django powered site via Google Analytics

Google Analytics sets a cookie whose value includes a user-controlled path from the Referer header without filtering. By crafting a link that causes this cookie to contain a delimiter and a fake CSRF token, an attacker can inject or overwrite cookies on a Django site, bypassing its cookie-based CSRF protection and performing actions such as following a user on Instagram.

Django

Info disclosure

Disclosing information with a side-channel in Django

The dictsort filter in Django templates allowed sorting by arbitrary attributes, including password hashes, and by using a sorting oracle an attacker could extract sensitive information such as password hashes. An attacker could also invoke arbitrary methods without arguments, though with limitations.

Django