Releases: liberusoftware/ecommerce-laravel
Release list
1.0.3
Registration works again — and the /app panel is shut. Those were one bug.
1245 tests pass (7 added). Verified live end-to-end.
Versioning note. Continues the v1 line. The release before v1.0.0 was v13.0.0, which tracked the Laravel major, and Packagist still resolves that as highest — so
composer create-projectgets v13.0.0 unless you pin1.0.3. Thev1tag now points here.
The coupling
CreateNewUser attached every registrant to Team::first() — the merchant's own team, seeded by DefaultTeamSeeder and owned by the admin — then assigned a staff role. The method is named assignOrCreateTeam and its docblock promises "or create a personal team"; neither branch ever existed.
Meanwhile canAccessPanel ended return true; // TODO: Check panel and role, so a user with zero roles and zero teams was waved into /app — Products, Orders, Invoices, Customers.
It only failed to bite because registration threw first: RolesSeeder stopped creating staff in cf711cb without touching the caller, and on an unseeded database Team::first() returned null and fatally errored a line earlier. Fixing registration alone would have opened the door.
What changed
- Registration produces a shopper: a user, no team, no role. Team membership gates
/app, and teams are granted throughTeamPolicy::create(which needs thecreate_storepermission) — handing one out at signup bypassed that gate entirely. canAccessPanelasks the right question per panel:admin→super_admin,app→ team membership. It also now reads$thisrather thanauth()->user(), which authorized the session user instead of the one passed in.- Login and register default to the storefront, using
intended()so a shopper interrupted mid-checkout returns there. Shoppers lose nothing:/orders,/wishlist,/invoices,/payment_methodsare unaffected.
The test that hid it
FortifyActionsTest::makeTeam() created the team and the staff role — with a comment saying so. That is exactly why CI stayed green while every real registration threw. It's gone; those tests still pass.
Known issues
ArticleResource/CollectionResourcehave no policy andstrictAuthorizationis off, so Filament allows: a team member can CRUD their own tenant's articles and collections (price included) without a permission check. No longer reachable by a stranger — that takes a team. Needs policies and seeded permissions together, because the Shield set has noarticle_*/collection_*entries at all.- SVG stored XSS is latent — product upload accepts
image/svg+xmlonto a public disk. Unreachable today (nopublic/storagesymlink); live the momentstorage:linkruns. /user/profilebreaks if social login is enabled —// use HasConnectedAccounts;is commented out inUser, soconnectedAccountsis null and Socialstream calls->map()on it.Password::default()is min 8, no complexity, no breach check.- The seeder sets
inventory_count = 0on every product, so the demo storefront ships sold-out. RoleBasedRedirectis dead code inherited from a property-management app (its six targets all 404), andconfig('permission.teams')isfalseso roles are global despite code reading as team-scoped.
Full changelog: v1.0.2...v1.0.3
1.0.2
A contact form that actually sends, and a security gate that can finally report.
1238 tests pass (11 added). Verified end-to-end against a real SMTP inbox, not mocks.
Versioning note. Continues the v1 line. The release before v1.0.0 was v13.0.0, which tracked the Laravel major, and Composer still orders
13.0.0above this tag — socomposer create-projectresolves v13.0.0 unless you pin1.0.2explicitly. Thev1tag now points here.
The contact form now sends
It previously sent nothing, anywhere. The page was Preline's SaaS template pasted verbatim: the <form> had no action, no method, no @csrf, and Route::view meant no handler existed to receive it — submitting just reloaded the page. A second, orphaned form component posted to /contact/send, which 404s and which nothing rendered.
Now: routes, a controller, validation, and a Mailable to the merchant's configured site_email with Reply-To set to the visitor, so replying is one click. From stays the app's own sender — sending as the visitor would fail SPF/DKIM and land in spam.
Anti-spam: a honeypot plus throttle:5,1. The honeypot is checked before validation and answers exactly as a success would — validating it would hand a bot the name of the field that caught it. It's sr-only + aria-hidden + tabindex="-1"; the tab order was verified in a browser to skip it entirely.
Fixed alongside: {{ env('APP_NAME') }} in a view (returns null under config:cache, so it rendered blank in production); field names left as the template's hs-firstname-contacts-1; placeholder-as-label, which vanishes the moment you type; and the four "Knowledgebase / Developer APIs / Contact sales" blocks — SaaS copy on a shop, all four linking to #. They're replaced by the contact details the merchant has actually configured, each shown only when set.
The security audit job works
Dependency Security Audit had failed on every run since at least 2026-07-14 and had never reported on a single dependency. It ran composer audit with no vendor/ tree and no --locked, so it died on Composer's own advice every time.
It now audits the lock file directly — the versions that actually deploy — and reports zero advisories. Which it could never have told anyone before.
A permanently-red security gate is worse than no gate: it trains everyone to scroll past the one check whose entire job is to shout. It sat red through the v1.0.1 security release.
Known issues, carried forward
- Public registration is broken, and that bug is the only thing masking an access-control hole.
CreateNewUserassigns astaffrole no seeder creates, so signup rolls back. Behind it, every registrant would join the store's primary team,canAccessPanelreturnstruefor/app, and Article/ProductCollection have no policies (Filament allows by default). Must be fixed together. - SVG stored XSS is latent — product upload accepts
image/svg+xmlonto a public disk. Unreachable today (nopublic/storagesymlink); live the momentstorage:linkruns. /user/profilerenders only because social login defaults off; enabling a provider re-breaks it (// use HasConnectedAccounts;is commented out inUser).Password::default()is min 8, no complexity, no breach check.- The seeder sets
inventory_count = 0on every product, so the demo storefront ships sold-out. - The
Dependency Security Auditjob covers Composer only; the project also ships npm dependencies.npm audit --omit=devreports 0 today.
Full changelog: v1.0.1...v1.0.2
1.0.1
Security release. Fixes the findings from an OWASP audit of the codebase.
1227 tests pass (25 added — every fix has a regression test, because these hid in plain sight). composer audit --locked and npm audit --omit=dev both report zero.
Versioning note. This continues the v1 line started at v1.0.0. The release before that was v13.0.0, whose tag tracked the Laravel major, and Composer still orders
13.0.0above this tag — socomposer create-projectresolves v13.0.0 unless you pin1.0.1explicitly. Thev1tag now points here.
🔴 Critical
Any registered customer could ship goods at the merchant's expense. The dropshipping API group had auth:sanctum and no role check — the only API controller without one. DropshippingService::placeOrder makes a live call to the supplier with the merchant's API key and a caller-supplied payload, and registration is open. Register → mint a token → POST /api/dropshipping/place-order with any items and address → real goods ship, billed to the merchant. No order record, no payment, no limit. track-order was additionally an unscoped IDOR over any supplier reference. Now staff-only on all four endpoints.
🟠 High
- Plaintext passwords written to logs. Failed registration stripped
passwordbut notpassword_confirmation— the same value. The common trigger is a duplicate email, where the password is perfectly valid. TheQueryExceptionpath leaked the bcrypt hash twice, becauseformatMessage()interpolates bindings into the message. - Webhook signing secrets returned on every response. No
$hidden, so listing endpoints returned everywhsec_secret — the keys needed to forge deliveries that consumers validate as authentic. The code claimed "returned once"; it wasn't. - No security headers at all — no CSP, HSTS, X-Frame-Options, nosniff or Referrer-Policy. The admin panels were framable. CSP ships as Report-Only so it can't break Filament/Livewire.
/checkout/processwas public and unthrottled, reaching payment capture with a caller-supplied card token: unlimited card testing.- The installer's key check failed open.
INSTALLER_ENABLED=truewithout a key exposed shell execution,.envrewrite and arbitrary-role user creation to anyone who found the URL. Now fails closed.
🟡 Medium
Guest API rate limiting had collapsed into a single shared bucket — no proxies were trusted, so every client looked like the ingress and one attacker could throttle everyone. Wildcard CORS on api/* is now env-driven. The session cookie now gets Secure outside local/testing. Authentication failures and lockouts are now logged (allowlisting the email out of the credentials array, which holds the password). SSRF targets rejected on webhook URLs.
Known issues, not fixed here
- Public registration is broken, and that bug is the only thing masking an access-control hole.
CreateNewUserassigns astaffrole no seeder creates, so signup rolls back. Behind it, every registrant would join the store's primary team,canAccessPanelreturnstruefor/app, and Article/ProductCollection have no policies (Filament allows by default). These must be fixed together — repairing registration alone opens the store's tenant to every signup. - SVG stored XSS is latent. Product image upload accepts
image/svg+xmlonto a public disk. Currently unreachable (nopublic/storagesymlink) but live the momentstorage:linkruns. Password::default()is min 8 with no complexity or breach check.- The
Dependency Security Auditworkflow is red and has been since before this work — it runscomposer auditwith nocomposer installand no--locked. One flag fixes it. /user/profilerenders only because social login now defaults off; enabling a provider re-breaks it (// use HasConnectedAccounts;is commented out inUser).
Full changelog: v1.0.0...v1.0.1
1.0.0
Storefront design system — and the eight pages that turned out to be hard-500.
1202 tests pass, 0 skipped. Every surface screenshotted and read at desktop and mobile.
Versioning note. This release deliberately restarts the version line. The previous release was v13.0.0, whose tag tracked the Laravel major. Composer orders
13.0.0above1.0.0, so a^13constraint will not resolve this tag, and v13.0.0 may continue to show as "Latest". If you install by version, pin1.0.0explicitly.
Fixed: eight pages were 500ing
<x-guest-layout> and <x-app-layout> were referenced throughout but never existed:
- Two-factor challenge. Fortify has
twoFactorAuthentication()enabled, so anyone who turned 2FA on was locked out permanently. - Password reset from the emailed link — the escape hatch from exactly that lockout.
- Email verification, confirm password.
- Profile, teams, API tokens (the missing
app-layout).
The only page that can enable 2FA is /user/profile, which was also crashing — the lockout was unreachable purely because the door to it was broken too.
Security
- Removed a "Demo Credentials" panel that rendered unconditionally in production, advertising
admin@example.comandstaff@example.combeside the word "password". The seeder randomises that password, so it was useless to honest visitors and a free username list for everyone else. - Social login is now opt-in (
SOCIALSTREAM_PROVIDERS, default empty). Nine providers were enabled with credentials configured for none, so every button threwDriverMissingConfigurationExceptionon click.
Removed fabricated content
A default theme ships as somebody else's real store, which makes this material:
- Three hardcoded testimonials ("John Doe", "Sarah Smith", five stars each) — every merchant published fake reviews.
- A hardcoded "Summer Sale — 50% off" pointing at an image that cannot exist.
- Four invented categories, replaced with real
ProductCategorydata. - Four simulated navbar features — including an
addToWishlistthat made no request and reported "Added to wishlist!" anyway. product.blade.php, orphaned and carrying a fake gallery and fake "Related Product 1..N".
Design system
Workshop Moss in app.css's @theme. No blue (the first-order ecommerce reflex). No second green — moss doubles as the affirmative signal. Inter + IBM Plex Mono, self-hosted; mono reserved for prices, quantities and 2FA codes. PaletteContrastTest holds all 25 tokens inside the sRGB gamut with every pair clearing WCAG 2.2 AA.
products/show was Bootstrap markup inside a Tailwind app, so stock status rendered as plain black text. Rebuilt.
Known issues
/user/profilerenders only because social login now defaults off. With providers enabled it still 500s:app/Models/User.php:35has// use HasConnectedAccounts;commented out.config/socialstream.phpwarns at the point of enabling.- 105 blue literals remain in contact/checkout/categories.
- The seeder sets
inventory_count = 0on every product, so the demo storefront ships sold-out. - The
Dependency Security Auditworkflow is red and has been since before this work: it runscomposer auditwith nocomposer installand no--locked.
Full changelog: v13.0.0...v1.0.0