Security
Keeping your berth yours
Last updated
The short version: holds and tickets are signed links the server verifies, so prices and berths can’t be tampered with. Strict security headers on every page. Found a problem? Email security@nocturne.example.
IHolds and tickets
Berth holds and tickets are links, not database rows. Each carries its details plus a signature (HMAC-SHA-256 with a server-only secret), and the server checks the signature before trusting anything in it.
- Prices can’t be edited. The fare is worked out on the server and signed into the hold. Change one character and the hold is rejected.
- A hold can’t pass as a ticket. Every signature is bound to its purpose (“hold” or “ticket”), so a valid hold link pasted into the ticket address is refused.
- Holds expire. A hold lasts 15 minutes. At checkout the server confirms the berth is still held by this hold, so an old or duplicated hold link can’t book a berth twice.
- Every form is checked on the server. Names, dates, berths and extras are validated again server-side, whatever the browser sends.
Signed is not secret: ticket contents are readable by anyone with the link. See what’s in your ticket link.
IISecurity headers
Every response carries these HTTP headers:
Content-Security-Policy: Only scripts, styles, images and fonts from this site can load, and no other site can frame it.Strict-Transport-Security: Browsers that have visited once will only ever connect over HTTPS.X-Content-Type-Options: Stops browsers guessing file types, which blocks a class of script-injection tricks.Referrer-Policy: Other sites you click through to see only our domain, never the page you were on.X-Frame-Options: Older browsers also refuse to show the site inside another page (clickjacking).Permissions-Policy: The site can't ask for your camera, microphone, location or payment APIs, and opts out of ad-topic tracking.Cross-Origin-Opener-Policy: Pages from other sites can't keep a handle on this window after opening it.
Show the exact values
- Content-Security-Policy
default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' blob: data:; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests- Strict-Transport-Security
max-age=63072000; includeSubDomains- X-Content-Type-Options
nosniff- Referrer-Policy
strict-origin-when-cross-origin- X-Frame-Options
DENY- Permissions-Policy
camera=(), microphone=(), geolocation=(), payment=(), usb=(), browsing-topics=()- Cross-Origin-Opener-Policy
same-origin
IIIKnown limits
- This is a demo: holds and booked berths live in one server’s memory and reset on restart. A real service would keep them in a shared database.
- There are no accounts, so there are no passwords to leak, and nothing is charged, so there are no card details to protect.
IVReporting a vulnerability
Found something? Thank you. Email security@nocturne.example with:
- what you found and where;
- steps to reproduce it, and what an attacker could do with it;
- how you’d like to be credited, if at all.
Please test only against your own bookings, and don’t run automated scans that could slow the site for others. Our contact details are also in security.txt.