GHSA-3x57-m5p4-rgh4 ZendOpenID potential security issue in login mechanism

Not scored Published

Attackers can impersonate any OpenID identity by exploiting insufficient signature validation in the ZendOpenID Consumer component.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-3x57-m5p4-rgh4?

GHSA-3x57-m5p4-rgh4 is an authentication bypass vulnerability in zendframework/zendopenid, published on 7 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Using the Consumer component of ZendOpenId (or Zend_OpenId in ZF1), it is possible to login using an arbitrary OpenID account (without knowing any secret information) by using a malicious OpenID Provider. That means OpenID it is possible to login using arbitrary OpenID Identity (MyOpenID, Google, etc), which are not under the control of our own OpenID Provider. Thus, we are able to impersonate any OpenID Identity against the framework.

Moreover, the Consumer accepts OpenID tokens with arbitrary signed elements. The framework does not check if, for example, both openid.claimed_id and openid.endpoint_url are signed. It is just sufficient to sign one parameter. According to https://openid.net/specs/openid-authentication-2_0.html#positive_assertions, at least op_endpoint, return_to, response_nonce, assoc_handle, and, if present in the response, claimed_id and identity, must be signed.

Which versions are affected by GHSA-3x57-m5p4-rgh4?

2 open source packages ship an affected version, including zendframework/zendopenid.

PackageAffectedFixed in
zendframework/zendopenid PackagistFrom 2.0.02.0.2
zendframework/zendopenid PackagistFrom 2.0.02.0.2

How do I fix GHSA-3x57-m5p4-rgh4?

Upgrade zendframework/zendopenid to 2.0.2 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is GHSA-3x57-m5p4-rgh4 being exploited?

There is no known exploitation of GHSA-3x57-m5p4-rgh4 in the wild and no public exploit code.

Sources

Is GHSA-3x57-m5p4-rgh4 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free