InHand Networks InRouter302 router configuration export information disclosure vulnerability
The router's configuration export encrypts sensitive entries such as administrator passwords and private keys with a hard-coded AES key. Any logged-in user, including a low-privileged one, can download the configuration file and decrypt those values to recover privileged credentials.
Originally disclosed on Cisco Talos
An information disclosure vulnerability exists in the router configuration export functionality of InHand Networks InRouter302 V3.5.4. A specially-crafted network request can lead to increased privileges.
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 configuration export encrypts sensitive entries with a hard-coded AES key embedded in the firmware, so the ciphertext offers no real protection.
Impact
A low-privileged user could decrypt the administrator password and private keys, potentially escalating to privileged access.
What the attacker needed
A logged-in account on the router
The fix
The vendor released a patch; the underlying fix is to stop relying on a hard-coded key, for example by using a per-device key or not exporting secrets at all.
How it was found
- Log in to the router to obtain a session cookie.
- Send an HTTP GET request to the configuration download endpoint with the session cookie.
- Receive the configuration file containing AES-encrypted entries such as the admin password and private keys.
- Decrypt those entries using the hard-coded AES key.
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 saves its settings in a file that any logged-in user can download. Some values in that file, like the admin password, are scrambled (encrypted) so they look unreadable. But the scrambling uses a fixed secret built into the router's software, so anyone who knows that secret can unscramble the values and read the admin password.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.