CVE-2012-0797: Moodle/moodle Moodle Users Can Bypass Deleted Vulnerability
MODERATECVE-2012-0797 is a MODERATE moodle users can bypass deleted vulnerability (CWE-287: Improper Authentication) affecting Moodle/moodle libraries in the Packagist ecosystem. The issue involves moodle users can bypass deleted status. Remediation is available by upgrading affected packages to version 2.2.1, 2.1.4, 2.0.7.
CVE-2012-0797 at a Glance
How to Fix CVE-2012-0797
To remediate this vulnerability, upgrade all affected Moodle/moodle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade moodle/moodle to 2.2.1
Upgrade moodle/moodle to 2.1.4
Upgrade moodle/moodle to 2.0.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for moodle/moodle
How to Check if You Are Affected
To determine whether your application is affected by CVE-2012-0797, inspect your project dependencies for Moodle/moodle:
inspect dependencies for moodle/moodle
Analyze the terminal output to locate any version of Moodle/moodle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Moodle/moodle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2012-0797 Affected Moodle/moodle Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
moodle/moodle
|
Packagist |
≥ 2.2
< 2.2.1
|
2.2.1
|
|
moodle/moodle
|
Packagist |
≥ 2.1
< 2.1.4
|
2.1.4
|
|
moodle/moodle
|
Packagist |
≥ 2.0
< 2.0.7
|
2.0.7
|
References
Frequently Asked Questions
What is CVE-2012-0797?
Which Moodle/moodle versions are affected?
What version fixes CVE-2012-0797?
Is moodle/moodle affected?
What CWE is associated with CVE-2012-0797?
How can I check Packagist dependencies for CVE-2012-0797?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-72gv-qqrp-h9qg",
"modified" : "2024-01-12T16:10:49Z",
"published" : "2022-05-13T01:13:04Z",
"aliases" : [ "CVE-2012-0797" ],
"summary" : "Moodle Users Can Bypass Deleted Status",
"details" : "The webservices functionality in Moodle 2.0.x before 2.0.7, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 allows remote authenticated users to bypass the deleted status and continue using a server via a token.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2"
}, {
"fixed" : "2.2.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1"
}, {
"fixed" : "2.1.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0"
}, {
"fixed" : "2.0.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-0797"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/364622b4662d9f349f3701ed548cda2f31491fea"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/bbcde38b334ecbfa2a18b01b77a7e995b2c0d9f7"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/dbfa519ad9e4d33ac3a4cd506d606d56a2f0bbff"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/e922d9a90bab337b1082fbe28c352c18cae2580e"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=783532"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moodle/moodle"
}, {
"type" : "WEB",
"url" : "http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-28126"
}, {
"type" : "WEB",
"url" : "http://moodle.org/mod/forum/discuss.php?d=194016"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-12T16:10:49Z",
"nvd_published_at" : "2012-07-17T10:20:00Z"
}
}