Skip to content

Security

Invoices contain personal data and commercially sensitive information. This page describes how the service handles them.

Data flow

  • The public validator processes the file in memory and returns the result. Nothing is stored; only an anonymous count per day is kept to enforce the free limit (the IP address is stored as a salted hash and deleted after two days).
  • The API stores a document only when storage is enabled (organization setting, overridable per request with store=false). Without storage, only counts and ids are kept, not findings, because findings can quote document values.
  • Stored documents are encrypted with AES-256-GCM before they reach object storage, with the storage key as authenticated data. Metadata lives in PostgreSQL.
  • Invoice content is never sent to an AI or LLM service. Explanations come from a fixed catalogue tied to the official rule ids.

Isolation

Every row carries an organization id and every query filters by it, including MCP tools. Test and live data are separated by mode. Our test suite includes cross-organization access attempts on every read, download and delete path.

Input hardening

  • DOCTYPE, ENTITY, XInclude and xml-stylesheet constructs are rejected before parsing — this rules out XXE, external fetches (SSRF) and entity expansion.
  • UTF-8 only; size (10 MB), nesting depth (64) and element count (200,000) limits.
  • PDFs are only read to extract the embedded invoice file; they are never rendered.
  • The official validator runs as a separate process reachable only from the API.
  • No user input becomes part of a file path; storage keys are generated server-side.

Credentials

  • API keys: ~238 bits of entropy, stored as HMAC-SHA256 with a server-side pepper, shown once.
  • Sign-in uses single-use e-mail links valid for 20 minutes; sessions are HTTP-only, SameSite=Lax cookies, and state-changing dashboard requests require a CSRF header.
  • Payment webhooks from Dodo Payments are verified with Standard Webhooks HMAC-SHA256 signatures and a 5-minute timestamp window, deduplicated by webhook id and applied in event order.

Operations

  • TLS for all traffic (terminated at the edge in front of the app).
  • Logs are structured and never contain documents, keys, cookies or sign-in tokens.
  • Rate limits per key and per client; audit log of key, settings and data-deletion actions.
  • Database backups follow the hosting provider's encrypted daily backups with point-in-time recovery; see the deployment guide.

Reporting a vulnerability

E-mail security@ (your domain) with details. Please do not test against other customers' data.