CVE-2026-140051 — G-mr SmartCall (1.0.9) — CWE-284 · CWE-266
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.
CVE‑2026‑140051 – “Smart‑Call 1.0.9 – User‑Online API – Improper Access Control”
🎯 What is this vulnerability?
| Item | Detail |
|---|---|
| Component | smart-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 type | Improper Access Control (CWE‑284) combined with Insufficient Authorization Checks (CWE‑266). |
| Root cause | The 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
| Step | Technique | Expected artefacts |
|---|---|---|
| 1.1 Identify the product | Search 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 API | Use 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 userIds | If 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
| Goal | How the vulnerability enables it |
|---|---|
| User‑presence spoofing | By 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‑effects | The 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 leakage | Some 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 Triad | Impact (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
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Item | Recommendation |
|---|---|
| Affected version | g‑mr SmartCall 1.0.9 (the only version mentioned). |
| Fixed version | The 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 fix | Add 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)
| Technique | Implementation details |
|---|---|
| Restrict the endpoint to authenticated sessions | Add a global filter (e.g., OncePerRequestFilter) that returns 401 when no valid session cookie or JWT is present. |
| Validate ownership | In UserController.online, compare the supplied userId with the ID stored in the authenticated principal. |
| Rate‑limit the endpoint | Deploy 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 restriction | If 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 endpoint | If 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 source | Indicator | Example 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 alerts | ModSecurity 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
| Factor | Assessment |
|---|---|
| CVSS base score | 6.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 availability | Public exploit (E:P) – an attacker can copy the PoC and run it immediately. |
| Potential for abuse | High in environments where “online” status is tied to downstream processes (notifications, session creation). |
| Patch status | No vendor patch yet; the vendor has not responded. |
| Recommended priority | High – 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]
FOFA Query