
Proof-of-concept and differential lab for CVE-2026-103026, where Paymenter's HasConfirmation trait lets attackers invoke arbitrary Livewire component methods with attacker-controlled arguments.
HasConfirmation| CVE | CVE-2026-103026 |
| Component | Paymenter — app/Livewire/Traits/HasConfirmation.php, app/Livewire/Component.php |
| Affected | versions before e0c04af |
| Fixed in | commit e0c04af (Merge commit from fork, GHSA-prhx-9q2h-ph2x) |
| CWE | CWE-470 (Use of Externally-Controlled Input to Select Classes or Code), CWE-862 (Missing Authorization) |
| Impact | The HasConfirmation trait, used by the base Livewire Component, exposed public actions confirmAction() and executeConfirmedAction($action, $parameters). The latter invoked any method on the component selected by the caller via method_exists() — with attacker-controlled arguments, no authorization check, and no confirmation enforced. An attacker could call public methods that overwrite locked data, void invoices, or otherwise mutate privileged state. This was reachable through Livewire's public action dispatcher, i.e. by any caller able to reach the affected component |
| Vector | Livewire action call executeConfirmedAction with an arbitrary method name and arguments |
| Trigger | executeConfirmedAction('updateServerSettings', [...]) |
The trait's generic dispatcher:
// HasConfirmation.php — pre-fix (verbatim)
public function executeConfirmedAction($action, $parameters = [])
{
if (method_exists($this, $action)) {
return $this->{$action}(...$parameters);
}
throw new \Exception("Method {$action} does not exist");
}
The fix deletes the trait and removes it from the base component:
// Component.php — fixed
-use Disabled, HasConfirmation, HasNotifications;
+use Disabled, HasNotifications;
Livewire exposes public methods of a component as callable actions. By mixing
HasConfirmation into the base Component, every component in Paymenter
inherited two public actions. executeConfirmedAction took a method name from
the request and invoked it with method_exists() as the only check — there was
no allowlist, no authorization check, and the "confirmation" step was merely a
client-side dispatch. The upstream fix removes the trait entirely, so the
generic dispatcher is no longer reachable on any component.
| service | image | role |
|---|---|---|
py-vuln | cve-2026-103026:vuln | verbatim HasConfirmation trait from e0c04af^ |
py-fixed | cve-2026-103026:fixed | trait deleted (matching e0c04af) |
poc | cve-2026-103026-poc:local | stdlib-only Python driver |
The PHP harness loads the verbatim deleted trait on the vulnerable side and
omits it on the fixed side. A stub component models privileged methods
(updateServerSettings, voidInvoice) whose side effects are recorded in
state; the two modes show the same action call succeeding or being unreachable.
./run-lab.sh build # builds both sides (php:8.3-alpine + python3 service)
./run-lab.sh up # cve103026lab network: py-vuln / py-fixed
./run-lab.sh sweep
./run-lab.sh down
poc/poc.py (stdlib only):
method_exists dispatch
→ privileged method invoked with attacker arguments → state overwritten.e0c04af / trait removal.A standalone full-chain exploit ships at exploit/exploit.py:
python3 exploit/exploit.py --host=py-vuln
# exit 1 on confirmed arbitrary invocation, 0 on a safe target
| mode | py-vuln (e0c04af^) | py-fixed (e0c04af) |
|---|---|---|
executeConfirmedAction('updateServerSettings', ...) | action exposed; settings_overwritten: true | no such Livewire action; no state change |
executeConfirmedAction('voidInvoice', ...) | action exposed; invoice_voided: true | no such Livewire action |
Captured runs: evidence/check-*-run.txt, evidence/exploit-*-run.txt,
evidence/probe-*-run.txt, evidence/mitigation-*-run.txt,
evidence/exploit-standalone-run.txt, evidence/exploit-standalone-fixed-run.txt,
evidence/versions.txt, evidence/0day-sweep.txt.
cve103026lab
network; PHP 8.3 CLI in the lab images.Component class on an affected Paymenter version.Deleting the trait from the base component removes both public dispatch helpers for every Livewire component at once; no sibling trait exposes a comparable generic method dispatcher. The fixed harness confirms ordinary component methods still work when called directly — only the arbitrary dispatch surface is removed.
README.md this write-up
run-lab.sh environment driver (build / up / sweep / down)
Makefile convenience targets
poc/poc.py the PoC (check / exploit / probe / mitigation)
exploit/exploit.py standalone full-chain exploit
lab/harness-*.php verbatim trait (vuln) / trait removed (fixed)
lab/lab.Dockerfile builds both sides from the pinned upstream source slices
lab/service.py HTTP wrapper (POST /call), child-process isolation
evidence/ captured runs of every mode on both sides
TRACKING.md excluded (working record)