Lemonldap::NG::Portal versions from 2.20.0 before 2.21.6, from 2.22.0 before 2.23.4 for Perl allow unauthenticated OAuth2 token introspection because checkEndPointAuthenticationCredentials does not verify the client secret of a public Relying Party
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Lemonldap::NG::Portal versions from 2.20.0 before 2.21.6, from 2.22.0 before 2.23.4 for Perl allow unauthenticated OAuth2 token introspection because checkEndPointAuthenticationCredentials does not verify the client secret of a public Relying Party.
checkEndPointAuthenticationCredentials() skips the secret comparison for a Relying Party marked public and still returns the authentication method deduced from the request, client_secret_basic or client_secret_post. introspection() rejects a caller only when that method is missing or none, so a request carrying a public client_id and an arbitrary or empty secret passes the endpoint's authentication check.
An attacker who holds an access token and knows the client_id of any public Relying Party can confirm the token is active and read its metadata, including scope, audience, expiry and the sub claim. The sub claim is computed with the calling Relying Party's user identifier attribute, so an attacker can translate a user identifier from one Relying Party to another, defeating per-client and pseudonymous identifiers.
Text from CVE List
Affected versions 2
- Productaffected: 2.20.0 before 2.21.6CVE List
- Productaffected: 2.22.0 before 2.23.4CVE List
References 4
- gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/work_items/3719Exploitvia CVE List
- gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/work_items/3721Referencevia CVE List
- gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/releases/v2.23.4Referencevia CVE List
- gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/releases/v2.21.6Referencevia CVE List