Lucene search
K

ModSecurity 'SecCacheTransformations' Security Bypass Vulnerability

🗓️ 31 Dec 2008 00:00:00Reported by Copyright (C) 2008 SecPodType 
openvas
 openvas
🔗 plugins.openvas.org👁 23 Views

ModSecurity 'SecCacheTransformations' Security Bypass Vulnerability. Exploitation allows attacker to execute arbitrary codes in the context of the web application and bypass certain security restrictions. ModSecurity version from 2.5.0 to 2.5.5 on Linux is affected. Flaw within the transformation caching can cause evasion into ModSecurity when SecCacheTransformations is enabled. Upgrade to version 2.5.6 or later. Host is running ModSecurity and prone to Security Bypass vulnerability

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2008-5676
18 Dec 200822:00
cve
Cvelist
CVE-2008-5676
18 Dec 200822:00
cvelist
EUVD
EUVD-2008-5647
7 Oct 202500:30
euvd
NVD
CVE-2008-5676
19 Dec 200801:52
nvd
OpenVAS
Mandrake Security Advisory MDVSA-2009:183 (apache-mod_security)
17 Aug 200900:00
openvas
OpenVAS
ModSecurity 'SecCacheTransformations' Security Bypass Vulnerability
31 Dec 200800:00
openvas
OpenVAS
Mandrake Security Advisory MDVSA-2009:183 (apache-mod_security)
17 Aug 200900:00
openvas
Prion
Code injection
19 Dec 200801:52
prion
UbuntuCve
CVE-2008-5676
19 Dec 200801:52
ubuntucve
###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_modsecurity_sec_bypass_vuln.nasl 4522 2016-11-15 14:52:19Z teissa $
#
# ModSecurity 'SecCacheTransformations' Security Bypass Vulnerability
#
# Authors:
# Sujit Ghosal <[email protected]>
#
# Copyright:
# Copyright (c) 2008 SecPod, http://www.secpod.com
#
# 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.
###############################################################################

tag_impact = "Successful exploitation will allow attacker to execute arbitrary codes in
  the context of the web application and bypass certain security restrictions.";
tag_affected = "ModSecurity version from 2.5.0 to 2.5.5 on Linux.";
tag_insight = "This flaw is due an error within the transformation caching which can cause
  evasion into ModSecurity. These can be exploited when SecCacheTransformations
  is enabled.";
tag_solution = "Upgrade to version 2.5.6 or later.
  http://www.modsecurity.org/download/";
tag_summary = "This host is running ModSecurity and is prone to Security Bypass
  vulnerability.";

if(description)
{
  script_id(900414);
  script_version("$Revision: 4522 $");
  script_tag(name:"last_modification", value:"$Date: 2016-11-15 15:52:19 +0100 (Tue, 15 Nov 2016) $");
  script_tag(name:"creation_date", value:"2008-12-31 15:14:17 +0100 (Wed, 31 Dec 2008)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:P");
  script_cve_id("CVE-2008-5676");
  script_bugtraq_id(31672);
  script_name("ModSecurity 'SecCacheTransformations' Security Bypass Vulnerability");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/32146");
  script_xref(name : "URL" , value : "http://blog.modsecurity.org/2008/08/transformation.html");

  script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"executable_version");
  script_copyright("Copyright (C) 2008 SecPod");
  script_family("Web Servers");
  script_mandatory_keys("login/SSH/success");
  script_dependencies("gather-package-list.nasl");
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  exit(0);
}


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

sock = ssh_login_or_reuse_connection();
if(!sock){
  exit(0);
}

grep = find_bin(prog_name:"grep", sock:sock);
grep = chomp(grep[0]);

garg[0] = "-o";
garg[1] = "-m1";
garg[2] = "-a";
garg[3] = string("ModSecurity v[0-9]\\+.[0-9]\\+.[0-9]\\+");

modName = find_file(file_name:"mod_security.so", file_path:"/",
                      useregex:TRUE, regexpar:"$", sock:sock);
foreach binaryName (modName)
{
  binaryName = chomp(binaryName);
  if(islocalhost())
  {
    garg[4] = binaryName;
    arg = garg;
  }
  else{
    arg = garg[0] + " " + garg[1] + " " + garg[2] + " " + raw_string(0x22) +
          garg[3] + raw_string(0x22) + " " + binaryName;
  }

  modsecVer = get_bin_version(full_prog_name:grep, version_argv:arg,
                              ver_pattern:"[0-9]+.[0-9]+.[0-9]+", sock:sock);
  if(modsecVer[0] != NULL)
  {
    if(version_in_range(version:modsecVer[0], test_version:"2.5.0",
                                           test_version2:"2.5.5")){
      security_message(0);
    }
    ssh_close_connection();
    exit(0);
  }
}
ssh_close_connection();

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation