Lucene search
+L

JDownloader Detection (HTTP)

🗓️ 11 Oct 2009 00:00:00Reported by Copyright (C) 2009 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 10 Views

JDownloader Detection (HTTP) script for identifying JDownloader web interfac

Refs
Code
SourceLink
jdownloaderwww.jdownloader.org/
# SPDX-FileCopyrightText: 2009 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.100301");
  script_version("2023-07-12T05:05:05+0000");
  script_tag(name:"last_modification", value:"2023-07-12 05:05:05 +0000 (Wed, 12 Jul 2023)");
  script_tag(name:"creation_date", value:"2009-10-11 19:51:15 +0200 (Sun, 11 Oct 2009)");
  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_name("JDownloader Detection (HTTP)");
  script_category(ACT_GATHER_INFO);
  script_family("Product detection");
  script_copyright("Copyright (C) 2009 Greenbone AG");
  script_dependencies("find_service.nasl", "httpver.nasl", "global_settings.nasl", "gb_default_credentials_options.nasl");
  script_require_ports("Services/www", 8765);
  script_exclude_keys("Settings/disable_cgi_scanning", "default_credentials/disable_default_account_checks");

  script_xref(name:"URL", value:"http://jdownloader.org");

  script_tag(name:"summary", value:"HTTP based detection of JDownloader.");

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

  exit(0);
}

if(get_kb_item("default_credentials/disable_default_account_checks"))
  exit(0);

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

port = http_get_port( default:8765 );
host = http_host_name( dont_add_port:TRUE );

url = "/";
buf = http_get_cache( item:url, port:port );
banner = http_get_remote_headers( port:port );

if( 'WWW-Authenticate: Basic realm="JDownloader' >< banner ) {

  JD = TRUE;
  JD_WEBINTERFACE = TRUE;
  set_kb_item( name:"www/" + host + "/" + port + "/password_protected", value:TRUE );

  userpass  = string( "JD:JD" ); # default pw
  userpass64 = base64( str:userpass );
  req = string( "GET / HTTP/1.0\r\n",
                "Authorization: Basic ", userpass64 ,
                "\r\n\r\n" );
  buf = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );

  if( buf ) {
    if( "JDownloader - WebInterface" >< buf ) {
      DEFAULT_PW = TRUE;
      set_kb_item( name:"www/" + host + "/" + port + "/jdwebinterface/default_pw", value:TRUE );
      version = eregmatch( pattern:"Webinterface-([0-9]+)", string:buf );
    }
  }
} else if( "JDownloader - WebInterface" >< buf ) {
  JD = TRUE;
  JD_WEBINTERFACE = TRUE;
  JD_UNPROTECTED = TRUE;
  version = eregmatch( pattern:"Webinterface-([0-9]+)", string:buf );
}

if( banner =~ "Server\s*:\s*jDownloader" ) {
  concl = egrep( pattern:"^[Ss]erver\s*:\s*jDownloader", string:banner, icase:FALSE );
  JD = TRUE;
  JD_WEBSERVER = TRUE;
  set_kb_item( name:"www/" + host + "/" + port + "/jdwebserver", value:TRUE );
}

if( JD ) {
  if( JD_WEBINTERFACE ) {
    if( version && ! isnull( version[1] ) ) {
      vers = version[1];
    } else {
      vers = "unknown";
    }

    set_kb_item( name:"www/" + host + "/" + port + "/jdwebinterface", value:vers );

    if( JD_UNPROTECTED ) {
      info += string("\nJDownloader Webinterface is *not* protected by password.\n");
    } else if( DEFAULT_PW ) {
      # TBD: Write a separate Vuln-VT for this?
      info += string("\nIt was possible to log in into the JDownloader Webinterface\nby using 'JD' (the default username and password) as username and password.\n");
    }

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

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

    report = build_detection_report( app:"JDownloader Webinterface",
                                     version:version,
                                     install:url,
                                     cpe:cpe,
                                     extra:info,
                                     concluded:version[0] );
  }

  if( JD_WEBSERVER ) {

    if( JD_WEBINTERFACE )
      report += '\n\n';

    install = port + "/tcp";
    version = "unknown";
    cpe = "cpe:/a:jdownloader:jdownloader_webserver";

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

    report += build_detection_report( app:"JDownloader Webserver",
                                      version:version,
                                      install:install,
                                      cpe:cpe,
                                      concluded:chomp( concl ) );
  }
  log_message( port:port, data:report );
}

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