External risk intelligence

Punk Plugin TOTP Session Replay Vulnerability.

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-78655

The vulnerability affects a Perl plugin for TOTP authentication. While this is often used in internet-facing web applications to handle user logins, the plugin's exposure depends entirely on how the specific web application implements and configures session storage. If the application uses server-side session stores, it remains unaffected, making the exploit surface dependent on implementation.

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This CVE describes a weakness in a Perl plugin used for time-based one-time password (TOTP) authentication. The issue involves how session cookies are handled, potentially allowing an attacker to bypass the limit on authentication attempts by replaying an old session cookie. This could impact systems relying on this specific plugin for second-factor authentication, although the actual risk depends on how the application manages session data.

  • Authentication attempt limits can be bypassed.
  • Consider if your systems use this authentication plugin.
  • Confirm relevance and assess potential exposure.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by tricking a user into revealing an earlier session cookie. This cookie would then be replayed to bypass the second-factor authentication attempt limit. The affected component is the Punk::Plugin::TOTP, a Perl plugin for time-based one-time password authentication. When session cookies are not stored server-side, replaying an older cookie with fewer recorded attempts can reset the failure counter, allowing an attacker to bypass the lockout mechanism.

  • Requires an earlier session cookie.
  • Attacker replays a valid, older session cookie.
  • Bypasses second-factor authentication limits.

Live Threat

Current exploitation, exposure, and threat context

When Punk::Plugin::TOTP is configured to use session cookies for storing state, an attacker could bypass the second-factor authentication attempt limit by replaying an earlier, valid session cookie. This bypass is possible because the failure count is stored within the session itself, which can be manipulated if not managed server-side. This issue is only relevant when sessions are not explicitly configured with a server-side store.

  • Second-factor authentication attempts.
  • Replay of earlier session cookies.
  • Bypass of login attempt limits.

Operational Fix

Recommended remediation, mitigation, and detection steps

Application owners responsible for Perl-based authentication systems should lead the response, coordinating with infrastructure and security teams. The first step is to identify all instances of the affected plugin, determine if sessions are stored server-side, and assess business criticality for prioritization.

  • Identify accountable application owners.
  • Verify session storage implementation.
  • Plan remediation based on risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the Punk::Plugin::TOTP software component?

It is a Perl module designed to add time-based one-time password (TOTP) functionality to web applications. Developers use it to implement second-factor authentication, ensuring users provide an additional code generated by an app or device during login. This plugin manages the verification process, including tracking how many failed attempts a user makes before being locked out.

What does CVE-2026-78655 mean for authentication security?

This vulnerability is an Improper Restriction of Excessive Authentication Attempts (CWE-307) combined with External Control of Critical State Information (CWE-642). Because the plugin tracks failed login attempts within the session cookie itself, an attacker can replay an older, valid cookie to reset their failure count. This effectively cancels the lockout mechanism, allowing for prolonged brute-force guessing of the TOTP code.

How can an attacker trigger this TOTP bypass?

An attacker must obtain and replay a previous session cookie that was issued before the current failure limit was reached. It is important to note that if your application is configured to use a server-side session store, the plugin is not affected. In that configuration, the failure counter is held securely on the server rather than in the client-side cookie, making this specific replay method impossible.

Is my Perl application at risk according to Halo Surface Signal?

Halo Surface Signal indicates that while this plugin is common in internet-facing web applications, the actual risk is conditional. You are only affected if your specific application implementation relies on client-side signed cookies for session management. If your deployment uses server-side session storage, your system is not vulnerable to this specific session replay issue.

What should I do if I use Punk::Plugin::TOTP?

First, review your application configuration to determine if it uses server-side session stores or relies on default client-side cookies. If you are using client-side cookies, prioritize moving session data to a server-side store to mitigate the issue. Consult the plugin documentation to verify you are running a version patched against this behavior and coordinate with your development team to confirm your specific implementation path.

References