RubySec

Providing security resources for the Ruby community

CVE-2014-0081 (actionpack): XSS Vulnerability in number_to_currency, number_to_percentage and number_to_human

ADVISORIES

GEM

actionpack

FRAMEWORK

rails

SEVERITY

CVSS v2: 4.3

PATCHED VERSIONS

  • ~> 3.2.17
  • ~> 4.0.3
  • >= 4.1.0.beta2

DESCRIPTION

Ruby on Rails contains a flaw that allows a cross-site scripting (XSS) attack. This flaw exists because the actionpack/lib/action_view/helpers/number_helper.rb script does not validate input to the ‘number_to_currency’, ‘number_to_percentage’, and ‘number_to_human’ helpers before returning it to users. This may allow a remote attacker to create a specially crafted request that would execute arbitrary script code in a user’s browser session within the trust relationship between their browser and the server.