InHand Networks InRouter302 console infct leftover debug code vulnerability
The router console contains an undocumented command, `infct`, that is not listed in the help output and appears to be leftover debug code. It lets a logged-in user enable or disable the `infactory` view, which re-enables a previously reported privileged functionality.
Originally disclosed on Cisco Talos
A leftover debug code vulnerability exists in the console infct functionality of InHand Networks InRouter302 V3.5.45. A specially-crafted series of network requests can lead to execution of privileged operations.
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 console and never removed, and it is not covered by the normal command listing or privilege checks.
Impact
A user with valid console credentials could reach privileged operations through the hidden factory view, though the text does not show what those operations achieve beyond re-enabling the earlier advisory.
What the attacker needed
Valid console credentials; access to telnet or sshd on the router
The fix
The vendor released a patch, so the leftover debug command should be removed or properly restricted.
How it was found
- Log in to the router console with valid credentials.
- Run the undocumented `infct` command to see its arguments.
- Run `infct enable` to turn on the infactory view.
- Run `infactory` and observe that it now asks 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.
The router has a text console you reach after logging in, and it lists the commands you can use. One extra command exists that is not on that list, which looks like something a developer left behind by accident. Using it turns on a hidden 'factory' mode that gives access to more powerful operations than a normal user should reach.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.