-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 NEFARIOUSPLAN-CANONICAL-V1 {"body_md":"## The fix is twelve lines of chained method syntax\n\nThe diff for `packages/admin/src/Livewire/Pages/Settings/Carriers.php` is the patch's shape distilled. Four call sites. Four added chains.\n\n```diff\n public function createCarrierAction(): Action\n {\n return Action::make('createCarrier')\n ->label(__('shopper::pages/settings/carriers.add_carrier'))\n+ ->authorize('access_setting')\n ->modalWidth(Width::ExtraLarge)\n ...\n\n ToggleColumn::make('is_enabled')\n- ->label(__('shopper::forms.label.status')),\n+ ->label(__('shopper::forms.label.status'))\n+ ->beforeStateUpdated(fn (): mixed => $this->authorize('access_setting')),\n\n EditAction::make('edit')\n ->label(__('shopper::forms.actions.edit'))\n ->icon(Untitledui::Edit03)\n ->iconButton()\n+ ->authorize('access_setting')\n ...\n\n DeleteAction::make('delete')\n ->label(__('shopper::forms.actions.delete'))\n ->icon(Untitledui::Trash03)\n+ ->authorize('access_setting')\n ->iconButton(),\n```\n\n`Settings/Currencies.php` and `Settings/PaymentMethods.php` carry the same four authorize additions each. Twelve lines, three files, one chained method on a Filament Action builder. Nothing about the surrounding code changed. No new permission constants were introduced. No middleware was added. No route was renamed. The bug class CVE-2026-47745 names was twelve method-chain syntax lines short, and the v2.8.0 release shipped them.\n\n## The mount() authorize call was the decoy\n\nPre-patch `Carriers.php` did have an authorization check. It sat at the top of the component:\n\n```php\npublic function mount(): void\n{\n $this->authorize('access_setting');\n}\n```\n\n`mount()` runs on the GET that loads the page. A panel user without `access_setting` is bounced at that point and never sees the table render. To anyone reading the file linearly, the gate is there at the top.\n\nLivewire is not a server-rendered page. It is an RPC framework whose components hydrate from a serialized snapshot on every subsequent client interaction. A `wire:click` on the Edit button does not load the page again. It POSTs to `/livewire/update` with the component class name, the snapshot, and the method name to dispatch. The server constructs the component, hydrates its state from the snapshot, and calls the method. `mount()` is documented not to re-run, and it does not. The Filament Action object the user clicked was registered on a builder chain that the framework re-walks on hydration; if the chain has no `->authorize()` call, the dispatcher has nothing to check.\n\n`->authorize()` on a Filament Action builder is the chained method that the Filament documentation names as the per-action gate. Calling it embeds an authorization closure into the rendered button and the RPC handler. Skipping it ships an Action whose closure runs on whatever caller arrives with the right snapshot. A user without `access_setting` who never made it past `mount()` never had a snapshot to replay. A user with `access_setting` who made it past `mount()` did. After that point, no permission was checked on the actions themselves, on the toggle, on the edit modal, on the delete confirmation. The page-level gate was the only one. The action-level gates were absent.\n\nThe pre-patch state was: every authenticated panel user with `access_setting` could click any of the twelve actions on the three tables, disabling every payment method, currency, and carrier. The post-patch state is: every authenticated panel user with `access_setting` can still do exactly that, because the new `->authorize('access_setting')` chain checks the same permission `mount()` already checked. The bypass the patch closed is the Livewire-RPC path that hand-crafted snapshots avoid. The gate the patch added is the gate `mount()` already enforced. Two different bugs converged on the same fix.\n\n## The advisory and the patch describe different fixes\n\nGHSA-fxqw-97cc-7g5c, in its Patches section, reads: *\"Each toggle and per-record action now requires its matching permission (`edit_payment_methods`, `edit_currencies`, `edit_carriers`).\"*\n\nThe strings `edit_payment_methods`, `edit_currencies`, `edit_carriers` do not appear in Shopper 2.8.0. `grep -rn` across the patched tag finds zero hits for any of the three. The fix in `Settings/Carriers.php` writes `access_setting`. The fix in `Settings/Currencies.php` writes `access_setting`. The fix in `Settings/PaymentMethods.php` writes `access_setting`. The permissions the advisory promises were not introduced by this patch. The permissions the patch uses are the same gate the existing `mount()` already enforced.\n\nThe advisory's framing implies a fix that introduces finer-grained per-table permissions. The patch is a fix that re-asserts the page-level permission on the Livewire-RPC dispatch path. Both fixes would close the bypass. Only one of them shipped. The CVE record carried the advisory's framing.\n\n## Twenty-five other authorize() additions in the same commit\n\nThe commit that produced the twelve lines on the CVE's three files produced twenty-five more `->authorize()` additions across fifteen other Livewire components and pages. Same chained method, same opt-in default, same fix shape:\n\n- `Pages/Order/Detail.php`. Six Filament Actions: `cancelOrder`, `startProcessing`, `markPaid`, `markComplete`, `capturePayment`, `archive`. Each one added `->authorize('edit_orders')`. The pre-patch state was: any panel user able to render the order detail page could mark any order paid, capture its payment for real funds from the configured payment processor, or archive it.\n- `Pages/Order/Shipments.php`. Two Actions, both added `->authorize('edit_orders')`.\n- `Components/Orders/OrderNotes.php`. The `leaveNotes()` method had no `authorize()` call at all. The patch added one at the top of the method body.\n- `Components/Products/Form/Edit.php`, `Files.php`, `Inventory.php`, `Seo.php`, `Shipping.php`. Five product sub-form components, each with a `store()` method that mutated product pricing, stock, SEO metadata, shipping dimensions, or attached files without any authorization. The patch added `$this->authorize('edit_products')` at the top of each.\n- `Pages/Customers/Create.php`. The `store()` method had no authorization. The patch added `$this->authorize('add_customers')` at the top, and switched the field allowlist from `Arr::except` to `Arr::only` to drop a `_password` field the previous filter let through into the customer record.\n- `Pages/Collection/Edit.php`. `store()` re-checks `edit_collections`.\n- `Components/Settings/Legal/PolicyForm.php` and `Components/Settings/Locations/InventoryForm.php`. Settings sub-forms whose `store()` methods needed the same treatment.\n- `Pages/Settings/Team/Index.php`. The entire team-listing page had no `mount()` method at all. The patch added one with `$this->authorize('view_users')`, plus two `->authorize('access_setting')` chains on a `createRoleAction` and a row delete action.\n- `Pages/Settings/Team/RolePermission.php`. The `save()` method's authorization was `view_users`. The patch changed it to `access_setting`. The `generatePermissions` and `createPermission` Actions had their `view_users` checks moved out of the action closures and into chained `->authorize('access_setting')` calls. The pre-patch state was: any panel user with the read-only `view_users` permission could create new system permissions and assign them to any role. That is the slice that became CVE-2026-47744.\n\nSix features. Twenty-five chained `->authorize()` calls. One commit.\n\n## Five of the slices got their own CVE\n\nGitHub Security Advisories published six advisories from this single commit on May 11 and May 20, 2026, covering the same patch:\n\n| GHSA | CVE | CVSS | Slice |\n|---|---|---|---|\n| GHSA-f946-9qp6-vgch | CVE-2026-47740 | 8.1 | Order mutation actions including `capturePayment` |\n| GHSA-9rh9-hf3w-9fgg | CVE-2026-47741 | 5.9 | Discount usage_limit race condition |\n| GHSA-h4mp-g9c6-xwph | CVE-2026-47742 | 6.5 | Product sub-form components |\n| GHSA-hr9v-r8r2-hg7j | CVE-2026-47743 | 8.7 | Missing `#[Locked]` on Livewire properties, plaintext password roundtrip, barcode XSS |\n| GHSA-c3qp-2ggw-xjg7 | CVE-2026-47744 | 9.9 | Team-settings RBAC takeover |\n| GHSA-fxqw-97cc-7g5c | CVE-2026-47745 | 6.5 | Payment methods, currencies, carriers (this post) |\n\nThe pattern across four of the five missing-authorization CVEs (47740, 47742, 47744, 47745) is identical: a Filament Action builder that did not chain `->authorize()`, with a `mount()` check at the top of the page giving the developer false coverage on the GET path. CVE-2026-47743 is the same commit's other bug class. Livewire public Eloquent model properties shipped without the `#[Locked]` attribute, letting the client swap which record the component operated on. CVE-2026-47741 is the discount race. Five missing-authorization slices and two non-authorization slices, all in one commit, each filed as its own GHSA because the advisory authors partitioned the patch by feature area. MITRE assigned each GHSA its own CVE number.\n\nCVE-2026-47745 is the smallest of the five missing-authorization slices by CVSS. It is also the slice that affects the most concrete defender action: an attacker with `access_setting` who toggles `is_enabled` off on every row of the payment methods table breaks checkout for every customer on the storefront. The CVSS vector reads `C:N/I:H/A:N`. The realised denial of service does not.\n\n## Safe-mode-was-opt-in at the framework-affordance level\n\nThe Filament library exposes `->authorize()` as a method on its Action builder. The method is documented as the per-action authorization gate. The method is not a required argument to `Action::make()`. The builder does not refuse to render an Action whose chain omits it. The Filament toolchain has no analyzer that warns when an Action's `->action()` closure is configured without a corresponding `->authorize()` call. The same Filament version that Shopper 2.8.0 depends on will accept the Action declaration that produced CVE-2026-47745, render the button, and run the closure on Livewire RPC.\n\nThis is the [safe-mode-was-opt-in](/patterns/safe-mode-was-opt-in) shape at the framework-affordance boundary. The library exposes a security flag as an optional chained method. The default behaviour of any caller who omits the chain is unsafe. The EspoCRM and DeepSeek-TUI exhibits sat at authoring-sink boundaries, Markdown parser flags and agent-tool boolean arguments. Shopper extends the same shape to a Livewire Action builder where the \"flag\" is the `->authorize()` method, the call site is every page that renders an admin button, and the consumer is every Livewire admin component. The patch added the chain in thirty-seven places. The framework default that produced the omissions did not change.\n\nFilament's `Action::make()` builder is also a design-debt driver inside Shopper's codebase. Every Action whose chain omits `->authorize()` ships an unauthorized button, and the bug class will recur whenever a developer wires a new Action without remembering the chain. The May 2026 patch closed thirty-seven instances of the primitive in one commit. The next Filament Action that lands in this codebase will or will not call `->authorize()` depending on whether the developer writing it remembers the chain. The same is true for every other Filament-based project. CVE-2026-47745 is the slice of one Shopper commit where the chain was missing on three settings tables. It is one of five slices the same commit closed, and one of an unknown number of slices the next release will or will not close.\n\nPoC: [shopperlabs/shopper](https://github.com/shopperlabs/shopper)","closing_line":"The patch closes thirty-seven sites. The chain that closed them is still opt-in.","hook_md":"Shopper's `packages/admin/src/Livewire/Pages/Settings/PaymentMethods.php` declares four Filament Action builders: `createPayment`, a `ToggleColumn` on `is_enabled`, `EditAction::make('edit')`, and `DeleteAction::make('delete')`. None of the four chains `->authorize()`. `Settings/Currencies.php` and `Settings/Carriers.php` are the same shape: eight more Action builders, no `->authorize()` anywhere in either table. Filament exposes `->authorize()` as a chained method on the Action builder. The default for any chain that omits it is to render the button on every client that loaded the page and to run the closure when a Livewire RPC arrives.\n\nCVE-2026-47745 is the slice of one Shopper commit where the missing `->authorize()` chains lived on three admin tables. The commit that fixed it, fcd0c59, added the same chain in fifteen other components on the same day. Four of those other slices got their own CVE numbers.","post_id":572,"slug":"shopper-cve-2026-47745-filament-authorize-was-opt-in","title":"CVE-2026-47745: Filament's ->authorize() Was Opt-In. Shopper Patched Thirty-Seven Sites In One Commit.","type":"initial","unreadable_sentence":"One commit added the same chained method in thirty-seven places. Twelve of them became CVE-2026-47745, and four of the other slices became their own CVE numbers."} -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQRf0htP5+SjynlxywneZjl4jgkQJgUCarFz8AAKCRDeZjl4jgkQ JsAKAQDhIzEZoB4ILSdIsGxr64KT/clGJVDOBQJD5dkVrlEndwD+M+pSIKOLbS4W sRl8GjHk7geeXIB9ciJcJG8Mvs+eDg8= =jYMH -----END PGP SIGNATURE-----