
Scanner and proof-of-concept exploit for CVE-2025-22214, an unauthenticated SQL injection in Landray EIS Message/fi_message_receiver.aspx via the replyid parameter.

Fast YAML-based vulnerability scanner with template-driven detection engine for automated security testing across web apps, APIs, networks, DNS, and cloud infrastructure.

Open-source web application security scanner for automated vulnerability detection, manual penetration testing, and API security testing with a proxy-based interception engine.

This repository contains the scanner component for Greenbone Community Edition.
Landray EIS SQL注入漏洞 (Landray EIS SQL injection)
| field | value |
|---|---|
| CVE | CVE-2025-22214 |
| severity | critical |
| CVSS | N/A in the record; NVD lists a secondary CVSS:3.1 4.3 MEDIUM (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N) |
| fixed in | not published by the vendor; affected range is Landray EIS 2001 through 2006 |
| class | SQL injection (CWE-89) |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT4uiG
Landray EIS 2001 through 2006 concatenates the replyid query-string
value of Message/fi_message_receiver.aspx straight into the WHERE
clause of its message lookup, with no escaping and no parameter binding.
An unauthenticated attacker therefore controls the predicate and can make
the SQL Server instance evaluate arbitrary scalar expressions. The nuclei
template (http/cves/2025/CVE-2025-22214.yaml, max-request: 1) proves
execution with one request: replyid=1 and 1=CONVERT(VARCHAR(32),HASHBYTES('MD5','123'),2)--, which forces the
statement to emit the 32-char hex MD5 of 123,
202CB962AC59075B964B07152D234B70, inside the ASP.NET error block that
also names the varchar type and the Landray product.
Landray EIS 2001 through 2006 contains a SQL injection caused by
unsanitized input in Message/fi_message_receiver.aspx?replyid=, letting
attackers execute arbitrary SQL commands; exploitation requires crafted
input. Because the value is injected as a numeric literal, a
single-quote-free payload keeps the original statement syntactically
valid, and the trailing -- comment absorbs the remainder of the
generated query. CONVERT(VARCHAR(32), HASHBYTES('MD5','123'), 2) is the
in-band oracle: style 2 returns uppercase hex without the 0x prefix,
so the presence of 202CB962AC59075B964B07152D234B70 in the response
body is a computed proof that the database evaluated the injected
expression, not a plain echo of the request.
Impact: attackers can execute arbitrary SQL commands, potentially leading
to data theft, modification, or deletion. Remediation: apply input
validation and parameterized queries, and update to the latest available
EIS release. NVD publishes the record as CWE-89 with a secondary 4.3
MEDIUM score; the record status is Deferred.
http/cves/2025/CVE-2025-22214.yaml); no JavaScript is executed, and
the template request budget of 1 is the authoritative verdict.GET /Message/fi_message_receiver.aspx?replyid=1%20and%20 1=CONVERT(VARCHAR(32),HASHBYTES('MD5','123'),2)--+.status_code == 500 and
contains_all(body, "202CB962AC59075B964B07152D234B70", "varchar", "Landray"). Both the status and the three fragments must hold.202cb962...
from a different SQL Server build still matches the template strings.GET ...?replyid=1 is recorded as context
(baseline_status, baseline_snippet) but is not part of the verdict,
which keeps the template's single-request semantics.check(url) returns (True, details) only when every matcher holds;
every helper retries (2 attempts, linear backoff) and HTTPError
bodies are read, because the expected answer for this CVE is 500.urls.txt (tagger output such as
host:8080/path) are auto-prefixed with http://; a 12-char md5
token fingerprints the per-row details./jquery.landray.dialog.js.# scanner: streamed CSV + optional JSON sidecar
python scanner/CVE-2025-22214/scanner.py urls.txt 8 CVE-2025-22214.csv --json CVE-2025-22214.json
# exploit: result dict + optional CSV/JSON dumps
python exploit/CVE-2025-22214/exploit.py http://target/ --csv CVE-2025-22214.csv --json CVE-2025-22214.json --verbose
urls.txt is a plain file, one target per line, # for comments.
[*] Landray EIS CVE-2025-22214 SQLi scanner (fi_message_receiver.aspx replyid)
scanner : CVE-2025-22214 v1.0.0
threads : 8 | csv: CVE-2025-22214.csv | json: CVE-2025-22214.json
[*] Landray EIS CVE-2025-22214 SQLi scanner (fi_message_receiver.aspx replyid)
[2026-12-03 10:00:01] loaded 2 target(s) from urls.txt
[2026-12-03 10:00:02] [1/2] http://eis01:8080 -> VULNERABLE
[2026-12-03 10:00:02] [2/2] http://eis02:8080 -> not-vuln
[2026-12-03 10:00:02] summary: total=2 vulnerable=1 not-vuln=1 errors=0
[2026-12-03 10:00:02] timing : avg=182ms max=210ms wall=0.42s
[2026-12-03 10:00:02] report saved: CVE-2025-22214.csv
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided |
| status | ok / error |
| vulnerable | verdict |
| elapsed_ms | per-target timing |
| token | 12-char md5 over the row details |
| result_b64 | base64(JSON) full details |
scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.README.md - this file.DESCRIPTION.md - deeper technical notes.../../exploit/CVE-2025-22214/exploit.py - two-request POC.| code | meaning |
|---|---|
| 0 | at least one target answered |
| 2 | every target errored |