What’s Changed
This release fixes a set of security and permission issues across the API, login and admin. We recommend all 7.x installs update.
Security
- API list endpoints no longer accept the
filter,withandwithCountquery parameters, andorderByonly sorts on the endpoint’s own columns. - API searches can only filter on the fields each endpoint allows.
- Registration and profile updates only save the fields on their forms.
- Deleted and other non-active accounts can no longer log in, by password or OAuth.
- Resetting a password only logs you in if the account is active.
- OAuth login no longer signs you in to an account just because the email matches. If the account isn’t linked yet, you log in with your password once and the link is completed.
- Pilots can only read their own bids, fleet, PIREPs, PIREP comments and finances through the API. Admins can still read anyone’s.
- Other pilots’ profiles no longer include their bids or fleet.
- Discord, VATSIM and IVAO ids are only shown to the pilot and to admins.
- PIREP filing and editing check the aircraft being submitted, and saved drafts go through the same checks as a new PIREP.
- Accepted PIREPs are read-only, and finances only recalculate for accepted PIREPs.
- Module installs reject archives with unsafe paths.
- Admin file uploads are limited to an allowlist of extensions (
phpvms.file_upload_extensionsinconfig/phpvms.php). - The Log Viewer no longer returns the credentials for remote hosts.
- API keys are generated from a secure random source.
Fixes
- Saving a page in the admin now returns to its edit form.
/admin/pages/{id}redirects there instead of showing a 500 error. - ACARS position updates no longer fail with a missing-column error.
- Fixed a stray debug dump in the SimBrief fetch.
Upgrade notes
- If your integrations used
filter,withorwithCounton the API, sorted on related tables withorderBy, or searched on fields outside an endpoint’s searchable list, those parameters are now ignored. /api/users/{id}/...now uses the id in the URL. Reading another pilot’s data needs an admin account.- If you upload a file type that’s not on the new allowlist, add it to
file_upload_extensions. Never add types the server could execute, such asphporhtml.
7.0.12 to 7.0.13
- fix(api): let admins recalculate pirep finances by @nabeelionabeelio in fix(api): let admins recalculate pirep finances by nabeelio · Pull Request #2419 · phpvms/phpvms · GitHub
- ci(release): keep release notes when attaching as@nabeelioets by @nabeelio in ci(release): keep release notes when attaching assets by nabeelio · Pull Request #2415 · phpvms/phpvms · GitHub Comparing 7.0.11...7.0.12 · phpvms/phpvms · GitHub