CVE Professor
/
All CVEs
CVE-2026-140051

CVE-2026-140051 — G-mr SmartCall (1.0.9) — CWE-284 · CWE-266

MEDIUM CVSS 6.9 CVE.org

A vulnerability was found in g-mr SmartCall 1.0.9. Affected by this issue is the function online of the file smart-upms/smart-user/src/main/java/com/qidiangk/smart/user/controller/UserController.java of the component Smart-user User-Online API. The manipulation of the argument userId results in improper access controls. The attack may be launched remotely. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.

A vulnerability was found in g-mr SmartCall 1.0.9. Affected by this issue is the function online of the file smart-upms/smart-user/src/main/java/com/qidiangk/smart/user/controller/UserController.java of the component Smart-user User-Online API. The manipulation of the argument userId results in improper access controls. The attack may be launched remotely. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. Low VC:L
Vuln. Integrity None VI:N
Vuln. Avail. None VA:N
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
AI Security Analysis & Remediation

CVE‑2026‑140051 – “Smart‑Call 1.0.9 – User‑Online API – Improper Access Control”


🎯 What is this vulnerability?

ItemDetail
Componentsmart-upms/smart-user/src/main/java/com/qidiangk/smart/user/controller/UserController.java – method online(Long userId) (exposed as the *User‑Online* REST endpoint).
Vulnerability typeImproper Access Control (CWE‑284) combined with Insufficient Authorization Checks (CWE‑266).
Root causeThe online endpoint accepts a userId parameter supplied by the client and marks the corresponding user record as “online” (e.g., updates a lastSeen timestamp or a status flag). The method does not verify that the caller is authorized to act on the supplied userId. No authentication token, session check, or ownership validation is performed before the state change. Consequently any unauthenticated network attacker can invoke the endpoint with an arbitrary userId and force any user account in the system to appear online (or, depending on the implementation, to trigger side‑effects such as session creation, push‑notification dispatch, or audit‑log entry).
Why the CVSS vector looks the way it does• AV:N – the endpoint is reachable over the network without any restriction. <br>• AC:L – the attack requires only a single HTTP request (low complexity). <br>• PR:N – no authentication is required. <br>• UI:N – no user interaction is needed. <br>• VC:L – the impact is *confidentiality*‑low because the attacker can infer the existence of user identifiers and can cause a user’s presence status to be visible to other users. <br>• VI:N / VA:N / SC:N / SI:N / SA:N – no integrity, availability, or further scope impact is defined. <br>• E:P – a public exploit exists.

In short: the endpoint trusts the caller’s supplied userId without confirming that the caller is the owner of that ID or has a role that permits “online” status changes. This is a classic “missing authorization” bug.


⚡ Attack Chain

Below is a realistic, step‑by‑step exploitation flow. All request examples are illustrative – the exact URI path, HTTP method, and parameter name are inferred from the source‑code location (UserController.java) but have not been disclosed verbatim in the public advisory.

1. Discovery & Reconnaissance

StepTechniqueExpected artefacts
1.1 Identify the productSearch public repositories (GitHub, Maven Central) for g‑mr SmartCall or for the Java package com.qidiangk.smart.user. The pom.xml of version 1.0.9 is publicly available and contains the smart-user module.pom.xml → version 1.0.9; source files under smart-upms/smart-user/...
1.2 Locate the exposed APIUse a web‑application scanner (e.g., OWASP ZAP, Nmap http‑enum) against the target host. Look for REST endpoints that return JSON and contain the word “online”.Response such as GET /api/user/online?userId=123 returning { "status":"ok" }.
1.3 Enumerate valid userIdsIf the application provides a public “list users” endpoint (common in early‑stage SaaS demos) or if usernames are guessable (e.g., sequential numeric IDs), an attacker can infer valid IDs. Brute‑force or enumeration via /api/user/search?name=* may reveal IDs.IDs like 1,2,3,… or UUIDs.

2. Exploitation

Assumptions for the PoC

  • The vulnerable endpoint is reachable at https://target.example.com/api/user/online.
  • It accepts a GET request with a query parameter userId.
  • No authentication header or cookie is required.
  • If the real deployment uses a different HTTP method (POST) or a JSON body, the same principle applies – the attacker simply supplies an arbitrary userId in the request payload.

    2.1 Minimal PoC (curl)

    # Replace TARGET with the real host/IP
    TARGET="https://target.example.com"
    
    # Arbitrary victim user ID (e.g., 42)
    VICTIM_ID=42
    
    # Send the request – the server will mark user 42 as "online"
    curl -sk "${TARGET}/api/user/online?userId=${VICTIM_ID}"

    -k disables certificate verification for testing; remove it in production.

    Expected response (illustrative):

    {
      "code": 0,
      "message": "User status updated",
      "data": { "userId": 42, "online": true }
    }

    2.2 Bulk “online‑status poisoning”

    An attacker can script the request to affect all user accounts:

    #!/usr/bin/env bash
    TARGET="https://target.example.com"
    for id in {1..500}; do
      curl -s -o /dev/null -k "${TARGET}/api/user/online?userId=${id}"
    done
    echo "All IDs 1‑500 set to online"

    If the system uses UUIDs, the attacker can harvest a list of IDs from any other endpoint (e.g., /api/user/list) and replay them.

    3. Post‑exploitation

    GoalHow the vulnerability enables it
    User‑presence spoofingBy forcing arbitrary accounts to appear online, an attacker can manipulate social‑engineering scenarios (e.g., make a victim think a colleague is currently active).
    Trigger side‑effectsThe online method may fire downstream events: push notifications, WebSocket broadcasts, or audit‑log entries. An attacker can generate a flood of such events, leading to denial‑of‑service on notification services or log‑storage exhaustion.
    Information leakageSome implementations return the full user profile when marking a user online. If the response includes fields such as email, phone, or role, the attacker can harvest personal data without authentication (confidentiality impact).
    Privilege escalation (indirect)In a multi‑tenant deployment, the “online” flag may be used by other services to grant temporary access tokens (e.g., “online users may join a video conference”). By setting a victim’s status to online, the attacker can later hijack the session if the system issues a token based solely on that flag. This is environment‑specific but plausible.

    🌍 Real‑World Impact

    CIA TriadImpact (derived from CVSS)
    Confidentiality (C)Low – attacker can infer the existence of user IDs and possibly retrieve user details if the endpoint echoes them back.
    Integrity (I)None – the vulnerability does not modify data beyond a status flag.
    Availability (A)None – the endpoint itself is lightweight; however, a high‑volume abuse could degrade ancillary services (notifications, logging).

    Practical consequences

  • Social engineering – attackers can fabricate “online” presence to increase credibility in phishing or vishing attacks.
  • Audit‑log pollution – false “user came online” entries make forensic analysis noisy.
  • Potential DoS – mass‑online requests can overload message brokers or real‑time notification pipelines.
  • Compliance risk – if the system is used in regulated environments (e.g., healthcare, finance), falsifying user presence may breach audit requirements.

🛡️ Remediation & Mitigation

1. Patch / Upgrade

ItemRecommendation
Affected versiong‑mr SmartCall 1.0.9 (the only version mentioned).
Fixed versionThe vendor has not yet released a patch (as of the CVE publication date). Immediate mitigation is required; monitor the vendor’s security advisory channel for a forthcoming release (e.g., 1.0.10 or later).
Source‑code fixAdd an explicit authorization check before updating the user’s status. Example (Java Spring MVC):
@PostMapping("/online")
public ResponseEntity<ApiResult> online(@RequestParam Long userId,
                                         Authentication auth) {
    // 1️⃣ Retrieve the caller’s principal
    UserDetails caller = (UserDetails) auth.getPrincipal();

    // 2️⃣ Verify that the caller is allowed to modify the target user
    if (!caller.getUsername().equals(userService.findUsernameById(userId))
        && !caller.getAuthorities().contains(new SimpleGrantedAuthority("ROLE_ADMIN"))) {
        return ResponseEntity.status(HttpStatus.FORBIDDEN)
                .body(ApiResult.error("Insufficient permissions"));
    }

    // 3️⃣ Proceed with the status change
    userService.setOnline(userId);
    return ResponseEntity.ok(ApiResult.success());
}

If the application does not use Spring Security, an equivalent check must be added at the service layer.

2. Workarounds (deployable today)

TechniqueImplementation details
Restrict the endpoint to authenticated sessionsAdd a global filter (e.g., OncePerRequestFilter) that returns 401 when no valid session cookie or JWT is present.
Validate ownershipIn UserController.online, compare the supplied userId with the ID stored in the authenticated principal.
Rate‑limit the endpointDeploy a WAF rule that limits the number of calls per source IP to a low threshold (e.g., 5 requests per minute). Example ModSecurity rule:
SecRule REQUEST_URI "@beginsWith /api/user/online" \
    "id:400001,phase:2,deny,log,status:429,\
    msg:'Rate limit exceeded for User‑Online endpoint',\
    ctl:rateLimit=5/60"
Network‑level restrictionIf the “online” feature is only needed for internal services, bind the API to an internal interface or place it behind a firewall that only allows trusted IP ranges.
Disable the endpointIf the “online” status is not mission‑critical, comment out or remove the online mapping from the controller until a proper fix is shipped.
Input sanitisation (defense‑in‑depth)Ensure userId is parsed as a numeric type (or validated against a UUID pattern) to prevent injection attacks that could be chained with other bugs.

3. Detection – what to look for in logs

Log sourceIndicatorExample entry
Web server access log (e.g., Nginx)High‑frequency requests to /api/user/online from the same IP, with varying userId values.192.0.2.45 - - [01/Dec/2026:12:34:56 +0000] "GET /api/user/online?userId=123 HTTP/1.1" 200 45 "-" "curl/7.88.1"
Application log (Spring logback)“User status updated” messages without an associated authenticated session ID.2026-12-01 12:35:01.123 WARN [UserController] - Online status set for userId=78 (no auth principal)
WAF alertsModSecurity rule 400001 triggered (rate‑limit).ModSecurity: Warning. Match of "beginsWith /api/user/online" against "REQUEST_URI". [file "/etc/modsecurity/rules.conf"] [line "400001"] [id "400001"] [msg "Rate limit exceeded for User‑Online endpoint"]
Audit‑log (if present)Sudden spikes in “user online” events at odd hours.2026-12-01 03:12:45 INFO UserAudit - User 57 marked online by IP 203.0.113.77

Correlation – Combine the above with IDS/IPS NetFlow data to spot anomalous traffic patterns (many distinct userIds per minute from a single source).


⚠️ Urgency

FactorAssessment
CVSS base score6.9 (Medium) – the vulnerability is easy to exploit (no auth, low complexity) but the direct impact is limited to a low‑severity confidentiality effect.
Exploit availabilityPublic exploit (E:P) – an attacker can copy the PoC and run it immediately.
Potential for abuseHigh in environments where “online” status is tied to downstream processes (notifications, session creation).
Patch statusNo vendor patch yet; the vendor has not responded.
Recommended priorityHigh – treat as a critical operational risk. Deploy the mitigation steps (authentication enforcement, rate‑limiting, firewall restriction) within 24 hours and schedule a forced upgrade as soon as a patched version is released.

TL;DR

The online endpoint of SmartCall 1.0.9 accepts a userId without any authorization check, allowing anyone on the Internet to mark any user as “online”.
Exploit: a single GET /api/user/online?userId=<any> request (no auth).
Impact: low‑level confidentiality leakage and possible service‑disruption via event flooding.
Mitigation: enforce authentication, verify ownership/role before updating status, apply rate‑limits, and block the endpoint from unauthenticated networks.

Implement the code‑level fix as soon as possible and monitor logs for the described IoCs.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="g-mr SmartCall"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-140051
CVSS Score
6.9 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-284 CWE-266
Affected Products (1)
g-mr:SmartCall (1.0.9)
References & Advisories (5)
Related CVEs
7.3
CVE-2026-144885
A vulnerability was identified in SourceCodester Secured E-Voting System 1.0. The impacted element is an unkno
5.3
CVE-2026-144769
A security vulnerability has been detected in vllm-project vLLM up to 0.31.0. This issue affects the function
5.1
CVE-2026-144511
A vulnerability was detected in Discourse up to 2026.12.0. This impacts the function Create of the file app/co
5.1
CVE-2026-144512
A flaw has been found in Discourse up to 2026.9.0. Affected is the function TopicConverter#convert_to_private_
0.0
CVE-2026-132063
The 2C2P Redirect API for WooCommerce WordPress plugin through 7.0.3 does not stop processing a payment callba
9.9
CVE-2026-142475
A vulnerability was determined in Shenzhen Hugsun Technology HS86Pro14 E1010.667.FE. This affects an unknown p
8.8
CVE-2026-128876
IBM Langflow OSS 1.0.0 through 1.13.0 Model Context Protocol (MCP) tool-listing interface is intended to adver