Skip to content
XSS Advisory Beginner CVE-2022-21238

InHand Networks InRouter302 info.jsp cross-site scripting (XSS) vulnerability

The info.jsp page on the InRouter302 router evaluates the _resmsg query parameter as JavaScript without sanitisation. An attacker could craft a link that, when opened by a victim, executes arbitrary JavaScript in the router's web interface.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Medium 5.4 View original

A cross-site scripting (xss) vulnerability exists in the info.jsp functionality of InHand Networks InRouter302 V3.5.4. A specially-crafted HTTP request can lead to arbitrary Javascript execution.

Francesco Benvenuto, 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 info.jsp page reflects the _resmsg parameter directly into a JavaScript eval call without any encoding or validation.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser session on the router, potentially reading cookies or performing actions as the victim.

What the attacker needed

Victim clicks a crafted link; access to the router's web interface

The fix

The vendor released updated firmware that addresses the issue.

How it was found

  1. Send an HTTP GET request to /info.jsp with the _resmsg query parameter set to a JavaScript expression.
  2. The server returns a page where the parameter value is placed inside a resmsg variable and passed to eval.
  3. When a browser renders the response, the JavaScript expression is executed.

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.

Cross-site scripting (XSS) is when a website takes input from a user and puts it into a page without cleaning it, so the browser runs it as code. Here the router's info.jsp page takes a value from the URL and passes it to eval, a JavaScript function that runs whatever text it is given. An attacker who tricks someone into clicking a prepared link can run their own script in that person's browser session on the router.

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 Francesco Benvenuto

View all

152 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.