Synology SRM web interface session cookie secure flag Information Disclosure Vulnerability
The session cookie set by the Synology SRM web interface lacks the Secure flag, so it can be sent over unencrypted HTTP. An attacker who can intercept traffic (man-in-the-middle) could steal the cookie and use it to access the router remotely.
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. An attacker can impersonate the remote QuickConnect servers in order to steal a session cookie that doesn’t have the secure flag set, and in turn access the router…
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 the web server sets the session cookie without the Secure attribute, even when HTTPS and HSTS are enabled.
Impact
An attacker who can perform a man-in-the-middle attack could steal the session cookie and use it to access the router remotely; the severity is increased when combined with another bug (TALOS-2020-1060) that forces the browser to send the cookie over an unencrypted connection.
What the attacker needed
Man-in-the-middle position; victim logged in to the router
The fix
The session cookie should be set with the Secure attribute so that it is only sent over HTTPS.
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.
When you log in to a website, the server gives your browser a small piece of data called a cookie to remember you. If that cookie is not marked as 'Secure', the browser may send it over an unencrypted connection, where someone listening on the network could copy it. With that copied cookie, the attacker can pretend to be you and access the router without needing your password.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.