InterScan VirusWall — 2 vulnerability checks

noctis ships 2 vulnerability checks for InterScan VirusWall, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Trend Micro InterScan VirusWall — unauthenticated remote configuration change (FtpSave.dll)

CVECVE-2001-0432
Severitycritical · CVSS 10.0
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/interscan-viruswall/CVE-2001-0432.yaml

The InterScan VirusWall management interface lets an unauthenticated client call its configuration CGIs. The feed requests /interscan/cgi-bin/FtpSave.dll?I'm%20Here (a request that carries no setting value) and reports the target when the CGI answers with its "These settings have been saved" confirmation without asking for credentials. A control request for a random .dll in the same directory runs first: a catch-all page that prints the marker for any URL gets no save request and no finding.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /interscan/cgi-bin/noctis{{oob_token}}.dll?I'm%20Here HTTP/1.0
  2. Raw TCP (TLS on HTTPS), sent verbatim: GET /interscan/cgi-bin/FtpSave.dll?I'm%20Here HTTP/1.0
  3. Checks resp.banner for (?s)^HTTP/1\.[01] 200\b.*These settings have been saved → finding QoD 75: FtpSave.dll ran its configuration save without authentication (GET /interscan/cgi-bin/FtpSave.dll?I'm%20Here): …

References:

Feed source — tests/vulnerabilities/interscan-viruswall/CVE-2001-0432.yaml
uid: 4bb7a0bc-db13-47b1-94cd-82610431156c
name: "Trend Micro InterScan VirusWall — unauthenticated remote configuration change (FtpSave.dll)"
description: |
  The InterScan VirusWall management interface lets an unauthenticated client call its
  configuration CGIs. The feed requests /interscan/cgi-bin/FtpSave.dll?I'm%20Here (a
  request that carries no setting value) and reports the target when the CGI answers
  with its "These settings have been saved" confirmation without asking for credentials.
  A control request for a random .dll in the same directory runs first: a catch-all page
  that prints the marker for any URL gets no save request and no finding.
cves: [CVE-2001-0432]
cvss: 10.0
severity: critical
category: auth-bypass
confidence_base: 0.3
tags: [openvas-migrated, http, trend-micro, interscan-viruswall, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2001-0432"
  - "https://www.exploit-db.com/exploits/20893"
  - "OpenVAS NASL pre2008/interscan_vw_cgi.nasl (GPL-2.0-only)"

# Ported from OpenVAS/Greenbone NASL pre2008/interscan_vw_cgi.nasl (GPL-2.0-only).
# Deviations from the NASL (both reduce false positives):
#  - the save CGI must answer HTTP 200 (a 401/403 page quoting the text is not a hit);
#  - a random-name .dll control in /interscan/cgi-bin/ must NOT return the marker, otherwise
#    the target is a catch-all and the save request is never sent.
# The save request is the NASL's own: "I'm Here" sets no configuration value, but the CGI
# still runs its save path, so the feed is tagged intrusive.
steps:
  - id: control
    action: tcp_connect
    port: "{{port}}"
    send: "GET /interscan/cgi-bin/noctis{{oob_token}}.dll?I'm%20Here HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    store_as: ctrl

  - id: exploit
    action: tcp_connect
    condition: 'type_of(ctrl.banner) != "string" || !ctrl.banner.contains("These settings have been saved")'
    port: "{{port}}"
    send: "GET /interscan/cgi-bin/FtpSave.dll?I'm%20Here HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    store_as: resp

  - id: detect
    action: match
    condition: 'type_of(ctrl.banner) != "string" || !ctrl.banner.contains("These settings have been saved")'
    source: resp.banner
    pattern: "(?s)^HTTP/1\\.[01] 200\\b.*These settings have been saved"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "FtpSave.dll ran its configuration save without authentication (GET /interscan/cgi-bin/FtpSave.dll?I'm%20Here): {{resp.banner}}"
      stop: true

Trend Micro InterScan eManager register.dll buffer overflow

CVECVE-2001-0958
Severityhigh · CVSS 7.5
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 70
Feedtests/vulnerabilities/interscan-viruswall/CVE-2001-0958.yaml

Detects the register.dll CGI of the eManager plugin for Trend Micro InterScan VirusWall for NT 3.51 / 3.51J. The plugin's CGIs (register.dll, ContentFilter.dll, TOP10.dll, SpamExcp.dll, spamrule.dll and others) copy overlong arguments into fixed buffers, which lets an unauthenticated remote attacker run code with the rights of the web server (CVE-2001-0958). The test requests register.dll under the web root, /cgi-bin, /scripts, /interscan/cgi-bin and the eManager "Email Management" and "Content Management" directories, and reports one that answers with HTTP 200 with a page (not a file download) while a random .dll name in the same directory is refused with a 4xx status (so servers that answer every path are not reported). No long argument is sent; the vendor fix kept the program names, so a patched eManager is reported too and must be checked against the vendor's fix.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET {{dir}}/register.dll
  3. HTTP(S) request GET {{dir}}/{{ctl}}.dll
  4. Parses / computes the next value with a Rhai script
  5. Checks verdict for ^EMANAGER_REGISTER_PRESENT$ → finding QoD 70: Trend Micro eManager register.dll present — CVE-2001-0958

References:

Feed source — tests/vulnerabilities/interscan-viruswall/CVE-2001-0958.yaml
# Trend Micro InterScan VirusWall for NT 3.51 / 3.51J — eManager plugin CGI
# buffer overflows (CVE-2001-0958, Bugtraq 2001-09, BID 3327)
#
# Credit: target file and directories adapted from Greenbone's
# `pre2008/trendmicro_emanager.nasl` (GPL-2.0-only), which reports when
# register.dll is installed (http_is_cgi_installed_ka) under /,
# /eManager/Email%20Management, /eManager/Content%20Management and the CGI
# directories.
#
# Record facts: the eManager plugin's ISAPI CGIs (register.dll,
# ContentFilter.dll, SFNofitication.dll, TOP10.dll, SpamExcp.dll,
# spamrule.dll) copy overlong arguments into fixed buffers, so an
# unauthenticated remote attacker runs code as the web server. Trend Micro
# shipped a fix (solution 3142) that kept the program names; no version is
# disclosed over HTTP.
#
# Why no exploitation proof: the only trigger is the overflow itself, which
# crashes the web server process (ISAPI runs inside IIS) or runs attacker
# code. No benign request tells a vulnerable eManager from a patched one, so
# this is a presence check at QoD 70 (category rce: the flaw it points to).
#
# Better than the reference check:
#  - also probes /interscan/cgi-bin, where InterScan VirusWall installs its
#    management CGIs;
#  - a random sibling .dll name in the same directory is requested as a
#    control and must be refused with a 4xx status, so catch-all / soft-404
#    servers that answer 200 for any name are not reported; a control that
#    gets no reply gives no finding (fail-closed);
#  - a 200 that is a file download (binary content type or a body starting
#    with "MZ") is not reported: a directory without execute permission that
#    serves the DLL instead of running it;
#  - no long argument is ever sent.
uid: ce5b5fdc-8663-44ac-ad81-73b5c62a39e7
name: "Trend Micro InterScan eManager register.dll buffer overflow (CVE-2001-0958)"
description: |
  Detects the register.dll CGI of the eManager plugin for Trend Micro
  InterScan VirusWall for NT 3.51 / 3.51J. The plugin's CGIs (register.dll,
  ContentFilter.dll, TOP10.dll, SpamExcp.dll, spamrule.dll and others) copy
  overlong arguments into fixed buffers, which lets an unauthenticated remote
  attacker run code with the rights of the web server (CVE-2001-0958). The
  test requests register.dll under the web root, /cgi-bin, /scripts,
  /interscan/cgi-bin and the eManager "Email Management" and "Content
  Management" directories, and reports one that answers with HTTP 200 with a
  page (not a file download) while a random .dll name in the same directory
  is refused with a 4xx status (so servers that answer every path are not
  reported). No long argument is sent; the vendor fix kept the program
  names, so a patched eManager is reported too and must be checked against
  the vendor's fix.
cves: [CVE-2001-0958]
cvss: 7.5
severity: high
category: rce
confidence_base: 0.30
tags: [trend-micro, interscan-viruswall, emanager, isapi, buffer-overflow, rce]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2001-0958"
  - "http://archives.neohapsis.com/archives/bugtraq/2001-09/0099.html"
  - "http://www.securityfocus.com/bid/3327"
  - "http://www.trendmicro.co.jp/esolution/solutionDetail.asp?solutionID=3142"

steps:
  # Random sibling name for the soft-404 control, shared by every location.
  - id: mint-control
    action: script
    code: '"noctis" + rand_hex(8)'
    store_as: ctl

  # ── Per location: this step and every following one ──
  # Pre-initialised so a failed request leaves no undefined variable behind.
  - id: init-page
    action: set_var
    var_name: page
    var_value: {status: 0}
    loop:
      over:
        - ""
        - "/eManager/Email%20Management"
        - "/eManager/Content%20Management"
        - "/interscan/cgi-bin"
        - "/cgi-bin"
        - "/scripts"
      var: dir

  - id: init-control
    action: set_var
    var_name: control
    var_value: {status: 0}

  - id: probe-program
    action: http_request
    method: GET
    path: "{{dir}}/register.dll"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: page

  - id: probe-control
    action: http_request
    method: GET
    path: "{{dir}}/{{ctl}}.dll"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: "page.status == 200"
    store_as: control

  # Fixed verdict string as the match source, so no page content reaches the
  # finding.
  - id: verdict
    action: script
    code: |
      let v = "";
      // A CGI that runs answers with a page; a DLL the server only hands out
      // (directory without execute permission) is a download: binary content
      // type or the "MZ" header of a Windows binary.
      let download = false;
      if page.status == 200 {
        let ct = "";
        if "content-type" in page.headers { ct = tolower(page.headers["content-type"]); }
        download = ct.contains("octet-stream") || ct.contains("msdownload") || ct.contains("msdos-program") || ct.contains("x-dosexec") || page.body.starts_with("MZ");
      }
      if page.status == 200 && !download && control.status >= 400 && control.status < 500 { v = "EMANAGER_REGISTER_PRESENT"; }
      v
    store_as: verdict

  - id: program-present
    action: match
    source: verdict
    pattern: '^EMANAGER_REGISTER_PRESENT$'
    on_match:
      finding:
        title: "Trend Micro eManager register.dll present — CVE-2001-0958"
        description: "{{dir}}/register.dll of the Trend Micro InterScan eManager plugin answered, while a random .dll name in the same directory was refused. The eManager CGIs of InterScan VirusWall for NT 3.51 / 3.51J overflow fixed buffers on overlong arguments, letting an unauthenticated attacker run code as the web server (CVE-2001-0958). The overflow was not sent, so an eManager carrying the vendor fix cannot be told apart."
        remediation: "Apply Trend Micro's fix for the eManager plugin (solution 3142) or upgrade InterScan VirusWall / eManager past 3.51, or remove the eManager CGIs from the web server. Restrict access to the management directories to administrators' hosts."
        confidence_delta: 0.40
        qod: 70
        evidence: "GET {{dir}}/register.dll returned HTTP {{page.status}}; control GET {{dir}}/{{ctl}}.dll returned HTTP {{control.status}}"
      stop: true

View these feeds on GitHub