Ruby on Rails up to 3.2.12 Sanitize Helper sanitizer.rb cross site scripting

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

Summaryinfo

A vulnerability marked as critical has been reported in Ruby on Rails up to 3.2.12. This vulnerability affects unknown code of the file lib/action_controller/vendor/html-scanner/html/sanitizer.rb of the component Sanitize Helper. The manipulation leads to cross site scripting. This vulnerability is listed as CVE-2013-1857. The attack may be initiated remotely. There is no available exploit. It is suggested to upgrade the affected component.

Detailsinfo

A vulnerability was found in Ruby on Rails up to 3.2.12 (Programming Language Software) and classified as critical. This issue affects an unknown code of the file lib/action_controller/vendor/html-scanner/html/sanitizer.rb of the component Sanitize Helper. The manipulation with an unknown input leads to a cross site scripting vulnerability. Using CWE to declare the problem leads to CWE-79. The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Impacted is confidentiality, and integrity. The summary by CVE is:

The sanitize helper in lib/action_controller/vendor/html-scanner/html/sanitizer.rb in the Action Pack component in Ruby on Rails before 2.3.18, 3.0.x and 3.1.x before 3.1.12, and 3.2.x before 3.2.13 does not properly handle encoded : (colon) characters in URLs, which makes it easier for remote attackers to conduct cross-site scripting (XSS) attacks via a crafted scheme name, as demonstrated by including a : sequence.

The weakness was presented 03/18/2013 by Alan Jenkins as confirmed mailinglist post (oss-sec). The advisory is shared at seclists.org. The public release was coordinated in cooperation with the project team. The identification of this vulnerability is CVE-2013-1857 since 02/19/2013. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. It demands that the victim is doing some kind of user interaction. Technical details are known, but no exploit is available. MITRE ATT&CK project uses the attack technique T1059.007 for this issue.

The vulnerability scanner Nessus provides a plugin with the ID 65727 (Debian DSA-2655-1 : rails - several vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 166714 (OpenSuSE Security Update for rubygem-actionpack-2_3 (openSUSE-SU-2014:0019-1)).

Upgrading to version 3.2.13 eliminates this vulnerability. A possible mitigation has been published immediately after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (65727), SecurityFocus (BID 54957†), OSVDB (91454†), Secunia (SA52656†) and SecurityTracker (ID 1028321†). See VDB-5926, VDB-8030, VDB-8031 and VDB-8032 for similar entries. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.4
VulDB Meta Temp Score: 5.2

VulDB Base Score: 5.4
VulDB Temp Score: 5.2
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Cross site scripting
CWE: CWE-79 / CWE-94 / CWE-74
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: 65727
Nessus Name: Debian DSA-2655-1 : rails - several vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 892655
OpenVAS Name: Debian Security Advisory DSA 2655-1 (rails - several vulnerabilities
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.13

Timelineinfo

08/09/2012 🔍
02/19/2013 +194 days 🔍
03/18/2013 +27 days 🔍
03/18/2013 +0 days 🔍
03/19/2013 +1 days 🔍
03/19/2013 +0 days 🔍
03/20/2013 +1 days 🔍
03/20/2013 +0 days 🔍
03/29/2013 +9 days 🔍
05/06/2021 +2960 days 🔍

Sourcesinfo

Advisory: seclists.org
Researcher: Alan Jenkins
Status: Confirmed
Confirmation: 🔍
Coordinated: 🔍

CVE: CVE-2013-1857 (🔍)
GCVE (CVE): GCVE-0-2013-1857
GCVE (VulDB): GCVE-100-8033

OVAL: 🔍

SecurityFocus: 54957
Secunia: 52656 - Ruby on Rails Multiple Vulnerabilities, Moderately Critical
OSVDB: 91454
SecurityTracker: 1028321

See also: 🔍

Entryinfo

Created: 03/20/2013 14:30
Updated: 05/06/2021 14:05
Changes: 03/20/2013 14:30 (71), 05/04/2018 09:11 (8), 05/06/2021 14:05 (4)
Complete: 🔍
Committer:
Cache ID: 216:203:103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!