fix: address security review findings

This commit is contained in:
Marek Miklewicz
2026-06-30 11:41:40 +02:00
parent 3b096b67bb
commit 54b2e620ff
12 changed files with 188 additions and 31 deletions
+4 -2
View File
@@ -28,7 +28,8 @@ return static function (): void {
$clientIp = ClientIp::resolve($_SERVER, $settings);
$auditBase['client_ip'] = $clientIp;
$correlation = KeyName::build($ctx->serverName(), $ctx->username(), time());
$createdAt = time();
$correlation = KeyName::build($ctx->serverName(), $ctx->username(), $createdAt);
$auditBase['correlation'] = $correlation;
$limiter = new RateLimiter(Settings::STATE_DIR . '/rate-limit');
@@ -43,7 +44,8 @@ return static function (): void {
$settings->loginKeyTtl(),
$settings->userIpBound(),
$clientIp,
$redirectPath
$redirectPath,
$createdAt
);
try {