Description
MISP contains a vulnerability in its one-time password (OTP) authentication flow that allows replay of a consumed HOTP (paper) token and rewinding of the token counter.

The HOTP verification logic compared the submitted token against a counter value that was cached in the user's session at the time the password was entered, rather than against the authoritative counter stored in the database. Because the session-cached counter is not updated after a token is successfully consumed, an attacker who holds a valid session (password already submitted) can reuse a previously burned HOTP token. The stale cached counter still matches the replayed token, granting a second successful authentication and effectively rewinding the counter state.

Preconditions:

- The target user has HOTP (paper token) second-factor authentication enabled.

- The attacker possesses a valid session in which the password step has already been completed (the OTP step is pending).

- The attacker has access to at least one HOTP token value (e.g., a paper token list).

Security impact:

- Bypass of the second authentication factor, allowing unauthorized access to a user's MISP account.

- Corruption of the HOTP counter state, potentially invalidating subsequent legitimate tokens or enabling further replays.

Affected versions: <2.5.48.
Published: 2026-10-01
Score: 7.6 High
EPSS: n/a
KEV: No
Impact: Bypass of second‑factor authentication and OTP counter corruption
Action: Immediate Patch
AI Analysis

Impact

MISP’s OTP flow contains a flaw where the OTP verification logic compares the submitted HOTP token against a counter value stored in the user’s session rather than the authoritative counter in the database. Because the cached counter is not refreshed after a token is successfully used, an attacker who manages to retain a valid session in which the password prompt has already been satisfied can replay the same HOTP token. The stale cached counter still matches the replayed token, allowing a second successful authentication and effectively rewinding the counter, which can corrupt future token validation and enable further replays. The security impact is a bypass of the second‑factor authentication, giving an attacker unauthorized access to the victim’s MISP account and potentially invalidating subsequent legitimate HOTP tokens.

Affected Systems

The vulnerability affects MISP software version 2.5.48 and earlier. All users of older MISP releases that have HOTP (paper token) second‑factor authentication enabled are potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.6 indicates moderate severity, and the EPSS score is not available, suggesting insufficient data on active exploitation likelihood. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires that the attacker already holds a valid authenticated session with the password step completed but the OTP step pending, or that the attacker obtains a session cookie through other compromise. Once the session is established, replaying a held HOTP token is straightforward. It is inferred that the risk may be higher in environments that keep sessions alive for extended periods or do not invalidate session data on logout, but this observation is not explicitly stated in the CVE description. The official CNA fix replaces the session‑cached counter with an authoritative database read protected by a Redis‑based distributed lock, increments the counter atomically, and deletes the cached session entry after successful authentication, preventing the replay.

Generated by OpenCVE AI on October 1, 2026 at 10:04 UTC.

Remediation

Vendor Solution

The fix replaces the session-cached HOTP counter lookup with a direct read of the authoritative counter from the database, performed under a Redis-based distributed lock scoped to the user. The token is verified against the current stored counter, the counter is incremented and persisted atomically within the locked section, and the lock is released in a finally block. Additionally, the cached OTP user session entry is deleted immediately after a successful login (for both TOTP and HOTP paths), preventing the stale session state from being reused.


OpenCVE Recommended Actions

  • Apply the MISP patch referenced in commit f34aee2c7 that removes session‑cached HOTP counter usage and implements an authoritative counter read with a locked update.
  • Immediately invalidate all user sessions or require all users to log out and re‑authenticate so that any stale session state is cleared before the patch is deployed.
  • Disable or remove HOTP second‑factor authentication for the affected environment until the update is fully tested and the counter integrity is confirmed.

Generated by OpenCVE AI on October 1, 2026 at 10:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 01 Oct 2026 08:00:00 +0000

Type Values Removed Values Added
Description MISP contains a vulnerability in its one-time password (OTP) authentication flow that allows replay of a consumed HOTP (paper) token and rewinding of the token counter. The HOTP verification logic compared the submitted token against a counter value that was cached in the user's session at the time the password was entered, rather than against the authoritative counter stored in the database. Because the session-cached counter is not updated after a token is successfully consumed, an attacker who holds a valid session (password already submitted) can reuse a previously burned HOTP token. The stale cached counter still matches the replayed token, granting a second successful authentication and effectively rewinding the counter state. Preconditions: - The target user has HOTP (paper token) second-factor authentication enabled. - The attacker possesses a valid session in which the password step has already been completed (the OTP step is pending). - The attacker has access to at least one HOTP token value (e.g., a paper token list). Security impact: - Bypass of the second authentication factor, allowing unauthorized access to a user's MISP account. - Corruption of the HOTP counter state, potentially invalidating subsequent legitimate tokens or enabling further replays. Affected versions: <2.5.48.
Title MISP HOTP Token Replay via Stale Session-Cached Counter Allows Second-Factor Authentication Bypass
First Time appeared Misp
Misp misp
Weaknesses CWE-287
CWE-362
CPEs cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*
Vendors & Products Misp
Misp misp
References
Metrics cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: CIRCL

Published:

Updated: 2026-10-01T07:34:02.597Z

Reserved: 2026-10-01T07:34:00.794Z

Link: CVE-2026-103651

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-01T08:16:51.020

Modified: 2026-10-01T08:16:51.143

Link: CVE-2026-103651

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T10:15:06Z

Weaknesses
  • CWE-287

    Improper Authentication

  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')