InHand Networks InRouter302 web interface session cookie information disclosure vulnerability
The web interface session cookie lacks the HttpOnly flag, so JavaScript can read it. An attacker who can inject JavaScript into a page could steal the session cookie and use it to log in to the web interface.
Originally disclosed on Cisco Talos
An information disclosure vulnerability exists in the web interface session cookie functionality of InHand Networks InRouter302 V3.5.4. The session cookie misses the HttpOnly flag, making it accessible via JavaScript and thus allowing an attacker, able to perform an XSS attack, to steal the session cookie.
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 session cookie is set by client-side JavaScript without the HttpOnly attribute.
Impact
An attacker who can inject JavaScript into a page could steal the session cookie and use it to log in to the web interface.
What the attacker needed
Attacker can inject JavaScript into a page; victim visits the injected page
The fix
The vendor released a patch, but the text does not describe the fix; it should set the session cookie with the HttpOnly flag.
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.
A session cookie is a small piece of data a website stores in your browser to remember that you are logged in. The HttpOnly flag tells the browser to hide that cookie from JavaScript, so if an attacker finds a way to run their own JavaScript on the page, they cannot read it. Here the flag is missing, so any JavaScript running on the page can read the cookie and send it to the attacker, who can then pretend to be the logged-in user.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.