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's ASGI request handler builds its header dictionary by repeatedly concatenating duplicate header values into one string, which copies the whole accumulated value each time. An attacker sending one request with thousands of repeated headers could burn significant worker CPU and, across a few connections, deny service to legitimate users.
The mod_wsgi authentication backend in Django returns immediately for non-existent usernames without performing password hashing, making responses measurably faster than for valid usernames. An attacker can exploit this timing difference to enumerate valid usernames.
Django's alias validation regex did not block the dollar sign, which PostgreSQL uses for dollar-quoted strings. An attacker who can control a FilteredRelation alias could inject SQL and read files such as /etc/passwd.
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.
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.
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.
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'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'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.
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.
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.
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.
DJ
Django
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.