Skip to content
RCE Advisory Intermediate CVE-2022-28689

InHand Networks InRouter302 console support leftover debug code vulnerability

A hidden 'support' command in the router console allows enabling the 'inhand' command, which was previously disabled due to a separate vulnerability. An attacker with valid credentials could use this to re-enable the vulnerable command and potentially execute arbitrary commands.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Medium 6.5 View original

A leftover debug code vulnerability exists in the console support functionality of InHand Networks InRouter302 V3.5.45. A specially-crafted network request can lead to arbitrary command 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, a debug command was left in the production firmware that allows toggling the state of another command, which was disabled due to a known vulnerability.

Impact

An attacker with valid credentials could re-enable the vulnerable 'inhand' command, potentially leading to arbitrary command execution as described in TALOS-2022-1477.

What the attacker needed

Valid credentials for the router console; network access to telnet or SSH service

The fix

The vulnerability was fixed in a later version, as indicated by the vendor patch release.

How it was found

  1. Log in to the router console via telnet or SSH with valid credentials.
  2. At the Router> prompt, enter the hidden 'support' command.
  3. Provide the argument 'enable' to the support command.
  4. The 'inhand' command becomes available again, prompting for a password.

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 has a hidden command called 'support' that isn't listed in the help menu. It lets someone turn back on another command ('inhand') that was supposed to be disabled because it had a security flaw. So if an attacker can log in, they can use this hidden command to bring back the old vulnerability.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.