Password Reset Allows For User Email Enumeration in inventree/inventree

Valid

Reported on

Jun 17th 2022


Description

The password reset function at the login page responds to valid and invalid emails in the application. Submitting an invalid email result in "The e-mail address is not assigned to any user account." A valid response results in a message stating an email has been sent.

Proof of Concept

1. Select "Forgot Password" on the InvenTree sign on page
2. Enter an invalid email and observe the results suggested in the description.

Impact

An attacker can identify valid user email accounts which permits the attacker to increase the application's attack surface. The severity is lowered slightly due to email accounts being separate from the username.

Recommendation

Synchronize response messages in the password reset request. I suggest something like, "You will receive an email in a few minutes if the email is in our system."

We are processing your report and will contact the inventree team within 24 hours. 8 days ago
Joe Helle modified the report
8 days ago
Oliver validated this vulnerability 8 days ago

Thanks for reporting. This is a relatively minor fault which can be fixed easily by updating the version of the third party library we use for authentication.

This will be fixed in our next minor release.

https://github.com/inventree/InvenTree/pull/3217

Joe Helle has been awarded the disclosure bounty
The fix bounty is now up for grabs
The researcher's credibility has increased: +7
Joe Helle
8 days ago

Researcher


Awesome. Thanks Oliver and team.

Oliver confirmed that a fix has been merged on 18cf92 8 days ago
Oliver has been awarded the fix bounty
Oliver
8 days ago

Maintainer


https://github.com/inventree/InvenTree/security/advisories/GHSA-v376-fwpp-7qhp

to join this conversation