Lucene search
+L

Sugar AI (Formerly SugarCRM) Detection (HTTP)

🗓️ 08 Jul 2016 00:00:00Reported by Copyright (C) 2016 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 32 Views

HTTP based detection of SugarCR

Refs
Code
SourceLink
sugarcrmwww.sugarcrm.com/
sugaraiwww.sugarai.com/
# SPDX-FileCopyrightText: 2016 Greenbone AG
# 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

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.106122");
  script_version("2026-04-23T06:21:05+0000");
  script_tag(name:"last_modification", value:"2026-04-23 06:21:05 +0000 (Thu, 23 Apr 2026)");
  script_tag(name:"creation_date", value:"2016-07-08 14:44:45 +0700 (Fri, 08 Jul 2016)");
  script_tag(name:"cvss_base", value:"0.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");

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

  script_name("Sugar AI (Formerly SugarCRM) Detection (HTTP)");

  script_tag(name:"summary", value:"HTTP based detection of Sugar AI (Formerly SugarCRM).");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_family("Product detection");
  script_dependencies("find_service.nasl", "gb_suitecrm_http_detect.nasl", "no404.nasl",
                      "webmirror.nasl", "DDI_Directory_Scanner.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 443);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_xref(name:"URL", value:"https://www.sugarai.com/");
  script_xref(name:"URL", value:"https://www.sugarcrm.com/");

  exit(0);
}

include("cpe.inc");
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");

port = http_get_port(default: 443);

# Don't detect SuiteCRM as SugarCRM on the same port and vhost
host = http_host_name(dont_add_port: TRUE);
if (get_kb_item("salesagility/suitecrm/http/" + host + "/" + port + "/detected"))
  exit(0);

foreach dir (make_list_unique("/sugarcrm", "/SugarCRM", "/sugar", http_cgi_dirs(port: port))) {
  install = dir;
  if (dir == "/")
    dir = "";

  found = FALSE;

  url = dir + "/index.php?action=Login&module=Users&login_module=Home&login_action=index";
  res = http_get_cache(port: port, item: url);

  # nb: For version 7 and later
  url2 = dir + "/";
  res2 = http_get_cache(port: port, item: url2);

  if ("alt='Powered By SugarCRM'>" >< res || "Set-Cookie: sugar_user_them" >< res) {
    found = TRUE;
    concUrl = "  " + http_report_vuln_url(port: port, url: url, url_only: TRUE);
  }

  if (res2 =~ "<title>(.*)?SugarCRM</title>" && "var parentIsSugar" >< res2) {
    found = TRUE;
    if (concUrl)
      concUrl += '\n';
    concUrl += "  " + http_report_vuln_url(port: port, url: url2, url_only: TRUE);
  }

  if (found) {

    version = "unknown";
    edition = "";

    url = dir + "/sugar_version.json";
    req = http_get(port: port, item: url);
    res = http_keepalive_send_recv(port: port, data: req);

    # "sugar_version": "6.5.25",
    # "sugar_version":"10.0.4",
    # "sugar_version":"11.0.2",
    # "sugar_version":"13.0.2",
    # "sugar_version":"25.1.2",
    vers = eregmatch(pattern: '"sugar_version"\\s*:\\s*"([0-9.]+)[^"]*",', string: res);
    if (!isnull(vers[1])) {
      version = vers[1];
      concUrl += '\n  ' + http_report_vuln_url(port: port, url: url, url_only: TRUE);
      concluded = "  " + vers[0];
    }

    # "sugar_flavor":"ENT",
    # "sugar_flavor": "CE",
    # "sugar_flavor":"PRO",
    ed = eregmatch(pattern: '"sugar_flavor"\\s*:\\s*"([^"]+)",', string: res);
    if (!isnull(ed[1])) {
      edition = ed[1];
      set_kb_item(name: "sugarcrm/edition", value: edition);

      if (concluded)
        concluded += '\n';
      concluded += "  " + ed[0];

      if ("/sugar_version.json" >!< concUrl)
        concUrl += '\n  ' + http_report_vuln_url(port: port, url: url, url_only: TRUE);
    }

    if (!strlen(edition))
      edition = "Unknown Edition";

    set_kb_item(name: "sugarcrm/detected", value: TRUE);
    set_kb_item(name: "sugarcrm/http/detected", value: TRUE);

    cpe = build_cpe(value: version, exp: "^([0-9.]+)", base: "cpe:/a:sugarcrm:sugarcrm:");
    if (!cpe)
      cpe = "cpe:/a:sugarcrm:sugarcrm";

    register_product(cpe: cpe, location: install, port: port, service: "www");

    log_message(data: build_detection_report(app: "SugarCRM " + edition, version: version, install: install,
                                             cpe: cpe, concluded: concluded, concludedUrl: concUrl),
                port: port);
  }
}

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

23 Apr 2026 00:00Current
5.8Medium risk
Vulners AI Score5.8
32