# Sample report

> This report is fictional. It is not the result of a test of a real application.

The interactive page is [https://www.trylock.dev/sample](https://www.trylock.dev/sample). Its report views are rendered by JavaScript. This file is the text summary.

The sample host is `billing.northstar.example` (Production, read-only). Assessment `T–001` completed with 3 open reproduced findings (2 High, 1 Medium), and the workspace also shows 1 previously fixed finding verified by a focused fix retest (`RT–014`). Both configured test accounts (`Account A · Northstar Org A` and `Account B · Northstar Org B`) signed in before testing.

## F–001 · An invoice was visible to another customer (High · CVSS 7.7 · Reproduced)

- Endpoint: `GET /api/v1/invoices/inv_84920` (same root cause also affects `GET /api/v1/invoices/inv_84920/pdf`)
- Classification: Broken object access (IDOR) · OWASP A01:2021 · CWE-639
- Demonstrated impact: Read another user's or organization's data.
- Verified: Two signed-in test customers belonged to different accounts. Requesting an invoice ID owned by Northstar Org A using the session of Northstar Org B returned HTTP 200 OK with the full invoice record and downloadable PDF.
- Fix guidance: Scope the invoice lookup by both invoice ID and the authenticated user's active organization ID on both the JSON detail and PDF download handlers, returning 403 or 404 for another organization's invoice, and add an authorization test.

## F–002 · Billing search query executes script in the browser (High · CVSS 8.1 · Reproduced)

- Endpoint: `GET /billing/search?q=...`
- Classification: Reflected cross-site scripting (XSS) · OWASP A03:2021 · CWE-79
- Verified: The billing search page reflects the `q` query parameter directly into the empty-results banner without HTML escaping, executing script in the signed-in customer's origin during the read-only production pass.
- Fix guidance: Render `q` with contextual HTML escaping (or `textContent`) rather than raw HTML interpolation, and add a regression test.

## F–003 · Unauthenticated diagnostics endpoint exposes runtime configuration (Medium · CVSS 5.3 · Reproduced)

- Endpoint: `GET /api/internal/status` (Anonymous / credential-free)
- Classification: Sensitive information exposure · OWASP A05:2021 · CWE-200
- Verified: Signed-out requests without cookies or Authorization headers receive HTTP 200 OK with internal database replica hostnames, build commit SHA, runtime versions, and feature flags.
- Fix guidance: Restrict `/api/internal/*` to internal networks or admin authentication, and expose only a minimal `/healthz` probe if needed.

## F–004 · Webhook delivery log accessible to non-admin workspace members (Medium · CVSS 6.5 · Fixed)

- Endpoint: `GET /api/v1/webhooks/deliveries`
- Classification: Missing function-level access control · OWASP A01:2021 · CWE-862
- Verified fixed: Previously returned HTTP 200 OK to a non-admin workspace member in `T–000`. Focused fix retest `RT–014` confirmed the endpoint now returns HTTP 403 Forbidden for non-admin members while preserving admin access.

Focused fix retests are included in the paid plan ($99 per application per month). This sample displays illustrative results only.
