Moxa SDS-3008 Series Industrial Ethernet Switch web application stored cross-site scripting vulnerability
Several fields in the Switch Information section of the switch's web application did not neutralise user input, so stored JavaScript would run in the browser of anyone viewing the page. An authenticated attacker could use this to run script in other users' sessions, for example to steal session tokens or alter what the page shows.
Originally disclosed on Cisco Talos
A stored cross-site scripting vulnerability exists in the web application functionality of Moxa SDS-3008 Series Industrial Ethernet Switch 2.1. A specially-crafted HTTP request can lead to arbitrary Javascript execution.
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
Likely the application saved user-supplied field values and later inserted them into the page, including inside script blocks, without encoding or validating them.
Impact
Script stored this way could let an attacker steal session tokens, show false information, or deny access to the application by clearing other users' cookies; the score reflects that the attacker needs high privileges and the victim must view the page.
What the attacker needed
Authenticated access to the web interface; victim views the Switch Information page
The fix
The vendor released a patch on the same day as the public release.
How it was found
- Log in to the switch web application and open the Switch Information section.
- Enter script content into the Switch Location field and save it.
- Enter script content into the Switch Description field and save it.
- Enter script content into the Contact Information field and save it.
- Load the page again; the stored script runs in the browser.
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 switch is managed through a web page. Some text boxes on that page (such as the switch location and description) saved whatever was typed into them and later showed it back without cleaning it up. If someone typed code instead of plain text, the browser would run that code for every person who opened the page, which is called stored cross-site scripting.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.