Skip to content
XSS Advisory Beginner CVE-2022-41313CVE-2022-41311CVE-2022-41312

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.

Patrick DeSantis Follow

Originally disclosed on Cisco Talos

Medium 4.3 View original

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.

Patrick DeSantis, on Cisco Talos

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

  1. Log in to the switch web application and open the Switch Information section.
  2. Enter script content into the Switch Location field and save it.
  3. Enter script content into the Switch Description field and save it.
  4. Enter script content into the Contact Information field and save it.
  5. 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.

More by Patrick DeSantis

View all

35 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.