Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2020-15105
django two-factor authentication project django two-factor authentication

Score5.4 Medium
CVSS 3.1
Exploit probability (EPSS)0.70%
within the next 30 days
CategoryInformation disclosure
Published10 July 2020
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, with a regular user account, if a user clicks a link, opens a file or similar.

A successful attack has high impact: reading confidential data.

Special conditions are required for a successful attack, which makes exploitation harder.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

Django Two-Factor Authentication before 1.12, stores the user's password in clear text in the user session (base64-encoded). The password is stored in the session when the user submits their username and password, and is removed once they complete authentication by entering a two-factor authentication code. This means that the password is stored in clear text in the session for an arbitrary amount of time, and potentially forever if the user begins the login process by entering their username and password and then leaves before entering their two-factor authentication code. The severity of this issue depends on which type of session storage you have configured: in the worst case, if you're using Django's default database session storage, then users' passwords are stored in clear text in your database. In the best case, if you're using Django's signed cookie session, then users' passwords are only stored in clear text within their browser's cookie store. In the common case of using Django's cache session store, the users' passwords are stored in clear text in whatever cache storage you have configured (typically Memcached or Redis). This has been fixed in 1.12. After upgrading, users should be sure to delete any clear text passwords that have been stored. For example, if you're using the database session backend, you'll likely want to delete any session record from the database and purge that data from any database backups or replicas. In addition, affected organizations who have suffered a database breach while using an affected version should inform their users that their clear text passwords have been compromised. All organizations should encourage users whose passwords were insecurely stored to change these passwords on any sites where they were used. As a workaround, wwitching Django's session storage to use signed cookies instead of the database or cache lessens the impact of this issue, but should not be done without a thorough understanding of the security tradeoffs of using signed cookies rather than a server-side session storage. There is no way to fully mitigate the issue without upgrading.

CVSS: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N

Weakness: CWE-312

Affected products

VendorProductVersions
django two-factor authentication projectdjango two-factor authentication<1.12

Sources

Latest in the same category

  • CVE-2026-140122 Medium 6.9
    PDF & Print by BestWebSoft before 2.4.8 contains an information disclosure vulnerability in pdfprnt_print() that allows unauthenticated attackers to view non-public posts by injecting WP_Query arguments. Attackers can…
    Information disclosure · 1 December 2026
  • CVE-2026-140098 Medium 6.9
    Vite is a frontend tooling framework for JavaScript. In 8.4.0-beta.1, a network-exposed development server can register a request-chosen file outside server.fs.allow in config.environments.client.safeModulePaths when…
    Information disclosure · 30 November 2026
  • CVE-2026-140012 Medium 5.3
    Terser is a JavaScript parser, mangler, and compressor toolkit for ES6+. Prior to 4.8.2, and from 5.0.0 to before 5.51.3, when minify() is given an input source map through the sourceMap.content option, Terser copies…
    Information disclosure · 30 November 2026
  • CVE-2026-137930 Medium 5.9
    Improper removal of sensitive information before transfer in the redirect handling of the http_request tool in Strands Agents Tools before 0.8.8 might allow a remote unauthenticated actor to obtain API keys that…
    Information disclosure · 30 November 2026
  • CVE-2026-126796 Medium 6.7
    A LibreOffice Writer document can contain its own database. When the document was opened, that database was registered in the user's settings under a name the document chose, replacing any database the user had…
    Information disclosure · 30 November 2026
  • CVE-2026-116770 Critical 9
    The Host Group Updater, a standalone tool available with Secure Access prior to 14.10, has a security vulnerability that discloses protected information. An adversary in a privileged position can use this to impact the…
    Information disclosure · 30 November 2026