Ruby on Rails up to 3.2.12 Sanitize Helper sanitizer.rb cross site scripting
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.2 | $0-$5k | 0.00 |
Summary
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.
Details
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.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.4VulDB Meta Temp Score: 5.2
VulDB Base Score: 5.4
VulDB Temp Score: 5.2
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Cross site scriptingCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
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 Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: Ruby on Rails 3.2.13
Timeline
08/09/2012 🔍02/19/2013 🔍
03/18/2013 🔍
03/18/2013 🔍
03/19/2013 🔍
03/19/2013 🔍
03/20/2013 🔍
03/20/2013 🔍
03/29/2013 🔍
05/06/2021 🔍
Sources
Advisory: seclists.orgResearcher: 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: 🔍
Entry
Created: 03/20/2013 14:30Updated: 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.
No comments yet. Languages: en.
Please log in to comment.