InHand Networks InRouter302 console infactory_wlan command injection vulnerability
An OS command injection vulnerability exists in the console infactory_wlan functionality of InHand Networks InRouter302 V3.5.37. A specially-crafted series of network requests can lead to remote code execution.
Originally disclosed on Cisco Talos
An OS command injection vulnerability exists in the console infactorywlan functionality of InHand Networks InRouter302 V3.5.37. A specially-crafted series of network requests can lead to remote code 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 third argument to the wlan command is not sanitised before being passed to the system() function, allowing command injection.
Impact
An attacker able to reach the wlan functionality could obtain a root shell, leading to remote code execution.
What the attacker needed
Valid credentials for console access; factory mode password; access to the wlan command
The fix
The vendor has released a patch; the report does not detail the fix, but input sanitisation should be added.
How it was found
- Log in to the router console via telnet or SSH with valid credentials.
- Enter the infactory command and provide the correct password to access factory mode.
- Use the wlan command with arguments 2g connect followed by a malicious payload to inject commands.
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 report describes a security flaw in an industrial router. The router has a special factory mode that lets you test Wi-Fi. When you type a command to set the Wi-Fi name, the router does not check what you type carefully. An attacker who can log in to the router can type extra commands that the router will run as the root user, giving them full control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.