Skip to content
Info disclosure Advisory Beginner CVE-2022-25172

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.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.5 View original

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.

Francesco Benvenuto, on Cisco Talos

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.

More by Francesco Benvenuto

View all

152 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.