Miggo Logo

CVE-2022-2986:
Moodle Cross-Site Request Forgery (CSRF)

8.8

CVSS Score

Basic Information

EPSS Score
-
Published
10/6/2022
Updated
4/23/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
moodle/moodlecomposer>= 3.11, < 3.11.93.11.9
moodle/moodlecomposer>= 4.0, < 4.0.34.0.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing CSRF protections in H5P library management operations. Moodle uses 'sesskey' tokens for CSRF protection, and the advisory explicitly states this was missing. The affected functionality would reside in the H5P admin tool's controller and form handlers, which manage library states. These components would process enable/disable actions without proper token validation in vulnerable versions. The high confidence comes from: 1) The vulnerability's nature (state modification without CSRF checks), 2) Moodle's standard CSRF pattern using 'require_sesskey()', and 3) The H5P library management context described in references.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*n**lin* *n* *is**lin* inst*ll** **P li*r*ri*s *i* not in*lu** t** n***ss*ry tok*n to pr*v*nt * *SR* risk.

Reasoning

T** vuln*r**ility st*ms *rom missin* *SR* prot**tions in **P li*r*ry m*n***m*nt op*r*tions. Moo*l* us*s 's*ssk*y' tok*ns *or *SR* prot**tion, *n* t** **visory *xpli*itly st*t*s t*is w*s missin*. T** *****t** *un*tion*lity woul* r*si** in t** **P **mi