CVE-2024-21641 Flarum's Logout Route allows open redirects

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
flarum/framework PackagistAll versions1.8.5
flarum/framework PackagistAll versions1.8.5
flarum/core PackagistAll versions1.8.5
flarum/core PackagistAll versions1.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.

Sources

Also known as GHSA-733r-8xcp-w9mr.

Is CVE-2024-21641 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free