Transport
- HTTPS only, with modern TLS. Reject plain HTTP setup and order requests.
- Some buyers require IP allow-lists or client certificates; support them per customer.
Authentication
- Check the shared secret (cXML) or credentials (OCI) on every request; one secret per customer and environment.
- Store secrets encrypted; never log them; rotate them.
- See credentials and shared secret.
Parse XML safely
- Disable external entities and DTD fetching in your XML parser (prevents XXE attacks); validate against a local DTD copy.
- Limit document size and parsing time.
Sessions
- Generate unguessable session tokens for the StartPage URL; make them single use and short-lived.
- Bind the BuyerCookie and BrowserFormPost URL to the server-side session; never accept a different return URL from the browser.
- Cookies:
Secure,HttpOnlyand, because punchout often runs in a frame or pop-up, the rightSameSitesetting (typicallyNone; Secure). - Frames: allow framing only by known procurement domains (
Content-Security-Policy: frame-ancestors).
Data
- Punchout users see only their organisation's catalog, prices and orders.
- Treat extrinsic personal data carefully and keep logs short-lived.
Monitoring
Alert on bursts of authentication failures, unusual cart totals and orders that do not match any cart.