Paymenterに認証なしで任意のメソッドを呼び出される脆弱性
Summary
Paymenterの1.5.7より前のバージョンには、Livewireコンポーネントの認証されていない任意のメソッド呼び出しに関する脆弱性があります。悪用されると、認証を回避してサーバー側の状態を書き換えられるおそれがあります。対策として、修正版の1.5.7へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Paymenterの1.5.7より前のバージョンには、Livewireコンポーネントの認証されていない任意のメソッド呼び出しに関する脆弱性があります。悪用されると、認証を回避してサーバー側の状態を書き換えられるおそれがあります。対策として、修正版の1.5.7へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PaymenterPaymenter | — | Not listed |
| Packagistpaymenter/paymenter |
< 1.5.7→ 1.5.7 |
1.5.7 |
| composerpaymenter/paymenter |
< 1.5.7→ 1.5.7 |
1.5.7 |
Original description The description as published by the source.
Summary
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…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com