# Security review — 1 November 2026

Scope: local `travel_management_system` (Laravel API/admin/partner portals) and `travel-website` (React website and PHP SEO entrypoint). This is a source and dependency review, not a certification that every vulnerability has been eliminated. No production deployment or live penetration test was performed.

## Changes

- **Customer record takeover:** registration previously issued a login token and set a password on an existing passwordless CRM customer based solely on the submitted email. It now rejects all existing records without modifying their name, phone, credentials or tokens. Existing CRM customers need verified Google sign-in or support assistance; a dedicated verified recovery flow is not implemented by this change. Authentication token responses now explicitly use `Cache-Control: no-store`.
- **Partner webhook SSRF:** delivery previously accepted internal destinations and followed redirects. Every delivery now resolves the hostname, rejects non-global IPv4/IPv6 addresses, pins the connection to a validated address with cURL, disables redirects and proxies, rejects embedded credentials, and restricts ports to 80/443. These checks also cover URLs stored before the change. Localhost/private-network webhook receivers and custom ports will no longer receive deliveries. cURL is required; delivery fails closed without it. Existing best-effort delivery logs failures rather than interrupting bookings.
- **Rich-text XSS protection:** added DOMPurify at every React page rich-text rendering boundary, covering blogs, destinations, offers, packages, ships, resorts, stays and visas. This supplements the existing backend sanitizer and protects rendering of legacy or cached content. Deliberately configured admin analytics scripts retain their existing behavior and remain trusted executable configuration.
- **PHP dependencies:** updated Laravel to 12.70.2 and affected transitive dependencies, including CommonMark, Flysystem and Symfony components. Composer originally reported nine advisories across six packages; the final audit reports zero advisories and zero abandoned packages.
- **JavaScript dependencies:** updated both lockfiles through compatible audit fixes. The website pins `postcss-selector-parser` to patched 6.1.5 through an override, avoiding the audit tool's suggested typography downgrade. Both final npm audits report zero known vulnerabilities. These results include development dependencies.

## Verification

- Full Laravel suite: **692 passed, one configuration-dependent failure**, 3,981 assertions. The backup test expected S3 while this machine has `BACKUP_DISK=local`. All six backup configuration tests passed with `BACKUP_DISK=s3`; the local setting was not changed.
- After final PHP formatting, focused authentication, webhook destination, payment callback, private document and security header tests: **33 passed**, 100 assertions.
- New webhook tests cover private, loopback, link-local, shared address space and mapped IPv6 rejection, public IPv4/IPv6 acceptance, DNS pinning, disabled redirects/proxies and restricted ports.
- Website `npm run test:security`: **passed in installed Chrome**, exercising the actual bundled sanitizer with script elements, event handlers, obfuscated JavaScript URLs, SVG, forms and inline styles while preserving rich text.
- Website TypeScript check and both Vite builds passed. The website's complete build did **not** finish: SEO prerendering received HTTP 404 from its configured API `/packages` endpoint. SEO HTTP tests also lacked their expected local server on port 8097, and the contract test lacked `dist/app-shell.html` as a consequence of incomplete prerendering. Section-heading assertions passed, with Vite dependency-scan shutdown messages afterward.
- PHP formatting and Git whitespace checks were run on changed code.

## Deployment and review limits

Install the updated lockfiles on deployment and rebuild both applications. Resolve the SEO API configuration before publishing the website build. The zero-advisory result applies to the package registries at review time; it does not assess the host PHP executable, web server, OS, database engine or infrastructure.

Production HTTPS/proxy behavior, document-root isolation, existing public files/backups, credential exposure history, database permissions, cloud policies and live payment/provider integrations have not been verified. Existing bearer tokens remain in browser localStorage. Production debug settings and secure cookies must be checked against the deployed environment. No secrets were rotated and no external accounts were changed.

References consulted: [DOMPurify documentation](https://github.com/cure53/DOMPurify), [Symfony MIME advisory and patched releases](https://symfony.com/blog/cve-2026-45070-email-header-injection-via-non-token-characters-in-mime-parameter-names). Other dependency advisories were obtained directly through Composer and npm audits.
