Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
release/v0.7.73 (#728)
Ron9c5e164e5476
diff --git a/RELEASE.md b/RELEASE.mdindex 10ef2680..68e51eaf 100644--- a/RELEASE.md+++ b/RELEASE.md@@ -1,16 +1,18 @@-> v0.7.72 ~ "Customers can sign up with their phone number again"+> v0.7.73 ~ "Security: PHP2Shell, and phone sign-ups keep their number"---## Highlights-- **Storefront: phone sign-up works again.** Since Storefront v0.4.25, signing up with a phone number in a Storefront app failed for every customer with "That code didn't match", although the text with the code arrived. Phone codes are stored hashed, and the sign-up request still validated the code by looking up the plain code in `verification_codes`, which can never match a hash, so the request was refused before the code was checked. The request now only requires a code; the check against the newest live code for that number, with attempt counting and lockout, is unchanged. Sign-in and email sign-up were not affected. (storefront #160)+- **Security: PHP2Shell (CVE-2026-109618, CVE-2026-109619).** Two critical bugs in PHP itself let an unauthenticated request run code on the server. They affect every PHP install serving web requests, FrankenPHP included. The API image is now built on FrankenPHP 1.13.2, which ships the fixed PHP 8.2.35. The image also bounds `post_max_size` (it was unlimited) and turns off `session.upload_progress`, both of which narrow the known attack paths, and the build fails if the PHP it ships is older than 8.2.35. FrankenPHP 1.13.2 also fixes a worker-mode leak, where the last error from one request could be read by the next request on the same thread. **Self-hosted installs should upgrade right away.** ([PHP advisory](https://www.php.net/archive/2026.php#2026-10-21-5))+- **`mysql:createdb` works on a fresh install again.** It failed with "Unknown database", because a connection opened at boot still had the not-yet-created schema selected. (core-api #318)+- **Storefront: phone sign-up saves the number.** Customers who signed up with a phone number and texted code got an account without that number, so they were asked to verify it again, couldn't sign back in by phone, and the same number could sign up twice. The verified number is now saved on the account and marked verified. (storefront #161)---## Component Versions-- `console`: `0.7.72`-- `core-api`: `1.6.72`+- `console`: `0.7.73`+- `core-api`: `1.6.73`- `fleetops`: `0.6.74`-- `storefront`: `0.4.28`+- `storefront`: `0.4.29`- `registry-bridge`: `0.1.11`- `ledger`: `0.0.13`- `customer-portal`: `0.0.16`@@ -21,13 +23,21 @@- `iam-engine`: `0.1.13`----## Storefront `0.4.28`-- **Fix: phone sign-up codes pass request validation** (#160): `CreateCustomerRequest` validated `code` with `exists:verification_codes,code`. Phone creation codes are stored as an HMAC since v0.4.25, so every phone sign-up got a 422 before `CustomerController::create()` ran. The rule is now `required|string|max:32`; `create()` still checks the code with `VerificationCode::findActiveFor()` and `check()`, which hash it the same way, count wrong attempts, lock the code and use it up.+## Core API `1.6.73`+- **Fix: `mysql:createdb` on a fresh install** (#318): `Setting::doesntHaveConnection()` runs at boot and caches a `mysql` connection with the configured schema selected. The command cleared the schema in config, but the cached connection kept it, so `CREATE DATABASE` failed. The command now purges the connection before each `CREATE DATABASE` and after restoring the schema, and `Setting::hasConnection()` purges a connection whose check failed.++---+## Storefront `0.4.29`+- **Fix: phone sign-up keeps the verified number** (#161): the app sends the number as the `identity` the code was filed under, and account creation only read `phone`. The verified identity is now the phone on the user and the customer contact, with `phone_verified_at` set, and an existing user's matching number is marked verified too. A `phone` sent alongside still takes precedence. Email sign-up is unchanged.---## Upgrade Steps-- Pull the images as usual. No migrations in this release.-- Customers who tried to sign up by phone while this was broken only need to request a new code.+- Pull the new images and restart every API, queue, scheduler and events container. A PHP fix only applies once the old workers are gone.+- Request bodies are now capped at 610M (`post_max_size`). Uploads stay capped at 600M as before.+- If you used the standalone binary, download the rebuilt v0.7.73 binary. Earlier binaries embed a vulnerable PHP.+- If you worked around the `createdb` bug with an override of `CreateDatabase` in `api/app/Console/Commands`, remove it and its binding in `AppServiceProvider`.+- Customers who signed up by phone before this release have no phone saved. The app asks them to add it once (Storefront App v0.1.1 also asks at checkout).+- No migrations in this release.---## Need help?diff --git a/api/composer.json b/api/composer.jsonindex c6e67f9a..8a311194 100644--- a/api/composer.json+++ b/api/composer.json@@ -20,12 +20,12 @@"require": {"php": ">=8.0 <8.3","appstract/laravel-opcache": "^4.0",- "fleetbase/core-api": "^1.6.72",+ "fleetbase/core-api": "^1.6.73","fleetbase/ai": "^0.0.5","fleetbase/fleetops-api": "^0.6.74","fleetbase/registry-bridge": "^0.1.11","fleetbase/customer-portal-api": "^0.0.16",- "fleetbase/storefront-api": "^0.4.28",+ "fleetbase/storefront-api": "^0.4.29","fleetbase/ledger-api": "^0.0.13","fleetbase/valhalla-api": "^0.0.4","fleetbase/vroom-api": "^0.0.4",diff --git a/api/composer.lock b/api/composer.lockindex 90f30ec6..03f4a9a9 100644--- a/api/composer.lock+++ b/api/composer.lock@@ -4,7 +4,7 @@"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies","This file is @generated automatically"],- "content-hash": "35a13a032874ad581a1a018dddf0b22d",+ "content-hash": "3f56a2cd7f33105d60221da31c4259a7","packages": [{"name": "appstract/laravel-opcache",@@ -2310,16 +2310,16 @@},{"name": "fleetbase/core-api",- "version": "1.6.72",+ "version": "1.6.73","source": {"type": "git","url": "https://github.com/fleetbase/core-api.git",- "reference": "931d48e5241e11bb4bb9f988796b030dadf197b0"+ "reference": "494d8859c2eaa65d13a95c450c0b44d92262d20e"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/fleetbase/core-api/zipball/931d48e5241e11bb4bb9f988796b030dadf197b0",- "reference": "931d48e5241e11bb4bb9f988796b030dadf197b0",+ "url": "https://api.github.com/repos/fleetbase/core-api/zipball/494d8859c2eaa65d13a95c450c0b44d92262d20e",+ "reference": "494d8859c2eaa65d13a95c450c0b44d92262d20e","shasum": ""},"require": {@@ -2415,9 +2415,9 @@],"support": {"issues": "https://github.com/fleetbase/core-api/issues",- "source": "https://github.com/fleetbase/core-api/tree/v1.6.72"+ "source": "https://github.com/fleetbase/core-api/tree/v1.6.73"},- "time": "2026-10-19T06:20:59+00:00"+ "time": "2026-10-22T05:13:03+00:00"},{"name": "fleetbase/countries",@@ -2875,16 +2875,16 @@},{"name": "fleetbase/storefront-api",- "version": "0.4.28",+ "version": "0.4.29","source": {"type": "git","url": "https://github.com/fleetbase/storefront.git",- "reference": "24bef9e72c19a01efd8e374984152dc0bf847338"+ "reference": "69b3c20f769d12ad136739c5608b49ba3e845c24"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/fleetbase/storefront/zipball/24bef9e72c19a01efd8e374984152dc0bf847338",- "reference": "24bef9e72c19a01efd8e374984152dc0bf847338",+ "url": "https://api.github.com/repos/fleetbase/storefront/zipball/69b3c20f769d12ad136739c5608b49ba3e845c24",+ "reference": "69b3c20f769d12ad136739c5608b49ba3e845c24","shasum": ""},"require": {@@ -2953,9 +2953,9 @@],"support": {"issues": "https://github.com/fleetbase/storefront/issues",- "source": "https://github.com/fleetbase/storefront/tree/v0.4.28"+ "source": "https://github.com/fleetbase/storefront/tree/v0.4.29"},- "time": "2026-10-20T04:57:25+00:00"+ "time": "2026-10-22T05:12:31+00:00"},{"name": "fleetbase/twilio",diff --git a/console/package.json b/console/package.jsonindex 96505f0d..b775f01d 100644--- a/console/package.json+++ b/console/package.json@@ -1,6 +1,6 @@{"name": "@fleetbase/console",- "version": "0.7.72",+ "version": "0.7.73","private": true,"description": "Modular logistics and supply chain operating system (LSOS)","repository": "https://github.com/fleetbase/fleetbase",@@ -46,7 +46,7 @@"@fleetbase/leaflet-routing-machine": "^3.2.17","@fleetbase/ledger-engine": "^0.0.13","@fleetbase/registry-bridge-engine": "^0.1.11",- "@fleetbase/storefront-engine": "^0.4.28",+ "@fleetbase/storefront-engine": "^0.4.29","@fleetbase/valhalla-engine": "^0.0.4","@fleetbase/vroom-engine": "^0.0.4","@formatjs/intl-datetimeformat": "^6.18.2",diff --git a/console/pnpm-lock.yaml b/console/pnpm-lock.yamlindex cbaa2e5d..3ce74101 100644--- a/console/pnpm-lock.yaml+++ b/console/pnpm-lock.yaml@@ -50,8 +50,8 @@ importers:specifier: ^0.1.11version: 0.1.11(bffd95f1ee8fa5c6dc085f568b2e0221)'@fleetbase/storefront-engine':- specifier: ^0.4.28- version: 0.4.28(bffd95f1ee8fa5c6dc085f568b2e0221)+ specifier: ^0.4.29+ version: 0.4.29(bffd95f1ee8fa5c6dc085f568b2e0221)'@fleetbase/valhalla-engine':specifier: ^0.0.4version: 0.0.4(bffd95f1ee8fa5c6dc085f568b2e0221)@@ -1617,8 +1617,8 @@ packages:peerDependencies:ember-engines: ^0.9.0- '@fleetbase/[email protected]':- resolution: {integrity: sha512-4jpbq+BBo9Fo3SudRBvuJ6mSIu9JvG7ykdaQEIrrKC1k7JgEMG1xFaeRpE9MJEUUCOtVlreaEEVcelcm7/Kfgg==}+ '@fleetbase/[email protected]':+ resolution: {integrity: sha512-UI6yx2sHmKab5zyFmEawTIiNh5L9U8cqcm2LGjMVoJ0hqT/GJ1Gro8hPZhp/nCbgnsPcwQ2/O4TOToR9y5DauQ==}engines: {node: '>= 18'}peerDependencies:ember-engines: ^0.9.0@@ -11507,7 +11507,7 @@ snapshots:- webpack-command- yaml- '@fleetbase/[email protected](bffd95f1ee8fa5c6dc085f568b2e0221)':+ '@fleetbase/[email protected](bffd95f1ee8fa5c6dc085f568b2e0221)':dependencies:'@babel/core': 7.29.7'@fleetbase/ember-core': 0.3.26(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))diff --git a/console/pnpm-workspace.yaml b/console/pnpm-workspace.yamlindex 44ebc0de..148047f3 100644--- a/console/pnpm-workspace.yaml+++ b/console/pnpm-workspace.yaml@@ -20,7 +20,7 @@ minimumReleaseAgeExclude:- '@fleetbase/[email protected]'- '@fleetbase/[email protected]'- '@fleetbase/[email protected]'- - '@fleetbase/[email protected]'+ - '@fleetbase/[email protected]'- '@fleetbase/[email protected]'- '@fleetbase/[email protected]'- '@fleetbase/[email protected]'diff --git a/docker/Dockerfile b/docker/Dockerfileindex 0cde4cd2..ca9ead02 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -2,7 +2,8 @@# Base stage# laravel/octane sets a minimum FrankenPHP version and enforces it at startup, so this tag and the# Octane range in api/composer.json move together. The build fails below when they don't match.-FROM dunglas/frankenphp:1.13.1-php8.2-bookworm AS base+# 1.13.2 ships PHP 8.2.35, which fixes PHP2Shell (CVE-2026-109618, CVE-2026-109619). Don't go below it.+FROM dunglas/frankenphp:1.13.2-php8.2-bookworm AS base# Install packages# default-mysql-client provides mysqldump (MariaDB's), which db:backup runs. Without it every@@ -55,9 +56,15 @@ RUN curl -fsSL -o php-geos.zip \&& rm -rf php-geos-*# Update PHP configurations+# post_max_size is bounded (it was 0, unlimited) and session upload progress is off: both narrow the+# PHP2Shell attack paths (https://www.php.net/archive/2026.php#2026-10-21-5). The version check fails+# the build if the base image ever ships a PHP 8.2 without the fix.RUN sed -e 's/^expose_php.*/expose_php = Off/' "$PHP_INI_DIR/php.ini-production" > "$PHP_INI_DIR/php.ini" \- && sed -i -e 's/^upload_max_filesize.*/upload_max_filesize = 600M/' -e 's/^post_max_size.*/post_max_size = 0/' \- -e 's/^memory_limit.*/memory_limit = 600M/' "$PHP_INI_DIR/php.ini"+ && sed -i -e 's/^upload_max_filesize.*/upload_max_filesize = 600M/' -e 's/^post_max_size.*/post_max_size = 610M/' \+ -e 's/^memory_limit.*/memory_limit = 600M/' "$PHP_INI_DIR/php.ini" \+ && printf 'session.upload_progress.enabled = 0\n' > "$PHP_INI_DIR/conf.d/zz-fleetbase-security.ini" \+ && php -r 'if (version_compare(PHP_VERSION, "8.2.35", "<")) { fwrite(STDERR, "PHP " . PHP_VERSION . " is vulnerable to PHP2Shell; need 8.2.35+\n"); exit(1); }' \+ && php -r 'if (ini_get("session.upload_progress.enabled")) { fwrite(STDERR, "session.upload_progress.enabled is still on\n"); exit(1); }'# Install global node modulesRUN npm install -g chokidar pnpm ember-cli npm-cli-login@@ -84,7 +91,7 @@ ENV OCTANE_SERVER=frankenphp# its "develop" default it roughly doubled every request's time and disabled the OPcache# JIT in every image built from here, production included.ENV XDEBUG_MODE=off-ENV FLEETBASE_VERSION=0.7.72+ENV FLEETBASE_VERSION=0.7.73# Set environmentARG ENVIRONMENT=productiondiff --git a/packages/core-api b/packages/core-apiindex 931d48e5..494d8859 160000--- a/packages/core-api+++ b/packages/core-api@@ -1 +1 @@-Subproject commit 931d48e5241e11bb4bb9f988796b030dadf197b0+Subproject commit 494d8859c2eaa65d13a95c450c0b44d92262d20ediff --git a/packages/storefront b/packages/storefrontindex 24bef9e7..69b3c20f 160000--- a/packages/storefront+++ b/packages/storefront@@ -1 +1 @@-Subproject commit 24bef9e72c19a01efd8e374984152dc0bf847338+Subproject commit 69b3c20f769d12ad136739c5608b49ba3e845c24