Skip to content
Medium 6.5

IP Spoofing via Host Header in TrustProxies Middleware Forge/Vapor Auto-Detection

GHSA-559m-v249-7qw2 First seen on SecPulse

Summary

Summary

On applications with no trusted proxies configured, Laravel could treat a request as coming through a trusted Forge or Vapor proxy based on a header the visitor controls. An attacker could use this to fake their IP address and make an insecure request look like HTTPS.

This can let...

Affected packages

PackageAffected → Fixed
composerlaravel/framework
<13.43.0→ >=13.43.0
composerlaravel/framework
<12.73.0→ >=12.73.0
Original description The description as published by the source.

Summary

On applications with no trusted proxies configured, Laravel could treat a request as coming through a trusted Forge or Vapor proxy based on a header the visitor controls. An attacker could use this to fake their IP address and make an insecure request look like HTTPS.

This can let an attacker get around IP-based rate limits, such as login throttling, and IP allowlists. Only applications that haven't configured trusted proxies, and whose web server accepts any hostname, are affected.

Patch

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

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details