本文へ移動
English version →
中 4.8

Temporary signed URL expiration bypass

GHSA-v5ch-g375-82r6 SecPulse初出

概要

Impact

When PHP's max_input_vars limit causes the expires query parameter to be dropped from the parsed query, Laravel's signed URL validation can still verify the signature against the raw query string. signatureHasNotExpired() then treats the URL as non-expiring, so an expired tempora...

影響パッケージ

パッケージ影響を受ける版 → 修正版
composerlaravel/framework
< 12.72.0→ 12.72.0
composerlaravel/framework
>= 13.0.0, < 13.41.0→ 13.41.0
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Impact

When PHP's max_input_vars limit causes the expires query parameter to be dropped from the parsed query, Laravel's signed URL validation can still verify the signature against the raw query string. signatureHasNotExpired() then treats the URL as non-expiring, so an expired temporary signed URL may be accepted. Exploitation requires a request line long enough to exceed max_input_vars, which depends on server and proxy limits.

Patches

This issue has been patched in Laravel 12.72.0 and 13.41.0: https://github.com/laravel/framework/pull/62349. Users should upgrade to one of these versions or later.

Workarounds

  • Limit URL length at the web server. Default nginx and Apache settings already reject the long URL the attack needs.
  • If web server configuration is unavailable, add a middleware ahead of signed that returns an error when the raw query has more pairs than max_input_vars or when expires appears in the raw query but is missing from the parsed one.

出典: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく