ID 90064567-28B1-11DB-844D-000C6EC775D9 Type freebsd Reporter FreeBSD Modified 2006-08-09T00:00:00
Description
The Ruby on Rails blog reports:
With Rails 1.1.0 through 1.1.5 (minus the short-lived 1.1.3),
you can trigger the evaluation of Ruby code through the URL
because of a bug in the routing code of Rails. This means that
you can essentially take down a Rails process by starting
something like /script/profiler, as the code will run for a
long time and that process will be hung while it happens.
Other URLs can even cause data loss.
{"modified": "2006-08-09T00:00:00", "cvelist": [], "edition": 1, "type": "freebsd", "reporter": "FreeBSD", "references": ["http://weblog.rubyonrails.org/2006/8/10/rails-1-1-6-backports-and-full-disclosure"], "href": "https://vuxml.freebsd.org/freebsd/90064567-28b1-11db-844d-000c6ec775d9.html", "description": "\nThe Ruby on Rails blog reports:\n\nWith Rails 1.1.0 through 1.1.5 (minus the short-lived 1.1.3),\n\t you can trigger the evaluation of Ruby code through the URL\n\t because of a bug in the routing code of Rails. This means that\n\t you can essentially take down a Rails process by starting\n\t something like /script/profiler, as the code will run for a\n\t long time and that process will be hung while it happens.\n\t Other URLs can even cause data loss.\n\n", "id": "90064567-28B1-11DB-844D-000C6EC775D9", "lastseen": "2016-09-26T17:25:06", "cvss": {"score": 0.0, "vector": "NONE"}, "enchantments": {"score": {"value": 2.5, "vector": "NONE", "modified": "2016-09-26T17:25:06", "rev": 2}, "dependencies": {"references": [{"type": "openvas", "idList": ["OPENVAS:57259"]}, {"type": "nessus", "idList": ["FREEBSD_PKG_9006456728B111DB844D000C6EC775D9.NASL"]}], "modified": "2016-09-26T17:25:06", "rev": 2}, "vulnersScore": 2.5}, "bulletinFamily": "unix", "published": "2006-08-09T00:00:00", "affectedPackage": [{"packageFilename": "UNKNOWN", "operator": "lt", "packageVersion": "1.1.3", "OS": "FreeBSD", "packageName": "rubygem-rails", "OSVersion": "any", "arch": "noarch"}, {"packageFilename": "UNKNOWN", "operator": "eq", "packageVersion": "1.1.0", "OS": "FreeBSD", "packageName": "rubygem-rails", "OSVersion": "any", "arch": "noarch"}], "title": "rubygem-rails -- evaluation of ruby code", "viewCount": 0}
{"openvas": [{"lastseen": "2017-07-02T21:10:10", "bulletinFamily": "scanner", "cvelist": [], "description": "The remote host is missing an update to the system\nas announced in the referenced advisory.", "modified": "2016-09-29T00:00:00", "published": "2008-09-04T00:00:00", "id": "OPENVAS:57259", "href": "http://plugins.openvas.org/nasl.php?oid=57259", "type": "openvas", "title": "FreeBSD Ports: rubygem-rails", "sourceData": "#\n#VID 90064567-28b1-11db-844d-000c6ec775d9\n# OpenVAS Vulnerability Test\n# $\n# Description: Auto generated from vuxml or freebsd advisories\n#\n# Authors:\n# Thomas Reinke <reinke@securityspace.com>\n#\n# Copyright:\n# Copyright (c) 2008 E-Soft Inc. http://www.securityspace.com\n# Text descriptions are largely excerpted from the referenced\n# advisories, and are Copyright (c) the respective author(s)\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2,\n# as published by the Free Software Foundation\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n#\n\ninclude(\"revisions-lib.inc\");\ntag_insight = \"The following package is affected: rubygem-rails\";\ntag_solution = \"Update your system with the appropriate patches or\nsoftware upgrades.\n\nhttp://weblog.rubyonrails.org/2006/8/10/rails-1-1-6-backports-and-full-disclosure\nhttp://www.vuxml.org/freebsd/90064567-28b1-11db-844d-000c6ec775d9.html\";\ntag_summary = \"The remote host is missing an update to the system\nas announced in the referenced advisory.\";\n\n\nif(description)\n{\n script_id(57259);\n script_version(\"$Revision: 4175 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2016-09-29 07:45:50 +0200 (Thu, 29 Sep 2016) $\");\n script_tag(name:\"creation_date\", value:\"2008-09-04 20:41:11 +0200 (Thu, 04 Sep 2008)\");\n script_tag(name:\"cvss_base\", value:\"5.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:N/I:N/A:P\");\n script_name(\"FreeBSD Ports: rubygem-rails\");\n\n\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"Copyright (c) 2006 E-Soft Inc. http://www.securityspace.com\");\n script_family(\"FreeBSD Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/freebsdrel\", \"login/SSH/success\");\n script_tag(name : \"insight\" , value : tag_insight);\n script_tag(name : \"solution\" , value : tag_solution);\n script_tag(name : \"summary\" , value : tag_summary);\n script_tag(name:\"qod_type\", value:\"package\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n exit(0);\n}\n\n#\n# The script code starts here\n#\n\ninclude(\"pkg-lib-bsd.inc\");\n\ntxt = \"\";\nvuln = 0;\nbver = portver(pkg:\"rubygem-rails\");\nif(!isnull(bver) && revcomp(a:bver, b:\"1.1.0\")>=0 && revcomp(a:bver, b:\"1.1.3\")<0) {\n txt += 'Package rubygem-rails version ' + bver + ' is installed which is known to be vulnerable.\\n';\n vuln = 1;\n}\nif(!isnull(bver) && revcomp(a:bver, b:\"1.1.4\")>=0 && revcomp(a:bver, b:\"1.1.6\")<0) {\n txt += 'Package rubygem-rails version ' + bver + ' is installed which is known to be vulnerable.\\n';\n vuln = 1;\n}\n\nif(vuln) {\n security_message(data:string(txt));\n} else if (__pkg_match) {\n exit(99); # Not vulnerable.\n}\n", "cvss": {"score": 0.0, "vector": "NONE"}}], "nessus": [{"lastseen": "2021-01-07T10:47:12", "description": "The Ruby on Rails blog reports :\n\nWith Rails 1.1.0 through 1.1.5 (minus the short-lived 1.1.3), you can\ntrigger the evaluation of Ruby code through the URL because of a bug\nin the routing code of Rails. This means that you can essentially take\ndown a Rails process by starting something like /script/profiler, as\nthe code will run for a long time and that process will be hung while\nit happens. Other URLs can even cause data loss.", "edition": 22, "published": "2006-08-14T00:00:00", "title": "FreeBSD : rubygem-rails -- evaluation of ruby code (90064567-28b1-11db-844d-000c6ec775d9)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": [], "modified": "2006-08-14T00:00:00", "cpe": ["p-cpe:/a:freebsd:freebsd:rubygem-rails", "cpe:/o:freebsd:freebsd"], "id": "FREEBSD_PKG_9006456728B111DB844D000C6EC775D9.NASL", "href": "https://www.tenable.com/plugins/nessus/22211", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from the FreeBSD VuXML database :\n#\n# Copyright 2003-2018 Jacques Vidrine and contributors\n#\n# Redistribution and use in source (VuXML) and 'compiled' forms (SGML,\n# HTML, PDF, PostScript, RTF and so forth) with or without modification,\n# are permitted provided that the following conditions are met:\n# 1. Redistributions of source code (VuXML) must retain the above\n# copyright notice, this list of conditions and the following\n# disclaimer as the first lines of this file unmodified.\n# 2. Redistributions in compiled form (transformed to other DTDs,\n# published online in any format, converted to PDF, PostScript,\n# RTF and other formats) must reproduce the above copyright\n# notice, this list of conditions and the following disclaimer\n# in the documentation and/or other materials provided with the\n# distribution.\n# \n# THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS \"AS IS\"\n# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\n# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS\n# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,\n# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,\n# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(22211);\n script_version(\"1.12\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/06\");\n\n script_name(english:\"FreeBSD : rubygem-rails -- evaluation of ruby code (90064567-28b1-11db-844d-000c6ec775d9)\");\n script_summary(english:\"Checks for updated packages in pkg_info output\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\n\"The remote FreeBSD host is missing one or more security-related\nupdates.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"The Ruby on Rails blog reports :\n\nWith Rails 1.1.0 through 1.1.5 (minus the short-lived 1.1.3), you can\ntrigger the evaluation of Ruby code through the URL because of a bug\nin the routing code of Rails. This means that you can essentially take\ndown a Rails process by starting something like /script/profiler, as\nthe code will run for a long time and that process will be hung while\nit happens. Other URLs can even cause data loss.\"\n );\n # http://weblog.rubyonrails.org/2006/8/10/rails-1-1-6-backports-and-full-disclosure\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?7eb1d7c6\"\n );\n # https://vuxml.freebsd.org/freebsd/90064567-28b1-11db-844d-000c6ec775d9.html\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?aa58a842\"\n );\n script_set_attribute(attribute:\"solution\", value:\"Update the affected packages.\");\n script_set_attribute(attribute:\"risk_factor\", value:\"High\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:freebsd:freebsd:rubygem-rails\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:freebsd:freebsd\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2006/08/09\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2006/08/10\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2006/08/14\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2006-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"FreeBSD Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/FreeBSD/release\", \"Host/FreeBSD/pkg_info\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"freebsd_package.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nif (!get_kb_item(\"Host/FreeBSD/release\")) audit(AUDIT_OS_NOT, \"FreeBSD\");\nif (!get_kb_item(\"Host/FreeBSD/pkg_info\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\nflag = 0;\n\nif (pkg_test(save_report:TRUE, pkg:\"rubygem-rails>=1.1.0<1.1.3\")) flag++;\nif (pkg_test(save_report:TRUE, pkg:\"rubygem-rails>=1.1.4<1.1.6\")) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:pkg_report_get());\n else security_hole(0);\n exit(0);\n}\nelse audit(AUDIT_HOST_NOT, \"affected\");\n", "cvss": {"score": 0.0, "vector": "NONE"}}]}