Skip to content
Medium 6.8

Changing the Host can bypass Livewire persistent middleware

GHSA-vw9g-2c4c-g767 First seen on SecPulse

Summary

Impact

In Livewire v3 (≥ 3.7.4) and v4, a vulnerability may allow attackers to bypass persistent route middleware on component updates in specific scenarios. This can result in unauthorized access to or modification of application data, including bypasses of route-level authorization and tena...

Affected packages

PackageAffected → Fixed
composerlivewire/livewire
>= 3.7.4, < 3.8.12→ 3.8.12
composerlivewire/livewire
>= 4.0.0, < 4.4.9→ 4.4.9
Original description The description as published by the source.

Impact

In Livewire v3 (≥ 3.7.4) and v4, a vulnerability may allow attackers to bypass persistent route middleware on component updates in specific scenarios. This can result in unauthorized access to or modification of application data, including bypasses of route-level authorization and tenant isolation.

Applications are affected when a component is rendered on a domain-constrained route, access control relies on Livewire's persistent middleware, and the Livewire update endpoint is available through another host served by the same application. Exploitation requires a valid signed component snapshot but does not require the snapshot to be modified.

Details

Livewire stores the original request path and method in the component snapshot so that persistent middleware can be reapplied during subsequent updates. However, the original host and resolved route are not stored.

When processing an update, Livewire reconstructs the original request using the path and method from the snapshot while retaining the host from the update request. If the update is submitted through a different host, the original domain-constrained route may not match. Livewire handles the resulting route-matching failure by returning no route, causing the component action to run without the persistent middleware applied to the original page.

This behavior was introduced in Livewire v3.7.4 and also affects Livewire v4.

Workarounds

Restrict the Livewire update endpoint so that component snapsho…

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