moodle: logout CSRF in admin/tool/mfa/auth.php (CVE-2024-34007)
A Cross-Site Request Forgery (CSRF) vulnerability exists in the logout option within the Multi-Factor Authentication (MFA) component of Moodle. Specifically, the logout function in admin/tool/mfa/auth.php lacks the necessary CSRF token, which could allow users to be logged out unintentionally via CSRF attacks. This affects Moodle versions from 4.3.0 up to but not including 4.3.4. A patch is available to address this issue.
AI Analysis
Technical Summary
The logout option in Moodle's MFA module (admin/tool/mfa/auth.php) does not include a CSRF token, exposing users to the risk of being logged out through CSRF attacks. This vulnerability affects Moodle versions >=4.3.0 and <4.3.4. The issue has been assigned CVE-2024-34007 and is rated with high severity. No CVSS score is provided. A patch is available to mitigate this vulnerability.
Potential Impact
Users of affected Moodle versions could be logged out without their intention if a malicious website triggers the logout request via CSRF. This could disrupt user sessions but does not directly lead to privilege escalation or data compromise based on the provided information.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Moodle to version 4.3.4 or later where the CSRF token protection for the logout option in MFA is implemented. No additional mitigation steps are indicated by the vendor advisory.
moodle: logout CSRF in admin/tool/mfa/auth.php (CVE-2024-34007)
Description
A Cross-Site Request Forgery (CSRF) vulnerability exists in the logout option within the Multi-Factor Authentication (MFA) component of Moodle. Specifically, the logout function in admin/tool/mfa/auth.php lacks the necessary CSRF token, which could allow users to be logged out unintentionally via CSRF attacks. This affects Moodle versions from 4.3.0 up to but not including 4.3.4. A patch is available to address this issue.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The logout option in Moodle's MFA module (admin/tool/mfa/auth.php) does not include a CSRF token, exposing users to the risk of being logged out through CSRF attacks. This vulnerability affects Moodle versions >=4.3.0 and <4.3.4. The issue has been assigned CVE-2024-34007 and is rated with high severity. No CVSS score is provided. A patch is available to mitigate this vulnerability.
Potential Impact
Users of affected Moodle versions could be logged out without their intention if a malicious website triggers the logout request via CSRF. This could disrupt user sessions but does not directly lead to privilege escalation or data compromise based on the provided information.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Moodle to version 4.3.4 or later where the CSRF token protection for the logout option in MFA is implemented. No additional mitigation steps are indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-moodle-2024-34007
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2024-34007"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- High
Threat ID: 6aa00617acd9273b49ab778f
Added to database: 09/08/2026, 12:56:55 UTC
Last enriched: 09/08/2026, 13:44:06 UTC
Last updated: 09/10/2026, 19:36:48 UTC
Views: 17
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.