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.
Originally disclosed on Cisco Talos
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.
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
- Log in to the router console via telnet or SSH with valid credentials.
- At the Router> prompt, enter the hidden 'support' command.
- Provide the argument 'enable' to the support command.
- 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.