Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-66883: CWE-178 Improper Handling of Case Sensitivity in Erlang Ecosystem Foundation oidcc_plug

0
Medium
VulnerabilityCVE-2026-66883cvecve-2026-66883cwe-178
Published: 08/04/2026 (08/04/2026, 11:46:05 UTC)
Source: CVE Database V5
Vendor/Project: Erlang Ecosystem Foundation
Product: oidcc_plug

Description

Improper Handling of Case Sensitivity vulnerability in Erlang Ecosystem Foundation oidcc_plug (Oidcc.Plug.Authorize module) renders the user agent session binding inert, removing a defense in depth control against replay of a stolen session. This vulnerability is associated with program files lib/oidcc/plug/authorize.ex and lib/oidcc/plug/authorization_callback.ex, and program routines Oidcc.Plug.Authorize.call/2 and Oidcc.Plug.AuthorizationCallback.call/2. Oidcc.Plug.Authorize.call/2 reads the initiating client's user agent with get_req_header(conn, "User-Agent"). Plug lowercases incoming header names, but get_req_header/2 matches the supplied key exactly and performs no normalization of its own, so the mixed-case lookup always returns an empty list and nil is written into the session. On the callback side, Oidcc.Plug.AuthorizationCallback treats a stored nil user agent as nothing to compare and returns :ok without inspecting the request. The two behaviours combine so that the check passes unconditionally on every request, including for deployments that explicitly opted in with check_useragent: true, and an authorization callback can be completed from a different user agent than the one that initiated the flow without detection. The check fails open silently, with no error and no log entry, so a deployment cannot tell the binding is absent. The impact is limited to defense in depth. The inert check does not by itself allow an attacker to complete an authorization flow; it removes one layer that would otherwise hinder use of a stolen or leaked session, such as an exfiltrated session cookie replayed from a different client. The CSRF/state, nonce, and PKCE checks are unaffected and continue to function. Deployments that never enabled check_useragent are not affected in practice, since they never expected the binding. The corresponding lookup in Oidcc.Plug.AuthorizationCallback correctly uses the lowercase key and is not affected. This issue affects oidcc_plug: from 0.1.0-alpha.3 before 0.5.0.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

oidcc_plug
pkg:hex/oidcc_plug
GitHub Actionsmore threats →cve
erlef/oidcc_plug
pkg:github/erlef/oidcc_plug
CPE configurations
cpe:2.3:a:erlef:oidcc_plug:*:*:*:*:*:erlang:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/04/2026, 12:24:55 UTC

Technical Analysis

The vulnerability arises because oidcc_plug's Oidcc.Plug.Authorize.call/2 function reads the user agent header using get_req_header(conn, "User-Agent"), but Plug lowercases header names while get_req_header/2 requires exact case matching. This mismatch causes the user agent lookup to always return nil, which is stored in the session. Later, Oidcc.Plug.AuthorizationCallback.call/2 treats a nil user agent as no value to compare and returns success without verification. Consequently, the user agent binding check intended to prevent session replay attacks is effectively disabled without any error or log indication. This affects oidcc_plug versions from 0.1.0-alpha.3 up to but not including 0.5.0. The vulnerability only impacts deployments that enabled the check_useragent feature and does not compromise other security checks like CSRF, nonce, or PKCE.

Potential Impact

The vulnerability removes a defense-in-depth control designed to bind a user session to the initiating user agent, allowing replay of stolen or leaked sessions from different user agents without detection. However, it does not enable attackers to complete authorization flows by itself because other protections remain intact. Deployments not using the check_useragent option are not affected in practice. There are no known exploits in the wild.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch is currently documented. Until a patch is available, deployments should be aware that enabling check_useragent does not provide the intended protection. Consider disabling check_useragent if relying on this defense or monitor vendor communications for updates. No additional mitigation steps are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-07-28T04:15:10.240Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a71d525bf32cb7a343fb0ea

Added to database: 08/04/2026, 12:03:49 UTC

Last enriched: 08/04/2026, 12:24:55 UTC

Last updated: 08/04/2026, 12:33:19 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses