AliExpress XSS vulnerability - take over any seller account
The AliExpress messaging system allowed an attacker to inject a <b> HTML tag with an event handler into a message sent to a seller. When the seller viewed the message centre, the script executed in their browser, potentially allowing the attacker to take over the seller's account.
Published on quitten.github.io
In this blog post I will discuss a XSS vulnerability I’ve found in AliExpress 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 message content was not properly sanitised, allowing a <b> tag with an event handler to be stored and rendered as HTML.
Impact
The attacker could execute malicious code in the seller's browser, potentially leading to actions on behalf of the seller, phishing, session theft, and store takeover.
What the attacker needed
Attacker can send a message to a seller; seller views the message centre; seller moves mouse over the message
How it was found
- An attacker sends a message to a store via the “contact now” feature.
- The attacker sends a malicious script injected inside the message content.
- The seller browses to the AliExpress message center.
- The malicious script executed on the seller’s browser, which can be lead to several attacks such as perform actions on behalf of a seller, phishing attacks, steal the victim’s sessions identifier, etc.
- The attacker succeeds in executing malicious code in the seller’s browser and will take it over on his store.
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.
Cross-site scripting (XSS) is when a website lets an attacker sneak code into a page that other people view. Here, the message system allowed a bold-text tag with a mouse-over action, so when the seller moved their mouse over the message, the attacker's code ran in the seller's browser. That could let the attacker act as the seller or steal their login.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.