Arbitrary method invocation leading to unauthorized property modification
Description
A Livewire function allowed attackers to call any public function, allowing attackers to call any public method on the component. Because an attacker can call any function, they can also overwrite locked data.
Technical Details
app/Livewire/Traits/HasConfirmation.php exposed a public Livewire action that dispatches to any method that exists on the component:
public function executeConfirmedAction($action, $parameters = [])
{
if (method_exists($this, $action)) {
return $this->{$action}(...$parameters);
}
throw new \Exception("Method {$action} does not exist");
}The trait is applied on the base component, app/Livewire/Component.php (use Disabled, HasConfirmation, HasNotifications;), so it is present on all 36 client-facing components. executeConfirmedAction is itself invocable, and because it only checks method_exists it re-admits the whole inherited framework API. The most important is InteractsWithProperties::fill(), which uses data_set() and therefore writes any public property, including properties marked #[Locked], and supports dotted paths that reach into hydrated Eloquent models. This was a piece of dead code and has been removed
Impact
An unauthenticated attacker could invoke arbitrary public methods exposed by any client-facing Livewire component through the executeConfirmedAction action.
Depending on the properties and methods exposed by an individual component, this could allow an attacker to bypass intended authorization and data-integrity protections and modify server-side state that was intended to be immutable or protected from client-side manipulation.