Duplicate Entry of email leads to 500 Server Error which disclosing the SQL Database table information
The admin dashboard allowed a merchant email to be soft-deleted without checking whether the same email could be re-registered, so re-registering it caused a server error. Because debug mode was left on in production, that error page disclosed internal SQL database table information.
Originally disclosed on HackerOne
- Triaged in 8 days
- Fixed in 22 days
- Disclosed after 52 days
Summary by the program
The Issue was with the process of Deletion of the merchant data from the admin Dashboard. The Admin has rights to delete the merchant email ID and further, it gets deleted as Soft delete, not the full delete but there was no Validation to the codes which can detect the re-registration of the same Email ID which leads to the Critical error.
Secondly, it was found that while pushing the codes in the production, The Debug was enabled and show the data only needed for internal use.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing uniqueness check on re-registration after a soft delete, combined with debug mode being enabled in production.
What the attacker needed
Admin access to the dashboard; ability to register a merchant account
How it was found
- As an admin, soft-delete a merchant's email address from the dashboard.
- Register again using the same email address.
- Observe the 500 server error page, which shows internal SQL database table information.
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 report has not been written yet. The Original tab links to the source.
A soft delete marks a record as removed but keeps it. The site never checked for an existing record when someone signed up again with the same email, so the app crashed. The crash page was in debug mode, which shows extra technical details.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.