Magento <= 1.9.2.2 (RSS Feed) Information Disclosure Vulnerability
The RSS order feed helper decodes a user-supplied key and loads an order by its numeric ID, then checks the increment ID and customer ID against the decoded values. An attacker who knows or guesses those three values could retrieve another customer's order details through the RSS feed.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerability is located in the /app/code/core/Mage/Rss/Helper/Order.php script, specifically into the getOrderByStatusUrlKey() method of the MageRssHelperOrder class, which is the method being called when dispatching RSS orders' feed requests:
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 lookup key is fully attacker-controlled and the order is loaded by its sequential ID before the increment and customer IDs are compared, so the check relies on values the attacker supplies rather than on the session.
Impact
An attacker who can determine an order's ID, increment ID and customer ID could read that order's details through the RSS feed; the text does not demonstrate this end to end.
What the attacker needed
Knowledge of order, increment and customer IDs
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.
An online shop lets customers check an order through a special web feed. The code that looks up the order trusts a value the visitor sends and only compares it to the order afterwards, so someone who can work out the order number and customer number could see an order that is not theirs.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.