Password Reset Allows For User Email Enumeration in inventree/inventree
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."
References
SECURITY.md
exists
a year 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
https://github.com/inventree/InvenTree/security/advisories/GHSA-v376-fwpp-7qhp