E-commerce website vulnerability bounty practice sharing(II)
A report endpoint for deleted comments returned the full content and metadata of those comments, and an unauthenticated audit directory exposed user email addresses. An attacker could read deleted comments and harvest contract users' email addresses without logging in.
medium.com
Published on medium.com
Hello everyone, do you remember the content we shared last time? In the previous article, we discussed a case involving a pre-authentication takeover vulnerability and an API security vulnerability (related to product information leakage) in an e-commerce website.
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 report API returned the full stored comment object instead of a minimal response, and the audit directory lacked authentication and allowed directory listing.
Impact
Deleted comment content and contract users' email addresses could be read without authentication, enabling privacy violations and phishing or spam against those users.
What the attacker needed
None for the audit directory; a user account to report a comment
The fix
The report endpoint should return only necessary data and the audit directory should require authentication and disable directory listing.
How it was found
- Open a deleted comment and click the report button.
- Intercept the report request in a proxy tool.
- Inspect the response to see the deleted comment content and metadata.
- Run a directory brute-force scan against the site.
- Open the discovered audit directory and browse its subfolders.
- Find user email addresses in the contract-related folders.
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 delete a comment on a website, you expect it to be gone. Here, the website still kept the comment and a 'report' button sent it back to anyone who asked. Separately, a folder meant for internal records was left open on the internet, so anyone could browse it and see email addresses of people who had contracts with the company.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.