1. Executive summary
Forethreat performed a grey-box penetration test of the Harborline Analytics customer portal and its REST API between [dates], using accounts in two separate customer tenants and three roles (Viewer, Analyst, Org Admin).
Overall risk: High. Any logged-in user could promote themselves to Org Admin, and Org Admins could read and modify invoices belonging to other customers. Chained together, these two issues allow any free-trial user to access every customer's billing records. Both issues were fixed during the engagement and confirmed fixed at retest.
| ID | Finding | Severity (CVSS 3.1) | Retest status |
|---|---|---|---|
| HA-01 | Cross-tenant invoice access and modification (BOLA) | HIGH 8.1 | Fixed ✓ |
| HA-02 | Privilege escalation via mass assignment of role | HIGH 8.1 | Fixed ✓ |
| HA-03 | Password reset tokens reusable and valid for 24 hours | MEDIUM 6.8 | Fixed ✓ |
| HA-04 | Stored XSS in invoice memo rendered in admin preview | MEDIUM 5.4 | Partially fixed |
| HA-05 | Account enumeration via password reset responses | MEDIUM 5.3 | Accepted risk |
2. Scope & approach
- In scope:
portal.harborline.exampleandapi.harborline.example/v2(staging, production-equivalent data) - Out of scope: payment processor, corporate email, denial-of-service
- Methodology: OWASP WSTG v4.2 and OWASP API Security Top 10 (2023); 47 API endpoints tested (coverage list in Appendix A)
- Accounts: 2 tenants × 3 roles, provided by the client
3. Attack path
The highest-impact result came from chaining two separate issues:
- A Viewer in Tenant A sends
"role":"org_admin"in a profile update and becomes an Org Admin (HA-02). - As Org Admin, the user requests invoices by sequential ID. The API checks the role but not the tenant (HA-01).
- Result: any self-registered trial user can read and edit every customer's invoices, including names, addresses, and amounts.
4. Example finding detail
HA-01: Cross-tenant invoice access and modification (BOLA) HIGH 8.1
CVSS: AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N · OWASP: API1:2023 Broken Object Level Authorization · Affected: GET|PATCH /v2/invoices/{id}
Description. The invoice endpoints confirm that the caller holds the Org Admin role, but not that the requested invoice belongs to the caller's organization. Invoice IDs are sequential integers, so every invoice can be enumerated.
Reproduction. Authenticated as Org Admin in Tenant A (org_id 1042), request an invoice owned by Tenant B:
GET /v2/invoices/88317 HTTP/2
Host: api.harborline.example
Authorization: Bearer eyJhbGciOi…[Tenant A token]
HTTP/2 200 OK
{"id":88317,"org_id":1077,"customer_name":"[Tenant B customer]","amount":"4,980.00","status":"open", …}
A PATCH with {"status":"void"} to the same ID also succeeded, so the issue affects integrity as well as confidentiality.
Business impact. Exposure and tampering of every customer's billing records. A reportable incident under most customer contracts and a likely deal-breaker in enterprise security reviews.
Remediation. Enforce object ownership on the server for every invoice operation, scoping the query by the authenticated user's org_id (e.g., WHERE id = :id AND org_id = :caller_org) rather than checking the role alone.
Return 404 for objects in other tenants. Add automated authorization tests that run each endpoint with a token from a second tenant. Consider non-sequential identifiers as defense in depth (not as the fix).
Retest. Re-tested on [date]: cross-tenant GET and PATCH now return 404. The same check was confirmed on /v2/payments and /v2/exports. Status: Fixed.
5. What else is in a full report
- Every finding in the detail format above, with screenshots
- Positive observations: controls that held up under testing
- Appendix A: endpoints/features tested · Appendix B: tools and testing timeline
- Retest report with updated status, plus an attestation letter where included
Want this for your application?
Book a 30-minute scoping call and get a fixed-fee proposal.