Cross-site scripting in Ruby on Rails - CVE-2016-6316

 

Cross-site scripting in Ruby on Rails - CVE-2016-6316

Published: September 14, 2016 / Updated: September 22, 2017


Vulnerability identifier: #VU8575
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-2016-6316
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

Vulnerability allows a remote attacker to perform XSS attacks.

The vulnerability is caused by an input validation error in Action View in Ruby on Rails 3.x before 3.2.22.3, 4.x before 4.2.7.1, and 5.x before 5.0.0.1. 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
Debian Linux
Fedora
ror40-rubygem-actionpack (Red Hat package)
rh-ror41-rubygem-actionview (Red Hat package)
rubygem-actionview
rubygem-actioncable
rubygem-actionmailer
rubygem-activejob
rubygem-activemodel
rubygem-activerecord
rubygem-activesupport
rubygem-rails
rubygem-actionpack
rubygem-railties

How to mitigate CVE-2016-6316

The vendor has issued the following versions to address this vulnerability: 3.2.22.3, 4.2.7.1, 5.0.0.1.

ror40-rubygem-actionpack (Red Hat package) - addressed in versions 4.0.2-8.el6, 4.0.2-8.el7
rh-ror41-rubygem-actionview (Red Hat package) - addressed in versions 4.1.5-6.el6, 4.1.5-6.el7
rubygem-actionview - addressed in versions 4.2.3-6.fc23, 4.2.5.2-3.fc24, 5.0.0.1-2.fc25
rubygem-actioncable - update to 5.0.0.1-1.fc25
rubygem-actionmailer - update to 5.0.0.1-1.fc25
rubygem-activejob - update to 5.0.0.1-1.fc25
rubygem-activemodel - update to 5.0.0.1-1.fc25
rubygem-activerecord - update to 5.0.0.1-1.fc25
rubygem-activesupport - update to 5.0.0.1-1.fc25
rubygem-rails - update to 5.0.0.1-1.fc25
rubygem-actionpack - update to 5.0.0.1-2.fc25
rubygem-railties - update to 5.0.0.1-2.fc25

External References

Related Security Bulletins