Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-58302: CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in Flarum FriendsofFlarum Pretty Mail

0
Medium
VulnerabilityCVE-2024-58302cvecve-2024-58302cwe-98
Published: Thu Dec 11 2025 (12/11/2025, 21:40:09 UTC)
Source: CVE Database V5
Vendor/Project: Flarum
Product: FriendsofFlarum Pretty Mail

Description

FoF Pretty Mail 1.1.2 contains a local file inclusion vulnerability that allows administrative users to include arbitrary server files in email templates. Attackers can exploit the template settings by inserting file inclusion payloads to read sensitive system files like /etc/passwd during email generation.

AI-Powered Analysis

AILast updated: 12/11/2025, 22:12:52 UTC

Technical Analysis

CVE-2024-58302 is a vulnerability classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Programs) affecting FriendsofFlarum Pretty Mail version 1.1.2. This vulnerability allows an attacker with administrative privileges to exploit the email template functionality by injecting file inclusion payloads. The flaw stems from insufficient validation of filenames used in PHP include or require statements within the email template rendering process. By manipulating template settings, an attacker can cause the server to include arbitrary local files, such as /etc/passwd, leading to unauthorized disclosure of sensitive system information. The vulnerability does not require user interaction and can be exploited remotely over the network, but it does require administrative privileges on the Flarum forum instance. The CVSS 4.0 score is 6.9, reflecting a medium severity due to the high impact on confidentiality but limited by the requirement for elevated privileges. No public exploits or patches are currently available, increasing the importance of proactive mitigation. This vulnerability could be leveraged for further attacks if combined with other weaknesses, such as privilege escalation or lateral movement within the network.

Potential Impact

For European organizations, especially those running community forums or customer support platforms using Flarum with the Pretty Mail extension, this vulnerability poses a risk of sensitive information disclosure. Attackers with administrative access can read critical system files, potentially exposing user data, system configurations, or credentials stored in files. This can lead to further compromise, including privilege escalation or lateral movement within the network. The impact is particularly significant for organizations handling personal data under GDPR, as unauthorized disclosure could result in regulatory penalties and reputational damage. Additionally, the ability to read arbitrary files may facilitate targeted attacks against infrastructure or intellectual property. Since the vulnerability requires administrative privileges, the risk is heightened if administrative accounts are weakly protected or compromised through phishing or credential reuse. The medium severity score reflects a balance between the high confidentiality impact and the access requirements, but the potential for chained attacks elevates the threat level in practice.

Mitigation Recommendations

1. Restrict administrative access strictly to trusted personnel and enforce strong authentication mechanisms such as multi-factor authentication (MFA) for all admin accounts. 2. Immediately audit and limit permissions for template editing within the Pretty Mail extension to prevent unauthorized modifications. 3. Implement input validation and sanitization on all template fields that accept filenames or include directives to prevent injection of malicious payloads. 4. Monitor logs for unusual template changes or email generation activities that could indicate exploitation attempts. 5. Isolate the Flarum application server from critical infrastructure to limit the impact of any file disclosure. 6. Regularly back up configuration and template files to enable quick restoration if tampering occurs. 7. Stay alert for official patches or updates from the Flarum or FriendsofFlarum development teams and apply them promptly once released. 8. Consider deploying web application firewalls (WAFs) with rules to detect and block suspicious file inclusion patterns targeting the Pretty Mail extension. 9. Conduct security awareness training for administrators to recognize phishing and social engineering attempts that could lead to credential compromise.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2025-12-11T00:58:28.457Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 693b3df322246175c6a4712f

Added to database: 12/11/2025, 9:56:03 PM

Last enriched: 12/11/2025, 10:12:52 PM

Last updated: 12/11/2025, 10:57:42 PM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats