ZTE MF971R xmlclient cross-site scripting vulnerability
The cmd parameter of the router's xmlclient API was not sanitised and was reflected into an HTML response, so a crafted link could run arbitrary JavaScript in a victim's browser. The victim does not need to be logged in for the attack to work.
Originally disclosed on Cisco Talos
An exploitable Cross-Site-Scripting (XSS) vulnerability exists in ZTE MF971R LTE router version wainnerversion:BDPLKPLMF971R1V1.0.0B06. A specially-crafted HTTP request can cause an XSS vulnerability and as a result arbitrary JavaScript code execution in the victim’s browser.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The cmd parameter was reflected into the response without sanitisation, allowing markup to be injected into the page.
Impact
An attacker who gets a victim to visit a crafted URL could execute arbitrary JavaScript in the victim's browser, though the response's X-XSS-Protection header may block the script in some browsers.
What the attacker needed
Victim visits an attacker-supplied link; victim on the router's network
The fix
The vendor patched the issue, presumably by sanitising the cmd parameter before reflecting it.
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.
This router's web interface has a page that takes text from the address bar and puts it straight into the page it sends back. Because the text is not cleaned, an attacker can put code in the link so the browser runs it as if the router itself had written it. The victim only has to open the attacker's link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.