mirror of
https://git.proxmox.com/git/pve-access-control
synced 2026-02-01 18:11:00 +00:00
ticket: properly verify exactly 5min old tickets
to fix an issue where valid tickets could be rejected 5 minutes after a key rotation, where the minimum age is exactly 0 seconds. thanks Dominik for triaging! Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
bab2334336
commit
5bb966fe5d
@ -283,7 +283,7 @@ sub verify_ticket {
|
||||
return undef if !$rsa_pub;
|
||||
|
||||
my ($min, $max) = $get_ticket_age_range->($now, $rsa_mtime, $old);
|
||||
return undef if !$min;
|
||||
return undef if !defined($min);
|
||||
|
||||
return PVE::Ticket::verify_rsa_ticket(
|
||||
$rsa_pub, 'PVE', $ticket, undef, $min, $max, 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user