def run_check
version = rails_version
if (version == "2.3.9" or version == "3.0.0") and uses_nested_attributes?
message = msg("Vulnerability in nested attributes ", msg_cve("CVE-2010-3933"), ". Upgrade to ")
if version == "2.3.9"
message << msg_version("2.3.10")
else
message << msg_version("3.0.1")
end
warn :warning_type => "Nested Attributes",
:warning_code => :CVE_2010_3933,
:message => message,
:confidence => :high,
:gem_info => gemfile_or_environment,
:link_path => "https://groups.google.com/d/topic/rubyonrails-security/-fkT0yja_gw/discussion"
end
end