Skip to content
Info disclosure Write-up Beginner

CVE-2024–45231 | Django — Information Disclosure Vulnera

Django's password reset form did not handle email delivery errors properly, so responses differed for registered and unregistered addresses. An attacker could submit reset requests and use those differences to learn which email addresses have accounts.

Yunus Olçar Follow

Published on medium.com

Welcome! Let’s dive into a recently discovered information disclosure vulnerability.

Yunus Olçar, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the password reset form let email delivery exceptions surface as different responses instead of handling them uniformly.

Impact

An attacker could enumerate registered email addresses, which may help with later targeted attacks; the text rates the issue as low severity.

What the attacker needed

Ability to send password reset requests; email delivery must fail for some addresses

The fix

Email delivery errors during password reset are now caught and logged through the django.contrib.auth logger instead of being exposed, and the text says the issue was resolved.

How it was found

  1. Submit a password reset request for a chosen email address.
  2. Observe whether the system reports success or a different error.
  3. Repeat with other addresses to map which ones are registered.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When you ask a website to reset your password, it usually sends an email only if that address belongs to an account. Here, the site reacted differently when the email could not be delivered, so someone could try many addresses and tell which ones were real. That leaks who has an account, which is useful for later attacks.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Yunus Olçar

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.