Synology SRM web interface session cookie HttpOnly flag information disclosure vulnerability
The session cookie set by the Synology SRM web interface lacks the HttpOnly flag, so JavaScript can read it. An attacker who can inject script into a page could steal the cookie and, in the worst case, use it to log in to the management interface as administrator.
Originally disclosed on Cisco Talos
An exploitable information disclosure vulnerability exists in the web interface session cookie functionality of Synology SRM 1.2.3 RT2600ac 8017-5. The session cookie misses the HttpOnly flag, making it accessible via JavaScript and thus allowing an attacker to perform an XSS attack and 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 web server set the session cookie without the HttpOnly attribute.
Impact
An attacker who can inject JavaScript into a page could steal the session cookie and, in the worst case, use it to log in to the management interface as administrator.
What the attacker needed
Attacker can inject JavaScript into a page; victim is logged in to the web interface
How it was found
- Send a login POST request to the web interface.
- Observe the Set-Cookie response header for the session cookie.
- Note that the cookie has no 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 cookie is a small piece of data a website stores in your browser to remember who you are. The HttpOnly flag tells the browser to hide that cookie from JavaScript, so if an attacker manages to run their own script on the page, they cannot read it. Here the flag was missing, so any script running on the page could read the session cookie and use it to impersonate 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.