David Heinemeier Hansson Ruby on Rails up to 4.0.1 Third-Party Libraries NULL/WHERE access control

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.
9.5$0-$5k0.00

Summaryinfo

A vulnerability categorized as critical has been discovered in David Heinemeier Hansson Ruby on Rails up to 4.0.1. This affects an unknown part of the component Third-Party Libraries/Custom Rack Middleware Parsing. The manipulation of the argument NULL/WHERE results in access control. This vulnerability is identified as CVE-2013-6417. There is not any exploit available. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability classified as very critical has been found in David Heinemeier Hansson Ruby on Rails up to 4.0.1 (Programming Language Software). Affected is an unknown functionality of the component Third-Party Libraries/Custom Rack Middleware Parsing. The manipulation of the argument NULL/WHERE with an unknown input leads to a access control vulnerability. CWE is classifying the issue as CWE-264. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

actionpack/lib/action_dispatch/http/request.rb in Ruby on Rails before 3.2.16 and 4.x before 4.0.2 does not properly consider differences in parameter handling between the Active Record component and the JSON implementation, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks or trigger missing WHERE clauses via a crafted request that leverages (1) third-party Rack middleware or (2) custom Rack middleware. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-0155.

The weakness was released 12/03/2013 by Sudhir Rao as Incomplete fix to CVE-2013-0155 (Unsafe Query Generation Risk) as confirmed mailinglist post (oss-sec). The advisory is shared for download at seclists.org. The public release was coordinated with the vendor. The mailinglist post contains:

The prior fix to CVE-2013-0155 was incomplete and the use of common 3rd party libraries can accidentally circumvent the protection. This vulnerability has been assigned the CVE identifier CVE-2013-6417.
This vulnerability is traded as CVE-2013-6417 since 11/04/2013. The exploitability is told to be difficult. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available. The current price for an exploit might be approx. USD $0-$5k (estimation calculated on 06/02/2021). The MITRE ATT&CK project declares the attack technique as T1068.

The vulnerability scanner Nessus provides a plugin with the ID 73239 (Debian DSA-2888-1 : ruby-actionpack-3.2 - security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12793 (Ruby on Rails Multiple Vulnerabilities).

Upgrading to version 3.2.16 or 4.0.2 eliminates this vulnerability. The upgrade is hosted for download at rubyonrails.org. A possible mitigation has been published immediately after the disclosure of the vulnerability. The mailinglist post contains the following remark:

To work around this issue you need to audit your middleware chain and ensure that each of the libraries in use does not create an instance of Rack::Request.

The vulnerability is also documented in the databases at X-Force (89438), Tenable (73239), SecurityFocus (BID 64106†), OSVDB (100527†) and Vulnerability Center (SBV-42615†). Entries connected to this vulnerability are available at VDB-11373, VDB-11374, VDB-11375 and VDB-65653. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Vendor

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 10.0
VulDB Meta Temp Score: 9.5

VulDB Base Score: 10.0
VulDB Temp Score: 9.5
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Access control
CWE: CWE-264
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 73239
Nessus Name: Debian DSA-2888-1 : ruby-actionpack-3.2 - security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍

OpenVAS ID: 702888
OpenVAS Name: Debian Security Advisory DSA 2888-1 (ruby-actionpack-3.2 - security update
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

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

Upgrade: Ruby on Rails 3.2.16/4.0.2
Workaround: Audit Middleware Chain

Timelineinfo

11/04/2013 🔍
12/03/2013 +29 days 🔍
12/03/2013 +0 days 🔍
12/03/2013 +0 days 🔍
12/05/2013 +2 days 🔍
12/06/2013 +1 days 🔍
12/17/2013 +11 days 🔍
06/02/2021 +2724 days 🔍

Sourcesinfo

Advisory: Incomplete fix to CVE-2013-0155 (Unsafe Query Generation Risk)
Researcher: Sudhir Rao
Status: Confirmed
Confirmation: 🔍
Coordinated: 🔍

CVE: CVE-2013-6417 (🔍)
GCVE (CVE): GCVE-0-2013-6417
GCVE (VulDB): GCVE-100-11376
X-Force: 89438
SecurityFocus: 64106
OSVDB: 100527
Vulnerability Center: 42615 - Ruby on Rails Before 3.2.16 and 4.* Before 4.0.2 RemoteSecurity Bypass Vulnerability in actionpack/lib/action_dispatch/http/request.rb, Medium

See also: 🔍

Entryinfo

Created: 12/05/2013 14:33
Updated: 06/02/2021 17:27
Changes: 12/05/2013 14:33 (56), 05/17/2017 12:31 (27), 06/02/2021 17:27 (3)
Complete: 🔍
Committer:
Cache ID: 216::103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!