Security Advisories (1)
CVE-2026-13089 (2026-07-22)

OIDC::Lite versions through 0.12.1 for Perl allow ID Token signature verification bypass via a token-controlled algorithm allowlist in verify. When the caller does not pin an algorithm, OIDC::Lite::Model::IDToken::verify sets $self->alg($self->header->{alg}) from the token's own header and then calls decode_jwt(token, key, 1, [$self->alg]), handing JSON::WebToken an accepted-algorithm allowlist taken from the untrusted token. A token with alg=none yields ['none'], so decode_jwt returns the claims with no signature check, and a token with alg=HS256 is verified with the RP's RSA public key as the HMAC secret (RS to HS confusion). The ID Token is the OpenID Connect authentication assertion delivered to the Relying Party. Any caller that verifies an ID Token through the unpinned load(token)->verify path, or load(token, key) with only the key pinned, accepts a forged token carrying attacker-chosen claims such as sub and is authenticated as any user. Passing an explicit algorithm so $self->alg is already set bypasses the header-derived allowlist and is not affected. Note that the latest version uploaded to CPAN is 0.10. Later versions are available in the git repository.

NAME

OIDC::Lite::Server::DataHandler - Base class that specifies interface for data handler for your service.

SYNOPSIS

DESCRIPTION

This specifies interface to handle data stored on your application. You have to inherit this, and implements subroutines according to the interface contract. This is proxy or adapter that connects OIDC::Lite library to your service.

METHODS

init

If your subclass need some initiation, implement in this method.

INTERFACES

request

Returns <Plack::Request> object.

validate_client_for_authorization( $client_id, $response_type )

Validation of client and allowed response_type. If it's OK, return 1. Return 0 if not.

validate_redirect_uri( $client_id, $redirect_uri )

Validation of redirect_uri param. If it's OK, return 1. Return 0 if not.

validate_scope( $client_id, $scope )

Validation of scope param. If it's OK, return 1. Return 0 if not.

validate_display( $display )

Validation of display param. If it's OK, return 1. Return 0 if not.

validate_prompt( $prompt )

Validation of prompt param. If it's OK, return 1. Return 0 if not.

validate_request( $param )

Validation of request param. If it's OK, return 1. Return 0 if not.

validate_request_uri( $param )

Validation of request_uri param. If it's OK, return 1. Return 0 if not.

get_user_id_for_authorization()

Return current user_id string.

create_id_token()

Return OIDC::Lite::Model::IDToken object.

create_or_update_auth_info(%args)

Return OIDC::Lite::Model::AuthInfo object.

client_associate($param, $access_token)

Return OIDC::Lite::Model::ClientInfo object.

client_update($param, $access_token)

Return OIDC::Lite::Model::ClientInfo object.

rotate_secret($access_token)

Return OIDC::Lite::Model::ClientInfo object.

get_javascript_origin_uris_from_client_id($client_id)

Return array_reference of registered javascript origin uris

get_ops($client_id)

Return ops string of current session.

AUTHOR

Ryo Ito, <ritou.06@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2012 by Ryo Ito

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.