CVE-2023-40033: Server-Side Request Forgery via Avatar upload in flarum

Published Aug 16, 2023
·
Updated

Impact The Flarum forum software is affected by a vulnerability that allows an attacker to conduct a Blind SSRF attack or disclose any file on the server, even with a basic user account on any Flarum forum. By uploading a file containing a URL and spoofing the MIME type, an attacker can manipulate the application to execute unintended actions. The vulnerability is due to the behavior of the intervention/image package, which attempts to interpret the supplied file contents as a URL, which then fetches its contents. This allows an attacker to exploit the vulnerability to perform SSRF attacks, disclose local file contents, or conduct a blind oracle attack.

Patches This has been patched in Flarum v1.8.

Workarounds As a temporary workaround for the SSRF aspect of the vulnerability, one can disable PHP's allowurlfopen which will prevent the fetching of external files via URLs.

Credits Adam Kues - Assetnote

Other sources

Flarum is an open source forum software. Flarum is affected by a vulnerability that allows an attacker to conduct a Blind Server-Side Request Forgery (SSRF) attack or disclose any file on the server, even with a basic user account on any Flarum forum. By uploading a file containing a URL and spoofing the MIME type, an attacker can manipulate the application to execute unintended actions. The vulnerability is due to the behavior of the intervention/image package, which attempts to interpret the supplied file contents as a URL, which then fetches its contents. This allows an attacker to exploit the vulnerability to perform SSRF attacks, disclose local file contents, or conduct a blind oracle attack. This has been patched in Flarum version 1.8.0. Users are advised to upgrade. Users unable to upgrade may disable PHP's allowurlfopen which will prevent the fetching of external files via URLs as a temporary workaround for the SSRF aspect of the vulnerability.

MITRE

Affected Software

3 affected componentsFixes available
composer/flarum/framework<1.8.0
1.8.0
composer/flarum/core<1.8.0
1.8.0
Flarum Flarum<1.8.0

Event History

Aug 16, 2023
CVE Published
via MITRE·08:34 PM
Data Sourced
via MITRE·08:34 PM
DescriptionSeverityWeakness
Advisory Published
09:02 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-40033?

CVE-2023-40033 is rated as a critical severity vulnerability due to its potential for Blind SSRF attacks and server file disclosure.

2

How do I fix CVE-2023-40033?

To fix CVE-2023-40033, upgrade Flarum to version 1.8.0 or later.

3

What type of attack does CVE-2023-40033 allow?

CVE-2023-40033 allows attackers to perform Blind SSRF attacks or disclose sensitive files on the server.

4

Who is affected by CVE-2023-40033?

All users running versions of Flarum below 1.8.0 are vulnerable to CVE-2023-40033.

5

Can CVE-2023-40033 be exploited by basic user accounts?

Yes, attackers can exploit CVE-2023-40033 using basic user accounts on any vulnerable Flarum forum.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203