Unveiling Hidden Vulnerabilities: A Journey into E-Commerce Security
A failed login response exposed internal merchant identifiers in links, and an API directory listed in robots.txt was accessible without authentication. An attacker could use the identifiers to enumerate valid merchants and interact with API endpoints, potentially accessing data or manipulating transactions.
Published on medium.com
In the dynamic realm of cybersecurity, innovation and creativity are paramount. As a security researcher, I recently embarked on an exploration of a major e-commerce platform to test its defenses.
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 application exposed internal merchant identifiers in error responses and failed to enforce authentication on API endpoints, relying on robots.txt for security.
Impact
An attacker could enumerate valid merchant accounts and potentially access merchant-specific data or manipulate transactions, though the text does not demonstrate actual unauthorised access beyond error messages.
What the attacker needed
No account needed; access to the public website
The fix
The report recommends removing merchant IDs from client-facing responses, enforcing authentication on all API endpoints, using generic error messages, and adding rate limiting; it does not state that these were implemented.
How it was found
- Make a failed login attempt with dummy credentials.
- Inspect the HTTP response using developer tools.
- Notice links containing merchant IDs in query parameters.
- Check robots.txt and find a disallowed /api/ directory.
- Send GET requests to API endpoints such as /api/{MerchantID}.
- Observe that the API responds without requiring authentication.
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 log in incorrectly, the website's error page included hidden numbers that identify each merchant. Those numbers should be secret, but anyone could see them. Also, a part of the site meant for internal use was left open, so people could poke at it without logging in.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.