CVE-2024-21641 Flarum's Logout Route allows open redirects
Attackers can redirect users from a trusted Flarum domain to malicious sites via the logout route, potentially facilitating phishing or spam campaigns.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-21641?
CVE-2024-21641 is a medium-severity vulnerability in flarum framework, published on 5 Jan 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Flarum is open source discussion platform software. Prior to version 1.8.5, the Flarum `/logout` route includes a redirect parameter that allows any third party to redirect users from a (trusted) domain of the Flarum installation to redirect to any link. For logged-in users, the logout must be confirmed. Guests are immediately redirected. This could be used by spammers to redirect to a web address using a trusted domain of a running Flarum installation. The vulnerability has been fixed and published as flarum/core v1.8.5. As a workaround, some extensions modifying the logout route can remedy this issue if their implementation is safe.
Weakness: CWE-601
Which versions are affected by CVE-2024-21641?
4 open source packages ship an affected version, including flarum/framework and flarum/core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
flarum/framework Packagist | All versions | 1.8.5 |
flarum/framework Packagist | All versions | 1.8.5 |
flarum/core Packagist | All versions | 1.8.5 |
flarum/core Packagist | All versions | 1.8.5 |
Products include Flarum Flarum.
How do I fix CVE-2024-21641?
Upgrade flarum/framework to 1.8.5 or later.
Is CVE-2024-21641 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21641 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in flarum framework
- CVE-2021-32671 XSS vulnerability with translator
- CVE-2022-41938 Cross site scripting vulnerability with discussion titles in flarum
- CVE-2019-13183 Cross-site request forgery in n/a
- CVE-2023-22487 Post mentions can be used to read any post on the forum without access control
- CVE-2019-11514 Flarum mishandles invalidation of user email tokens
Sources
Also known as GHSA-733r-8xcp-w9mr.