Carello — 1 vulnerability check
noctis ships 1 vulnerability check for Carello, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Carello E-Commerce Carello.dll VBEXE command execution
| CVE | CVE-2001-0614, CVE-2002-0683 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 70 |
| Feed | tests/vulnerabilities/carello/carello-vbexe-command-execution.yaml |
Detects Carello.dll, the ISAPI extension of the Carello E-Commerce shopping cart. Carello.dll runs the program named in its VBEXE parameter with the rights of the web server, so an unauthenticated remote attacker who passes cmd.exe with arguments runs any command (CVE-2001-0614, Carello 1.2.1 and earlier). Carello 1.3 only checks the path against the Windows directory, which a "\.\" or "..\" in VBEXE bypasses (CVE-2002-0683). The test requests Carello.dll in /scripts/Carello (the default install), the web root, /cgi-bin and /scripts, and reports one that answers 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. VBEXE is never sent: starting a program is the only trigger and can hang the web server.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/Carello.dll - HTTP(S) request
GET {{dir}}/{{ctl}}.dll - Parses / computes the next value with a Rhai script
- Checks
verdictfor^CARELLO_DLL_PRESENT$→ finding QoD 70: Carello.dll present at …/Carello.dll — VBEXE command execution
References:
- https://nvd.nist.gov/vuln/detail/CVE-2001-0614
- https://nvd.nist.gov/vuln/detail/CVE-2002-0683
- https://seclists.org/bugtraq/2001/May/87
- https://www.exploit-db.com/exploits/20850
- https://spinics.net/lists/bugtraq/msg04747.html
Feed source — tests/vulnerabilities/carello/carello-vbexe-command-execution.yaml
# Carello E-Commerce (Pacific Software) — Carello.dll VBEXE arbitrary program
# execution (CVE-2001-0614, Defcom def-2001-25 / BID 2729 / EDB-20850;
# CVE-2002-0683, Westpoint wp-02-0012)
#
# Credit: target file adapted from Greenbone's `pre2008/carello.nasl`
# (GPL-2.0-only), which reports when Carello.dll is installed
# (http_is_cgi_installed_ka) under / and the CGI directories.
#
# Advisory facts: Carello.dll, the ISAPI front end of the Carello shopping
# cart, takes the program that handles a form from the VBEXE parameter (a
# hidden form field) and runs it with the web server's rights (LocalSystem
# under IIS). In 1.2.1 any path works:
# /scripts/Carello/Carello.dll?CARELLOCODE=SITE2&VBEXE=C:\..\winnt\system32\cmd.exe%20/c%20…
# (CVE-2001-0614). 1.3 checks the path against %systemroot%, which "\.\"
# and "..\" in VBEXE bypass (CVE-2002-0683); the vendor planned no fix, so
# every Carello release up to 1.3 is affected.
#
# Why no exploitation proof: the only trigger is starting a program on the
# server. The original advisory reports that its cmd.exe request drove
# inetinfo.exe to 100% CPU and left IIS unable to answer or restart until a
# reboot, the program's output is not returned in the HTTP reply, and NT 4 /
# Windows 2000 ship no command that fetches a URL without first writing a
# file to disk. No request is both benign and conclusive, so this is a
# presence check at QoD 70.
#
# Better than the reference check:
# - the advisories' install path /scripts/Carello/Carello.dll is probed too
# (the reference check only looks for Carello.dll directly under /, /cgi-bin
# and /scripts, and misses the default install);
# - CVE-2002-0683 (the 1.3 bypass) is reported too: a presence check cannot
# tell 1.2.1 from 1.3, and both are exploitable;
# - 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 are not reported; a control that gets no reply gives no finding;
# - a 200 that is a file download (binary content type or an "MZ" body) is
# not reported: a directory without execute permission serves the DLL
# instead of running it;
# - VBEXE is never sent.
uid: 2c50fee2-bdd6-45ff-80d1-5c874b79bab5
name: "Carello E-Commerce Carello.dll VBEXE command execution"
description: |
Detects Carello.dll, the ISAPI extension of the Carello E-Commerce shopping
cart. Carello.dll runs the program named in its VBEXE parameter with the
rights of the web server, so an unauthenticated remote attacker who passes
cmd.exe with arguments runs any command (CVE-2001-0614, Carello 1.2.1 and
earlier). Carello 1.3 only checks the path against the Windows directory,
which a "\.\" or "..\" in VBEXE bypasses (CVE-2002-0683). The test requests
Carello.dll in /scripts/Carello (the default install), the web root,
/cgi-bin and /scripts, and reports one that answers 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. VBEXE is never sent: starting a program is the only trigger and
can hang the web server.
cves: [CVE-2001-0614, CVE-2002-0683]
cvss: 7.5 # NVD publishes only CVSS v2 scores (7.5 for both CVEs), no v3.x
severity: high
category: rce
confidence_base: 0.30
tags: [carello, shopping-cart, isapi, iis, command-execution, rce]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2001-0614"
- "https://nvd.nist.gov/vuln/detail/CVE-2002-0683"
- "https://seclists.org/bugtraq/2001/May/87"
- "https://www.exploit-db.com/exploits/20850"
- "https://spinics.net/lists/bugtraq/msg04747.html"
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:
- "/scripts/Carello"
- ""
- "/cgi-bin"
- "/scripts"
var: dir
- id: init-control
action: set_var
var_name: control
var_value: {status: 0}
- id: probe-dll
action: http_request
method: GET
path: "{{dir}}/Carello.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 = "";
// An extension that runs answers with a page; a DLL the server only
// hands out (no 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 = "CARELLO_DLL_PRESENT"; }
v
store_as: verdict
- id: dll-present
action: match
source: verdict
pattern: '^CARELLO_DLL_PRESENT$'
on_match:
finding:
title: "Carello.dll present at {{dir}}/Carello.dll — VBEXE command execution"
description: "{{dir}}/Carello.dll of the Carello E-Commerce shopping cart answered, while a random .dll name in the same directory was refused. Carello.dll runs the program named in its VBEXE parameter with the web server's rights, so an unauthenticated attacker can run any command (CVE-2001-0614); Carello 1.3's path check is bypassed with \\.\\ or ..\\ in VBEXE (CVE-2002-0683). VBEXE was not sent, so the version was not confirmed."
remediation: "Remove Carello.dll and the Carello scripts from the web server: no Carello release fixes both flaws. Until then, deny anonymous access to the Carello directory in IIS and run the site under a low-privilege account instead of LocalSystem."
confidence_delta: 0.40
qod: 70
evidence: "GET {{dir}}/Carello.dll returned HTTP {{page.status}}; control GET {{dir}}/{{ctl}}.dll returned HTTP {{control.status}}"
stop: true