Password Reset Allows For User Email Enumeration in inventree/inventree
Jun 17th 2022
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.
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.
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."