Microsoft o365-moodle
moodle-local_o365: Authentication bypass via unverified JWT signature in Teams SSO endpoint
The Microsoft 365 and Microsoft Entra ID Plugins for Moodle provide Office 365 and Azure Active Directory integration for Moodle. Prior to 4.5.6, 5.0.5, and 5.1.1, the Microsoft Office 365 Integration plugin local_o365 Teams SSO endpoint sso_login.php base64-decodes a JWT payload and authenticates users from the upn claim without verifying the JWT signature, allowing an unauthenticated attacker to forge a token and obtain a Moodle session as an O365-authenticated user. This issue is fixed in versions 4.5.6, 5.0.5, and 5.1.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.5.6
- >= 5.0.0, < 5.0.5
- >= 5.1.0, < 5.1.1
Fixed in 4.5.6, 5.0.5, 5.1.1
Mitigation
Upgrade o365-moodle to 4.5.6 or 5.0.5 or 5.1.1 or later.
References
- Vendor advisory github.com/microsoft/o365-moodle/security/advi…
- Patch github.com/microsoft/o365-moodle/commit/01b2d4…
- Patch github.com/microsoft/o365-moodle/commit/258872…
4 more
- Patch github.com/microsoft/o365-moodle/commit/d55966…
- Release notes github.com/microsoft/o365-moodle/releases/tag/…
- Release notes github.com/microsoft/o365-moodle/releases/tag/…
- Release notes github.com/microsoft/o365-moodle/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.