/

CVE-2026-13410

Severity:

HIGH RISK

(8.2)

TLS Verification Disabled (CWE-295) in Google Auth Plugin

CVE-2026-13410

Deferred

Vulnerability type

Category:

Improper Certificate Validation

CWE:

CWE-295

Impact:

Authentication Bypass and Account Impersonation

Severity:

HIGH RISK

(8.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Dancer::Plugin::Auth::Google for Perl disables TLS certificate verification when connecting to Google APIs, breaking the trust model of HTTPS.

An attacker with man-in-the-middle access to the network between the Dancer application and googleapis.com can forge OAuth2 tokens and user profiles, potentially logging in as any Google user.

Affected context

This vulnerability occurs in Dancer applications that rely on Dancer::Plugin::Auth::Google (up to version 0.07) for Google-based OAuth2 authentication.

It is relevant when the plugin uses its default user agent configuration, where TLS certificate verification is explicitly disabled for calls to googleapis.com.

Environments with untrusted or semi-trusted networks—such as shared hosting, corporate Wi-Fi, or cloud infrastructure—are particularly exposed if traffic can be intercepted or redirected.

Exploit preconditions

  • Attack surface: Outbound HTTPS connections from the Dancer application to Google OAuth2 endpoints (e.g., token exchange and userinfo APIs).
  • Required access: Network man-in-the-middle capability between the application server and googleapis.com (e.g., ARP spoofing, malicious proxy, or compromised router).
  • Trigger point: The OAuth2 token exchange and userinfo fetch performed by the plugin during login flows.
  • Why exploitation is possible: TLS certificate verification is disabled in the plugin's default user agent, so the application accepts forged certificates and responses from an attacker-controlled endpoint as if it were Google.

Why this happens

The underlying issue is improper TLS certificate validation, matching CWE-295, where a client fails to verify the authenticity of the remote endpoint's certificate.

In this case, the plugin explicitly disables SSL verification (SSL_verify_mode), causing HTTPS to degrade into an unauthenticated encrypted channel that does not confirm the server's identity.

As a result, the OAuth2 client trusts any server presenting itself as googleapis.com, allowing a network attacker to impersonate Google and supply arbitrary access tokens and user profiles.

Potential impact

  • An attacker may log in to the Dancer application as any Google user, including privileged accounts.
  • The attacker could bypass normal authentication checks and gain unauthorized access to protected resources.
  • Application session integrity can be compromised, leading to data exposure or modification.
  • Audit trails and user activity logs could be polluted with forged identities, hindering forensic analysis.

General mitigation guidance

Mitigation generally focuses on restoring correct TLS verification and tightening trust boundaries around authentication flows.

Secure patterns include:

  • Ensuring that HTTP clients used for OAuth2 and userinfo requests enforce strict certificate validation and hostname checking by default.
  • Avoiding any configuration that disables TLS verification (such as custom SSL options that turn off validation) in authentication-related code paths.
  • Centralizing outbound HTTP client construction with secure defaults, rather than ad-hoc user agents that may inadvertently weaken TLS.
  • Complementing TLS validation with additional checks, such as restricting outbound connections to known endpoints via network policy, to reduce exposure to malicious infrastructure.

How teams detect issues like this

Detection typically involves a mix of configuration review and code-level analysis:

  • Static analysis or manual review to identify HTTP client initializations where SSL or TLS verification, hostname checks, or CA validation are disabled or overridden.
  • Policy-based checks in CI pipelines that flag insecure SSL options (e.g., SSL_verify_mode set to disable verification) within authentication or identity-related modules.
  • Runtime monitoring or security scanning that validates TLS behavior for critical outbound connections, confirming proper certificate and hostname verification.
  • Periodic audits of OAuth2 and SSO integrations to ensure that client libraries and plugins rely on secure, default TLS configurations.

Sources

SourceLink
github.comgithub.com/garu/Dancer-Plugin-Auth-Google/commit/2fdb72527eaa0e11a5c134c597f1e44e37411d95.patch
github.comgithub.com/garu/Dancer-Plugin-Auth-Google/pull/5
metacpan.orgmetacpan.org/pod/Furl#HTTPS-requests-claims-warnings!
metacpan.orgmetacpan.org/release/GARU/Dancer-Plugin-Auth-Google-0.08/changes
security.metacpan.orgsecurity.metacpan.org/patches/D/Dancer-Plugin-Auth-Google/0.07/CVE-2026-13410-r1.patch
openwall.comopenwall.com/lists/oss-security/2026/07/17/8

Frequently asked

questions

It requires network man-in-the-middle capability between the Dancer application and googleapis.com. An attacker must be able to intercept or control that network path, which may be feasible in some hosting or enterprise environments but not universally.

No. Because TLS verification is disabled, an attacker can present a fake endpoint that appears as googleapis.com to the plugin and then fabricate access tokens and user profiles without authenticating to Google.

Ensure that all HTTP clients used by the plugin enforce proper TLS certificate and hostname verification, avoid disabling verification in SSL options, and adopt secure defaults for outbound connections in authentication logic.

Establish coding standards that prohibit disabling TLS verification, enforce automated checks for insecure SSL configuration, centralize HTTP client setup with hardened defaults, and regularly review authentication and SSO integrations for transport security issues.

Find out what's already
exploitable in your codebase.