Security Advisories (1)
CVE-2024-58041 (2026-02-24)

Smolder versions through 1.51 for Perl uses insecure rand() function for cryptographic functions. Smolder 1.51 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically Smolder::DB::Developer uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.

NAME

Smolder::AuthInfo

DESCRIPTION

Utility class to manage authentication tickets.

METHODS

new

Returns a new object.

my $ai = Smolder::AuthInfo->new();

ticket

Return a new auth ticket given an id and groups.

$ai->ticket(
    id     => $dev->id,
    groups => [qw(developer admin)],
);

parse

Parse an auth ticket. The user's id and groups are then available in the id() and groups() methods if the ticket was not tampered with.

$ai->parse($string);
my $id = $at->id;
my $groups = $at->groups;

groups

Returns an array reference containing the groups of the most recently parsed auth ticket.

id

Returns the id of the most recently parsed auth ticket.