Description
Leantime through 3.6.2 exposes the JSON-RPC methods leantime.rpc.TwoFA.TwoFA.getSetupData, saveSecret, verifyAndEnable, and disable2FA, which act on a caller-supplied userId parameter with no ownership check, session pinning, or permission-attribute gate (unlike other RPC-exposed methods in the same dispatcher). Any authenticated user can invoke getSetupData with an arbitrary userId to read that user's live TOTP secret, or disable2FA to strip another account's two-factor authentication entirely, fully defeating account-level 2FA protection. This is related to CVE-2026-15509, which covers a similar missing-authorization pattern in the JSON-RPC editUser/addUser role-assignment path in the same application; the TwoFA service methods addressed here are a distinct, independently fixable set of RPC endpoints.
Published: 2026-08-05
Score: 8.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Leantime versions up to 3.6.2 expose JSON‑RPC methods that operate on a caller‑supplied userId without any ownership check, session pinning, or permission gate. An authenticated user can call these methods to read another user’s live TOTP secret or to permanently disable that user’s two‑factor authentication. The flaw is an example of missing authorization, classified as CWE‑862, and results in the loss of the intended security boundary provided by 2FA.

Affected Systems

The affected vendor is Leantime and the product is the Leantime application. All releases up to and including version 3.6.2 are vulnerable; later releases are believed to contain a fix, but no specific version number is listed in the available data.

Risk and Exploitability

The CVSS score of 8.1 indicates a high severity vulnerability. EPSS is not available, and the issue is not listed in CISA’s KEV catalog. Exploitation requires an established authenticated session; an attacker who is logged in as any user can invoke the vulnerable RPC methods using an arbitrary userId to obtain another user’s secret or to remove 2FA. Because the disclosure is solely dependent on the presence of valid credentials, the attack vector is an authenticated, malicious user interacting with the application’s JSON‑RPC interface.

Generated by OpenCVE AI on August 5, 2026 at 08:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Leantime release that addresses the missing authorization check for the TwoFA JSON‑RPC endpoints.
  • If a patched version is unavailable, restrict access to the vulnerable methods by configuring the web server or an application firewall to block requests for those RPC calls from non‑administrator users.
  • Use custom access control logic in your deployment so that any request to TwoFA endpoints verifies that the supplied userId matches the authenticated session’s user and that a session pin or similar ownership proof is present before processing the call.

Generated by OpenCVE AI on August 5, 2026 at 08:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 05 Aug 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Leantime
Leantime leantime
Vendors & Products Leantime
Leantime leantime

Wed, 05 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
Description Leantime through 3.6.2 exposes the JSON-RPC methods leantime.rpc.TwoFA.TwoFA.getSetupData, saveSecret, verifyAndEnable, and disable2FA, which act on a caller-supplied userId parameter with no ownership check, session pinning, or permission-attribute gate (unlike other RPC-exposed methods in the same dispatcher). Any authenticated user can invoke getSetupData with an arbitrary userId to read that user's live TOTP secret, or disable2FA to strip another account's two-factor authentication entirely, fully defeating account-level 2FA protection. This is related to CVE-2026-15509, which covers a similar missing-authorization pattern in the JSON-RPC editUser/addUser role-assignment path in the same application; the TwoFA service methods addressed here are a distinct, independently fixable set of RPC endpoints.
Title Leantime: Missing Authorization on TwoFA JSON-RPC Methods Allows Cross-Account 2FA Secret Disclosure and Bypass
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Leantime Leantime
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-05T06:58:34.770Z

Reserved: 2026-06-13T16:39:46.122Z

Link: CVE-2026-54418

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T08:30:04Z

Weaknesses