Moodle PHP up to 5.4.10 Library repository/s3/S3.php input validation

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.4$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, has been found in Moodle PHP up to 5.4.10. Affected is an unknown function of the file repository/s3/S3.php of the component Library. This manipulation causes input validation. This vulnerability is registered as CVE-2012-6087. Furthermore, an exploit is available. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability classified as critical was found in Moodle PHP up to 5.4.10 (Learning Management Software). Affected by this vulnerability is an unknown functionality of the file repository/s3/S3.php of the component Library. The manipulation with an unknown input leads to a input validation vulnerability. The CWE definition for the vulnerability is CWE-20. The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. As an impact it is known to affect confidentiality, and integrity. The summary by CVE is:

repository/s3/S3.php in the Amazon S3 library in Moodle through 2.2.11, 2.3.x before 2.3.9, 2.4.x before 2.4.6, and 2.5.x before 2.5.2 does not verify that the server hostname matches a domain name in the subject s Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate, related to an incorrect CURLOPT_SSL_VERIFYHOST value.

The weakness was published 01/17/2013 by Andrew Saunders as not defined blog post (Website). It is possible to read the advisory at daniel.haxx.se. The public release has been coordinated with Moodle. This vulnerability is known as CVE-2012-6087 since 12/06/2012. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known.

It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $5k-$25k. By approaching the search of inurl:repository/s3/S3.php it is possible to find vulnerable targets with Google Hacking. The vulnerability scanner Nessus provides a plugin with the ID 64268 (Fedora 17 : moodle-2.2.7-1.fc17 (2013-0968)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks.

Upgrading to version 5.3.21 or 5.4.11 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.moodle.org. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published immediately after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (81685), Tenable (64268), SecurityFocus (BID 57104†), OSVDB (89314†) and Vulnerability Center (SBV-38667†). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.2
VulDB Meta Temp Score: 7.4

VulDB Base Score: 8.2
VulDB Temp Score: 7.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Input validation
CWE: CWE-20
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Google Hack: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 64268
Nessus Name: Fedora 17 : moodle-2.2.7-1.fc17 (2013-0968)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 865269
OpenVAS Name: Fedora Update for moodle FEDORA-2013-0907
OpenVAS File: 🔍
OpenVAS Family: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: PHP 5.3.21/5.4.11
Patch: git.moodle.org

Timelineinfo

12/06/2012 🔍
01/02/2013 +27 days 🔍
01/02/2013 +0 days 🔍
01/17/2013 +15 days 🔍
01/17/2013 +0 days 🔍
01/21/2013 +4 days 🔍
01/29/2013 +8 days 🔍
03/10/2013 +40 days 🔍
09/16/2013 +190 days 🔍
04/22/2021 +2775 days 🔍

Sourcesinfo

Advisory: daniel.haxx.se
Researcher: Andrew Saunders
Status: Not defined
Confirmation: 🔍
Coordinated: 🔍

CVE: CVE-2012-6087 (🔍)
GCVE (CVE): GCVE-0-2012-6087
GCVE (VulDB): GCVE-100-7435
X-Force: 81685
SecurityFocus: 57104 - Moodle 'cURL' API Security Bypass Vulnerability
OSVDB: 89314
Vulnerability Center: 38667 - Moodle <=2.4.1 cURL API Remote Security Bypass Vulnerability, Medium

scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 01/21/2013 14:56
Updated: 04/22/2021 12:34
Changes: 01/21/2013 14:56 (75), 08/20/2017 22:18 (6), 04/22/2021 12:34 (3)
Complete: 🔍
Committer:
Cache ID: 216:DC1:103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!