Ruby on Rails Security Bypass Vulnerability

2010-12-09T00:00:00
ID OPENVAS:1361412562310801653
Type openvas
Reporter Copyright (c) 2010 Greenbone Networks GmbH
Modified 2018-12-05T00:00:00

Description

This host is running Ruby on Rails and is prone to security bypass vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ruby_rails_sec_bypass_vuln.nasl 12673 2018-12-05 15:02:55Z cfischer $
#
# Ruby on Rails Security Bypass Vulnerability
#
# Authors:
# Sooraj KS <kssooraj@secpod.com>
#
# Copyright:
# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

CPE = 'cpe:/a:rubyonrails:ruby_on_rails';

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.801653");
  script_version("$Revision: 12673 $");
  script_tag(name:"last_modification", value:"$Date: 2018-12-05 16:02:55 +0100 (Wed, 05 Dec 2018) $");
  script_tag(name:"creation_date", value:"2010-12-09 06:36:39 +0100 (Thu, 09 Dec 2010)");
  script_cve_id("CVE-2010-3933");
  script_tag(name:"cvss_base", value:"6.4");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:P/A:P");
  script_name("Ruby on Rails Security Bypass Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("secpod_ruby_rails_detect.nasl", "gb_ruby_rails_detect.nasl");
  script_mandatory_keys("RubyOnRails/installed");

  script_xref(name:"URL", value:"http://secunia.com/advisories/41930");
  script_xref(name:"URL", value:"http://securitytracker.com/id?1024624");
  script_xref(name:"URL", value:"http://www.vupen.com/english/advisories/2010/2719");
  script_xref(name:"URL", value:"http://weblog.rubyonrails.org/2010/10/15/security-vulnerability-in-nested-attributes-code-in-ruby-on-rails-2-3-9-and-3-0-0");

  script_tag(name:"impact", value:"Successful exploitation will allow attackers to manipulate arbitrary records.");
  script_tag(name:"affected", value:"Ruby on Rails versions 2.3.9 and 3.0.0");
  script_tag(name:"insight", value:"The flaw is due to an input validation error when handling nested
  attributes, which can be exploited to manipulate arbitrary records by changing form input parameter names.");
  script_tag(name:"solution", value:"Upgrade to Ruby On Rails version 3.0.1 or 2.3.10");
  script_tag(name:"summary", value:"This host is running Ruby on Rails and is prone to security bypass
  vulnerability.");

  script_tag(name:"qod_type", value:"remote_banner");
  script_tag(name:"solution_type", value:"VendorFix");

  script_xref(name:"URL", value:"http://rubyonrails.org/download");
  exit(0);
}

include("version_func.inc");
include("host_details.inc");

if( ! port = get_app_port( cpe:CPE ) ) exit( 0 );
if( ! vers = get_app_version( cpe:CPE, port:port ) ) exit( 0 );

if( version_is_equal( version:vers, test_version:"2.3.9" ) ||
    version_is_equal( version:vers, test_version:"3.0.0" ) ) {
  report = report_fixed_ver( installed_version:vers, fixed_version:"2.3.10/3.0.1" );
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );