Security: what the code does, nothing more.
Each point below maps to a file in the application code (shown at the end of the line). You can forward this page to your buyer's IT.
Secrets and passwords
- Passwords
- scrypt hash (N = 16384, r = 8, p = 1, random salt, 64-byte key), compared in constant time. Never stored in clear. crypto.ts
- Buyer SharedSecrets
- Encrypted with AES-256-GCM (random IV, authenticated associated data) before being stored in the database. crypto.ts
- Secret comparison
- Constant-time comparison (HMAC then timingSafeEqual), so timing reveals nothing. crypto.ts
- Tokens
- Generated by Node's cryptographic random generator (32 bytes for a session). crypto.ts
Sessions
- Session cookie
- __Host-maillon_sid over HTTPS: HttpOnly, Secure, SameSite=Lax. The token is stored as a SHA-256 hash. auth.ts, http.ts
- Lifetimes
- App session: 7 days. A buyer's PunchOut session: 2 hours. auth.ts
- Anti-CSRF
- Requests that change data check the origin, then a CSRF token compared in constant time. auth.ts
cXML and OCI flows
- Size
- A cXML message over 512 KB is rejected. xml.ts
- XXE and "Billion Laughs"
- Any <!ENTITY declaration and any DOCTYPE with an internal subset is rejected. Standard external Ariba and Coupa DOCTYPEs are accepted but never fetched. xml.ts
- Escaping
- Values written back into cXML are escaped and forbidden control characters removed. xml.ts
Return URLs
- HTTPS only
- The return URL to the buyer's portal must use HTTPS. url-guard.ts
- No internal network
- Rejected: localhost, private ranges (10/8, 172.16/12, 192.168/16), loopback, link-local 169.254/16 (cloud metadata), CGNAT 100.64/10, local IPv6 addresses and IPs written in decimal, hex or octal. url-guard.ts
Headers, rate limiting and log
- HTTP headers
- Strict-Transport-Security (1 year, subdomains included), X-Content-Type-Options: nosniff, X-Frame-Options: DENY or frame-ancestors limited to the declared portals. http.ts
- Rate limiting
- Per-window counters stored in the database and updated atomically; above the limit, the request is refused. rate-limit.ts
- Exchange log
- Every PunchOut exchange is logged; <SharedSecret> values and OCI PASSWORD fields are masked ([REDACTED]). audit.ts, xml.ts
What we do not claim
We show no certification, no guaranteed hosting region and no backup policy until they exist and can be verified. The app and its database are hosted by Netlify, Inc.
A question from your IT: contact@maillonapp.fr. See also the privacy policy.