// COMPLETE REFERENCE

Production Penetration Test — Results (2026-11-06)

Chapter 580 8 min read English Stable reference URL

Authorized assessment of our own production estate, run under the rules of engagement frozen in the internal tracker. This page is the durable, sanitized record of the results; the raw working directory used during the assessment was temporary and is not part of the repository. Per-finding reproduction evidence lives in the closed issue threads (#1717–#1727, #1781, #1782, #1783, #1785) and in the private operator record.

Scope

Target What was tested
chat.pragmatismo.com.br DNS/TLS/headers, authentication, authorization, injection, WebSocket, rate limits, cross-tenant isolation
srv1 / srv2 SSH/host policy, firewall and NAT, Incus configuration, container-to-host reachability
All service containers exposed ports, authentication requirements, service versions
Supply chain Rust workspace, OS packages, static Go binaries, vendored frontend, Python pins, git history secrets, CI workflows
Credentials exposure in git history, provider-side validity, rotation outcome

No customer tenant or third-party host was touched. Test tenants created for the authenticated probes were prefixed sec-test- and deleted in the same session.

Executive summary

No unauthenticated path to host/root, database, secrets store or cross-tenant data was found. The assessment confirmed and fixed one medium cross-tenant information disclosure (bot enumeration), one missing security control (authentication rate limiting), the absent security headers, an exposed database/cache/orchestrator port set, a sealed secrets store, and a fleet of service binaries well behind their patched releases. All confirmed findings are fixed and re-tested; the accepted residuals are listed below.

Findings

ID Finding Severity Status
WEB-01 Six IMP-09 security headers missing on the public origin Low Fixed — all six present
WEB-02 /api/health returned 502 (secrets store sealed, botserver crash-loop) High (availability) Fixed — 200
WEB-03 /api/auth/login accepted unlimited attempts; the limiter was never called High Fixed — keyed 10 req/s, burst 20 per client
WEB-04 /api/bots/list and /api/bots/tree returned every tenant’s bots, including private ones, to any authenticated user Medium Fixed — scoped to the caller’s organizations
WEB-05 WebSocket handshake without a token creates a guest session Informational By design — guest has no tools
WEB-06 Malformed login body returns a serde field hint Low Accepted (no data exposed)
SVC-01 Public firewall rules exposed database, orchestrator and botserver ports Critical Fixed — blocked externally
SVC-02 Cache service had no password High Fixed — authentication required
SVC-03 Database trusted arbitrary sources High Fixed — narrowed to the internal subnets
SVC-04 Every container could reach the host orchestrator socket and browser-debug proxy High Fixed — restricted to the client containers
SVC-05 Secondary host firewall defaulted to ACCEPT, exposing VNC/noVNC Critical Fixed — default DROP + explicit allows
HOST-01 Secrets store sealed; unseal material mode 0644 Critical Fixed — unsealed, mode 0600, later rekeyed
HOST-02 Containers running privileged or with host mounts Critical if present None found — no privileged container, no host path mount
SCA-01 Six credential groups in git history High Resolved — five rotated/verified dead, one service decommissioned
SCA-02 Vulnerable GPL frontend bundle (SheetJS) Medium Fixed — removed as unreferenced
SCA-03 Rust advisories and stale parents High Fixed or accepted with dates — see residual risk
SCA-04 OS packages behind security updates Medium Fixed — all containers patched
SCA-05 Static service binaries behind upstream Critical Fixed — all six upgraded
CI-01 No continuous security gate, no dependency automation High Fixed — daily workflow + Dependabot + CODEOWNERS
REPO-01 Weak branch protection on the main remote Medium Open — maintainer decision (documented)
LOSS-01 Raw assessment evidence kept only in a temporary directory Low Corrected — this consolidated page is the durable record

Phase results

Recon

  • DNS, mail authentication (SPF strict, DMARC p=reject), TLS 1.3 with a valid certificate and HSTS preload.
  • CAA absent — recommend pinning the CA.
  • External ports: only web and mail ports open; database, cache, object storage, secrets store, vector database, media server, orchestrator and application API ports blocked.
  • Mail admin and table-editor vhosts returned 502 at probe time; tracked as availability items, not security findings.

Web and API (unauthenticated)

  • Every protected endpoint returned 401 missing_token; no wildcard CORS.
  • Path traversal (plain and encoded) did not read files; XSS and SQLi markers were not reflected.
  • Wrong credentials returned 401; the WebSocket guest session exposes no tools.
  • The rate limiter was found to be constructed but never called — fixed and verified (a 30-way burst now splits into accepted requests and 429s).

Authenticated cross-tenant

Two disposable database-only tenants with real signed tokens were used:

  • Cross-tenant drive read denied (403); own bucket allowed; traversal sanitised; root-org bucket denied; personal bucket of the other tenant denied; spoofed user id ignored.
  • Bucket discovery returned only the caller’s workspace.
  • Admin endpoints returned 403 for a non-platform-admin.
  • Finding: bot list/tree leaked every tenant’s bots, including private ones. Fixed, deployed and re-tested: both test users now receive exactly the public set and no private bot.

Exposed services

Verdicts: application API, secrets store, identity provider, media server, git server, proxy, webmail and orchestrator API are correct (blocked or authenticated). Residuals: database uses trust inside the internal subnets; vector database has no API key but is not externally reachable; object-storage console is internet-facing behind a password; remote desktop is password-protected and the direct VNC ports are blocked.

Host and containers

  • Secrets store unsealed and its material restricted; later rekeyed with a verified seal/unseal cycle.
  • Public database/orchestrator/API firewall rules removed; secondary host moved to a default-DROP policy.
  • Container-to-host socket proxies restricted to their client containers.
  • No privileged container, no host filesystem mount; nesting limited to the services that need it.
  • One firewall drift event on the secondary host was detected during re-test and corrected with a source-restricted rule.

Supply chain

  • Rust: advisories resolved by refresh or accepted with dates; unused git2 removed; office XML/zip stack upgraded; RSA chain removed; SBOM produced.
  • OS: all security updates applied to every container; only held orchestrator packages and the pending desktop kernel reboot remain.
  • Binaries: Caddy, Forgejo, Zitadel, Vault, LiveKit and OtterIO upgraded to patched releases (OtterIO built from the official source tag because the release publishes no binary assets); each verified after deployment.
  • Frontend: vendored libraries clean; the vulnerable unreferenced spreadsheet bundle removed; no CDN references.
  • Python: exact pins audited; one accepted accelerate pin (operator-only tooling, no fixed release).
  • Secrets: full-history scan clean after triage; the live-looking values were rotated or verified dead at the providers.
  • CI: seven jobs (advisories, OSV, secrets, Python, SBOM, workflow pinning, headers) run on push, pull request, daily schedule and dispatch; a deliberately bad advisory and an unpinned action were both proven to fail the gate.

Residual risk (accepted, with review dates)

Item Why accepted
glib on the desktop stack Desktop-only, no server exposure; removed by the GTK4 track.
Unmaintained build-time crates Build-time macros/tables/fonts; no attacker-reachable runtime sink.
accelerate pin Operator-only model tooling; no fixed release.
Database trust inside internal subnets Requires confirming every service password before switching to scram.
Orchestrator API reachable from the bot container Required by Vibe; the socket proxy is restricted to that container.
Remote desktop / object-storage console exposure Password-protected; blocking them needs an operator access pattern decision.
Weak branch protection Repository setting that changes the direct-push workflow; needs maintainer agreement.

Coverage statement

Tested: external DNS/TLS/ports/headers, unauthenticated API behavior, authenticated cross-tenant isolation and RBAC, service exposure and authentication, host/container configuration, OS packages, static binaries, Rust/Python/frontend dependencies, full-history secrets, CI workflows, and the credential rotation outcome.

Not tested: volumetric/DoS (forbidden by the rules of engagement), destructive database operations (forbidden), customer tenants and third-party hosts (forbidden), compiled-in business logic beyond the exercised endpoints, and physical/social engineering. The Windows/macOS installer payloads were not scanned on this host.

Where the evidence lives

  • Closed issue threads: #1719 (recon), #1720 (web/API), #1721 (services), #1722 (host), #1723–#1725 (supply chain), #1726 (CI), #1727 (report and re-test), plus #1781, #1782, #1783 and #1785 for the fixes.
  • This page: the consolidated, sanitized result.
  • The private operator record: host inventory, addresses, versions and per-finding raw output.

The temporary working directory used during the assessment was not durable and is intentionally not reproduced; the issue threads plus this page are the record of what was tested and what was fixed.

Recurring actions that keep this posture are in SECURITY.md → Security Maintenance Cadence.

// SEARCH ESC
Pagefind · 236 pages · 4 books Enter to open ↑ ↓ to move