Cross-site scripting in Ruby on Rails - CVE-2015-7578

 

Cross-site scripting in Ruby on Rails - CVE-2015-7578

Published: January 26, 2016 / Updated: September 22, 2017


Vulnerability identifier: #VU8581
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2015-7578
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

Vulnerability allows a remote attacker to perform Cross-site scripting attacks.

An input validation error exists in the rails-html-sanitizer gem before 1.0.3 for Ruby on Rails 4.2.x and 5.x. A remote authenticated attacker can trick the victim to follow a specially specially crafted link and execute arbitrary HTML and script code in victim's browser in security context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

Ruby on Rails
Fedora
rubygem-rails-html-sanitizer

How to mitigate CVE-2015-7578

Update to version 4.2.5.1.

rubygem-rails-html-sanitizer - addressed in versions 1.0.1-2.fc22, 1.0.3-1.fc23

External References

Related Security Bulletins