Lucene search

K
openvasCopyright (C) 2001 SecuriTeamOPENVAS:136141256231010713
HistoryNov 03, 2005 - 12:00 a.m.

Code Red X Worm Detection - Active Check

2005-11-0300:00:00
Copyright (C) 2001 SecuriTeam
plugins.openvas.org
23

6.4 Medium

AI Score

Confidence

Low

10 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

0.967 High

EPSS

Percentile

99.7%

Your machine is infected with the

# SPDX-FileCopyrightText: 2001 SecuriTeam
# 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:microsoft:internet_information_services";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.10713");
  script_version("2023-10-10T05:05:41+0000");
  script_tag(name:"last_modification", value:"2023-10-10 05:05:41 +0000 (Tue, 10 Oct 2023)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  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_cve_id("CVE-2001-0500");
  script_name("Code Red X Worm Detection - Active Check");
  script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"remote_active");
  script_copyright("Copyright (C) 2001 SecuriTeam");
  script_family("Malware");
  script_dependencies("gb_microsoft_iis_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("microsoft/iis/http/detected");

  script_tag(name:"solution", value:"1) Remove the file root.exe from both directories:

  \inetpub\scripts

  and

  \program files\common files\system\msadc

  2) Install an updated antivirus program (this will remove the Explorer.exe Trojan)

  3) Set SFCDisable in hklm\software\microsoft\windows nt\currentversion\winlogon to: 0

  4) Remove the two newly created virtual directories: C and D (Created by the Trojan)

  5) Make sure no other files have been modified.

  It is recommended that hosts that have been compromised by Code Red X would reinstall the operating system from scratch and patch it accordingly.");

  script_xref(name:"URL", value:"http://www.securiteam.com/securitynews/5GP0V004UQ.html");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/2880");
  script_xref(name:"URL", value:"http://www.securiteam.com/windowsntfocus/5WP0L004US.html");
  script_xref(name:"URL", value:"http://www.cert.org/advisories/CA-2001-11.html");
  script_xref(name:"URL", value:"http://www.microsoft.com/technet/itsolutions/security/tools/redfix.asp");

  script_tag(name:"summary", value:"Your machine is infected with the 'Code Red' worm. Your Windows system seems to be compromised.");

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

  exit(0);
}

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

# nb: No get_app_location() as IIS is not "directly" affected and the initial version of
# this VT had only checked for the banner of IIS.
if(!port = get_app_port(cpe:CPE, service:"www"))
  exit(0);

soc = http_open_socket(port);
if(!soc)
  exit(0);

req = http_get(item:"/scripts/root.exe?/c+dir+c:\+/OG", port:port);
send(socket:soc, data:req);
buf = http_recv(socket:soc);
http_close_socket(soc);

pat1 = "<DIR>";
pat2 = "Directory of C";

if ( ("This program cannot be run in DOS mode" >< buf) || (pat1 >< buf) || (pat2 >< buf) )
{
  security_message(port);
  exit(0);
} else {

  soc = http_open_socket(port);
  if ( ! soc )
    exit(0);

  req = http_get(item:"/c/winnt/system32/cmd.exe?/c+dir+c:\+/OG", port:port);
  send(socket:soc, data:req);

  buf = http_recv(socket:soc);
  http_close_socket(soc);

  if (("This program cannot be run in DOS mode" >< buf) || (pat1 >< buf) || (pat2 >< buf) )
  {
    security_message(port);
    exit(0);
  }
}

6.4 Medium

AI Score

Confidence

Low

10 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

0.967 High

EPSS

Percentile

99.7%