InHand Networks InRouter302 console factory OS command injection vulnerability
An OS command injection vulnerability exists in the hidden 'factory' command of the InRouter302 console. An attacker with privileged credentials could execute arbitrary commands on the device.
Originally disclosed on Cisco Talos
An OS command injection vulnerability exists in the console factory functionality of InHand Networks InRouter302 V3.5.4. A specially-crafted network request can lead to 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
The 'factory' command takes user input and passes it to a system() call without sanitising shell metacharacters, allowing command injection.
What the attacker needed
Valid credentials for the router console; privileged user password to enter enable mode
The fix
The vendor released updated firmware to address the vulnerability.
How it was found
- Log in to the router console via telnet or SSH with valid credentials.
- Enter privileged mode using the 'enable' command and provide the privileged password.
- Run the hidden 'factory' command with a crafted argument that includes shell metacharacters.
- A shell is spawned, giving command execution on the device.
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 'factory' that runs a system command with user input. Because the input is not properly checked, someone who can log in with high privileges can trick the router into running their own commands, taking full control of the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.