SmarterMail — 2 vulnerability checks
noctis ships 2 vulnerability checks for SmarterMail, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
SmarterMail unauthenticated file upload with path traversal
| CVE | CVE-2025-52691 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/smartermail/CVE-2025-52691.yaml |
Reads the SmarterMail web interface page (/interface/root, then the landing page as fallback) and takes the build number from its stProductVersion variable. When the page is SmarterMail and the build is not 9413 or later, it uploads a small text file through the anonymous /api/upload API with a path-traversal guid ("dag/../noctis-" plus a random token), which keeps the file inside SmarterMail's own attachments folder under a random .txt name. The finding fires when the returned file key carries that traversal and token, showing the server built the storage path from attacker input without authentication. A fixed build rejects the guid (INVALID_GUID) and writes nothing. When the upload gets no conclusive answer, a build lower than 9413 is reported from the version alone.
How noctis detects it
- HTTP(S) request
GET /interface/root - HTTP(S) request
GET / - Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /api/uploadwith a crafted body - Parses / computes the next value with a Rhai script
- Checks
up.bodyfor(?i)att_dag→ finding QoD 75: SmarterMail unauthenticated file upload with path traversal (CVE-2025-52691) - Checks
v.verfor^[0-9]+\.[0-9]+\.[0-9]+→ finding QoD 70: SmarterMail unauthenticated file upload with path traversal (CVE-2025-52691)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2025-52691
- https://labs.watchtowr.com/do-smart-people-ever-say-theyre-smart-smartertools-smartermail-pre-auth-rce-cve-2025-52691/
- https://github.com/watchtowrlabs/watchTowr-vs-SmarterMail-CVE-2025-52691
- https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2025-124
Feed source — tests/vulnerabilities/smartermail/CVE-2025-52691.yaml
# SmarterTools SmarterMail unauthenticated arbitrary file upload (CVE-2025-52691).
#
# The bug (watchTowr Labs, Jan 2026): POST /api/upload is anonymous. With context=attachment,
# the contextData JSON's "guid" is pasted into the stored file name,
# att_{guid}_{count}.{ext} (ext taken from resumableFilename)
# and joined to App_Data\Attachments with a plain "/", so "../" in the guid moves the file out
# of the attachments folder (the public exploit writes an .aspx into the web root). Build 9413
# validates the guid first and answers HTTP 400 {"message":"INVALID_GUID"} without writing.
#
# Proof (issue #2449): the previous version wrote a fixed-name probe.aspx two levels up
# (App_Data\noctis-probe_0.aspx), never removed it, and matched only a "fileName" key. Now:
# - the upload runs only when the page is the SmarterMail web client and the build is not
# already a fixed one (>= 9413), so patched servers and other products get no POST at all;
# - the guid is "dag/../noctis-<random>": att_dag/../noctis-<random>_0.txt resolves to
# App_Data\Attachments\noctis-<random>_0.txt, i.e. the file stays in the folder where
# SmarterMail keeps every webmail upload, under a random name, as inert .txt text;
# - the finding needs the returned "key" to echo our own traversal + random token, which a
# fixed build never returns (it rejects the guid before writing).
# When the build is < 9413 but the upload gives no answer either way (blocked, 404, error),
# the feed falls back to the build number (QoD 70). An INVALID_GUID answer is final: clean.
#
# Affected: builds before 9413 (100.0.x), and 16.x up to 16.3.6989. Version source: the
# /interface/root shell's stProductVersion, as in smartermail/CVE-2026-23760.yaml.
uid: 0301ba8e-fc13-4ec6-9c8a-c54b46e6216c
name: "SmarterMail unauthenticated file upload with path traversal (CVE-2025-52691)"
description: >-
Reads the SmarterMail web interface page (/interface/root, then the landing page as
fallback) and takes the build number from its stProductVersion variable. When the page is
SmarterMail and the build is not 9413 or later, it uploads a small text file through the
anonymous /api/upload API with a path-traversal guid ("dag/../noctis-" plus a random
token), which keeps the file inside SmarterMail's own attachments folder under a random
.txt name. The finding fires when the returned file key carries that traversal and token,
showing the server built the storage path from attacker input without authentication.
A fixed build rejects the guid (INVALID_GUID) and writes nothing. When the upload gets no
conclusive answer, a build lower than 9413 is reported from the version alone.
category: rce
cves: [CVE-2025-52691]
cvss: 10.0
severity: critical
confidence_base: 0.30
tags: [smartermail, file-upload, path-traversal, rce, kev, pre-auth, intrusive]
services: [http, https]
author: noctis
version: "2.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2025-52691"
- "https://labs.watchtowr.com/do-smart-people-ever-say-theyre-smart-smartertools-smartermail-pre-auth-rce-cve-2025-52691/"
- "https://github.com/watchtowrlabs/watchTowr-vs-SmarterMail-CVE-2025-52691"
- "https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2025-124"
steps:
- id: init-root
action: set_var
var_name: root
var_value: {status: 0, body: ""}
- id: init-home
action: set_var
var_name: home
var_value: {status: 0, body: ""}
- id: init-up
action: set_var
var_name: up
var_value: {status: 0, body: ""}
- id: interface-root
action: http_request
method: GET
path: "/interface/root"
port: "{{port}}"
tls_insecure: true
timeout_secs: 10
store_as: root
- id: landing-page
action: http_request
method: GET
path: "/"
port: "{{port}}"
tls_insecure: true
timeout_secs: 10
condition: "root.status != 200"
store_as: home
- id: version
action: script
code: |
fn sm_page(r) {
type_of(r) == "map" && type_of(r.body) == "string" && r.status == 200
&& ereg("ng-app=[\"']smartermail[\"']", r.body)
}
fn sm_version(r) {
let m = eregmatch("stProductVersion[ \t]*=[ \t]*[\"']([0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?)[\"']", r.body);
if type_of(m) == "array" && m.len() > 1 { return m[1]; }
""
}
let sm = false;
let ver = "";
let src = "/interface/root";
if sm_page(root) { sm = true; ver = sm_version(root); }
else if sm_page(home) { sm = true; ver = sm_version(home); src = "/"; }
let build = 0;
if ver != "" { build = int(split(ver, ".")[2]); }
let tok = rand_str(16);
#{ sm: sm, ver: ver, build: build, src: src,
affected: build > 0 && build < 9413,
probe: sm && (build == 0 || build < 9413),
tok: tok }
store_as: v
- id: upload-probe
action: http_request
method: POST
path: "/api/upload"
port: "{{port}}"
tls_insecure: true
timeout_secs: 15
condition: "v.probe"
headers:
Content-Type: "multipart/form-data; boundary=----NoctisBoundary{{v.tok}}"
body: "------NoctisBoundary{{v.tok}}\r\nContent-Disposition: form-data; name=\"context\"\r\n\r\nattachment\r\n------NoctisBoundary{{v.tok}}\r\nContent-Disposition: form-data; name=\"resumableIdentifier\"\r\n\r\nnoctis{{v.tok}}\r\n------NoctisBoundary{{v.tok}}\r\nContent-Disposition: form-data; name=\"resumableFilename\"\r\n\r\nnoctis-{{v.tok}}.txt\r\n------NoctisBoundary{{v.tok}}\r\nContent-Disposition: form-data; name=\"contextData\"\r\n\r\n{\"guid\":\"dag/../noctis-{{v.tok}}\"}\r\n------NoctisBoundary{{v.tok}}\r\nContent-Disposition: form-data; name=\"file\"; filename=\"noctis-{{v.tok}}.txt\"\r\nContent-Type: text/plain\r\n\r\nnoctis scanner check for CVE-2025-52691\r\n------NoctisBoundary{{v.tok}}--\r\n"
store_as: up
- id: verdict
action: script
code: |
let body = "";
if type_of(up) == "map" && type_of(up.body) == "string" { body = tolower(up.body); }
let status = 0;
if type_of(up) == "map" && type_of(up.status) == "i64" { status = up.status; }
// Build 16 returns the JSON double-encoded (a JSON string), so "/" may come back as "\/".
let flat = str_replace(body, "\\/", "/");
let proved = status == 200 && stridx(flat, "att_dag/../noctis-" + v.tok) >= 0;
let rejected = stridx(body, "invalid_guid") >= 0;
#{ proved: proved, rejected: rejected,
version_only: !proved && !rejected && v.affected,
status: status }
store_as: res
- id: upload-traversal
action: match
source: up.body
pattern: "(?i)att_dag"
condition: "res.proved"
on_match:
finding:
title: "SmarterMail unauthenticated file upload with path traversal (CVE-2025-52691)"
description: "The anonymous /api/upload API of this SmarterMail server built the storage path of an uploaded file from a client-supplied guid containing ../, without authentication. An attacker uses the same request to write an .aspx file into the web root and run code as the SmarterMail service. The check kept its file inside SmarterMail's attachments folder, as an inert text file with a random name."
confidence_delta: 0.45
qod: 75
evidence: "POST /api/upload (guid dag/../noctis-{{v.tok}}) -> HTTP {{res.status}}: {{up.body}} — the file noctis-{{v.tok}}_0.txt is in App_Data/Attachments (build {{v.ver}})"
remediation: "Upgrade SmarterMail to build 9413 or later. Look for unexpected .aspx/.ashx files under the SmarterMail installation and web root, and for upload requests carrying ../ in contextData."
stop: true
- id: affected-build
action: match
source: v.ver
pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+"
condition: "res.version_only"
on_match:
finding:
title: "SmarterMail unauthenticated file upload with path traversal (CVE-2025-52691)"
description: "The server runs a SmarterMail build older than 9413, affected by CVE-2025-52691: the anonymous /api/upload API builds the storage path from a client-supplied guid, so ../ lets an attacker write an .aspx file into the web root and run code. The upload check got no conclusive answer, so this finding rests on the reported build number."
confidence_delta: 0.40
qod: 70
evidence: "SmarterMail page {{v.src}} reports stProductVersion {{v.ver}} (build {{v.build}}; fixed in build 9413); POST /api/upload answered HTTP {{res.status}}."
remediation: "Upgrade SmarterMail to build 9413 or later, then look for unexpected .aspx/.ashx files under the SmarterMail installation and web root."
stop: trueSmarterMail unauthenticated system administrator password reset
| CVE | CVE-2026-23760 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 70 |
| Feed | tests/vulnerabilities/smartermail/CVE-2026-23760.yaml |
Reads the SmarterMail web interface page (/interface/root, then the landing page as fallback), checks that it is the SmarterMail web client (ng-app="smartermail"), and takes the build number from the stProductVersion variable (third segment of e.g. 100.0.9504). The finding fires when the build is lower than 9511. On those builds the anonymous force-reset-password API changes a system administrator password without checking the current one. The feed does not call that API: on a vulnerable server the request itself resets the administrator password, so the result rests on the build number only.
How noctis detects it
- HTTP(S) request
GET /interface/root - HTTP(S) request
GET / - Parses / computes the next value with a Rhai script
- Checks
v.verfor^[0-9]+\.[0-9]+\.[0-9]+→ finding QoD 70: SmarterMail unauthenticated system administrator password reset (CVE-2026-23760)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2026-23760
- https://labs.watchtowr.com/attackers-with-decompilers-strike-again-smartertools-smartermail-wt-2026-0001-auth-bypass/
- https://www.smartertools.com/smartermail/release-notes/current
Feed source — tests/vulnerabilities/smartermail/CVE-2026-23760.yaml
# SmarterTools SmarterMail unauthenticated system administrator password reset (CVE-2026-23760).
#
# The bug: POST /api/v1/auth/force-reset-password is anonymous, and its IsSysAdmin branch
# looks up the administrator, checks the new password against the password policy, then
# writes it, without ever checking OldPassword. Build 9511 adds the OldPassword check, but
# only AFTER the policy check. So every request that reaches the divergence point on a
# vulnerable build is a successful reset: an unknown user (USER_NOT_FOUND) or a weak new
# password (policy error) gets the same answer on both builds, and a request that passes
# both checks overwrites the real admin password. The previous version of this feed sent
# that request with a hardcoded password published in this repository (issue #2417). There
# is no harmless behavioural differential, so this feed never calls the endpoint and
# reports from the build number only (QoD 70).
#
# Version source: the web interface shell (/interface/root, the same page the login screen
# loads in) is rendered by MailService.dll and carries
# <html ng-app="smartermail" ng-cloak ng-strict-di>
# var stProductVersion = "100.0.9504";
# (checked in the official smartertools/smartermail:100.0.9504 image; the web client reads
# the build with stProductVersion.split(".")[2]). The build is the third segment; a fourth
# segment (assembly revision, e.g. 100.0.9504.27933) is accepted too. Build numbers are
# monotonic across product versions (16.x 6xxx, 100.0.7xxx and later).
#
# Affected (NVD / vendor): builds before 9511. Fixed: 9511 (15 Jan 2026).
uid: 7bf4ef61-cbe3-43aa-a07b-a2434024afcb
name: "SmarterMail unauthenticated system administrator password reset (CVE-2026-23760)"
description: >-
Reads the SmarterMail web interface page (/interface/root, then the landing page as
fallback), checks that it is the SmarterMail web client (ng-app="smartermail"), and takes
the build number from the stProductVersion variable (third segment of e.g. 100.0.9504).
The finding fires when the build is lower than 9511. On those builds the anonymous
force-reset-password API changes a system administrator password without checking the
current one. The feed does not call that API: on a vulnerable server the request itself
resets the administrator password, so the result rests on the build number only.
cves: [CVE-2026-23760]
cvss: 9.8
severity: critical
category: auth-bypass
confidence_base: 0.30
tags: [smartermail, auth-bypass, password-reset, privilege-escalation, kev, version-check]
services: [http, https]
author: noctis
version: "2.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2026-23760"
- "https://labs.watchtowr.com/attackers-with-decompilers-strike-again-smartertools-smartermail-wt-2026-0001-auth-bypass/"
- "https://www.smartertools.com/smartermail/release-notes/current"
steps:
- id: init-root
action: set_var
var_name: root
var_value: {status: 0, body: ""}
- id: init-home
action: set_var
var_name: home
var_value: {status: 0, body: ""}
- id: interface-root
action: http_request
method: GET
path: "/interface/root"
port: "{{port}}"
tls_insecure: true
timeout_secs: 10
store_as: root
- id: landing-page
action: http_request
method: GET
path: "/"
port: "{{port}}"
tls_insecure: true
timeout_secs: 10
condition: "root.status != 200"
store_as: home
- id: version
action: script
code: |
fn sm_version(r) {
if type_of(r) != "map" || type_of(r.body) != "string" || r.status != 200 { return ""; }
let b = r.body;
if !ereg("ng-app=[\"']smartermail[\"']", b) { return ""; }
let m = eregmatch("stProductVersion[ \t]*=[ \t]*[\"']([0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?)[\"']", b);
if type_of(m) == "array" && m.len() > 1 { return m[1]; }
""
}
let ver = sm_version(root);
let src = "/interface/root";
if ver == "" { ver = sm_version(home); src = "/"; }
let build = 0;
if ver != "" { build = int(split(ver, ".")[2]); }
let hit = ver != "" && build > 0 && build < 9511;
#{ ver: ver, build: build, src: src, hit: hit }
store_as: v
- id: affected-build
action: match
source: v.ver
pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+"
condition: "v.hit"
on_match:
finding:
title: "SmarterMail unauthenticated system administrator password reset (CVE-2026-23760)"
description: "The server runs a SmarterMail build older than 9511, affected by CVE-2026-23760: the anonymous /api/v1/auth/force-reset-password API sets a new password for any system administrator without checking the current one, which gives full control of the mail server and, through its administration features, command execution on the host. This finding rests on the reported build number; the reset request was not sent."
confidence_delta: 0.45
qod: 70
evidence: "SmarterMail page {{v.src}} reports stProductVersion {{v.ver}} (build {{v.build}}; fixed in build 9511)."
remediation: "Upgrade SmarterMail to build 9511 or later, then review the system administrator accounts and audit log for password changes made through force-reset-password."
stop: true