Flarum Vulnerable to Session Hijacking via Authoritative Subdomain Cookie Overwrite
flarum framework
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| flarum/core Packagist |
|
|
| flarum/framework Packagist |
|
|
flarum framework
| Product | Affected | Fixed in |
|---|---|---|
| flarum/core Packagist |
|
|
| flarum/framework Packagist |
|
|
Flarum is open-source forum software. A session hijacking vulnerability exists in versions prior to 1.8.10 when an attacker-controlled authoritative subdomain under a parent domain (e.g., `subdomain.host.com`) sets cookies scoped to the parent domain (`.host.com`). This allows session token replacement for applications hosted on sibling subdomains (e.g., `community.host.com`) if session tokens aren't rotated post-authentication. Key Constraints are that the attacker must control any subdomain under the parent domain (e.g., `evil.host.com` or `x.y.host.com`), and the parent domain must not be on the Public Suffix List. Due to non-existent session token rotation after authenticating we can theoretically reproduce the vulnerability by using browser dev tools, but due to the browser's security measures this does not seem to be exploitable as described. Version 1.8.10 contains a patch for the issue.
From the CVE record · GitHub_M
Flarum versions before 1.8.10 may allow session hijacking through cookies set by an attacker-controlled subdomain. The attacker must control a subdomain of a parent domain not on the Public Suffix List, and session tokens must not be rotated after authentication. The advisory notes that browser security measures may prevent exploitation as described.
Operators using Packagist flarum/core or flarum/framework versions before 1.8.10 should check their installations.