Summary
- Seven findings: two critical, two high, two medium, one low.
- Both critical findings allow access across tenant boundaries and should be fixed before the next release.
- The retest confirmed the fix of six findings; one medium finding is accepted by the customer.
Technical findings
| Finding | Affected | Severity |
|---|---|---|
| Cross-tenant access to invoices through the API | GET /api/v2/invoices/{id} | Critical |
| Privilege escalation from editor to administrator | Role update endpoint | Critical |
| Stored cross-site scripting in the comment field | Ticket view | High |
| Password reset token valid for 24 hours | Account recovery | High |
| Verbose error messages reveal the framework version | All API endpoints | Medium |
| Session stays valid after a password change | Session handling | Medium |
| Security headers missing on the marketing site | Public website | Low |
Approach
- Written authorisation: targets, test window, five test accounts in two tenants, emergency contact.
- Manual testing of authentication, authorisation, tenant isolation and business logic, supported by tools.
- Every finding reproduced a second time and recorded with request, response and evidence hash.
- Retest of all findings after remediation; written verification summary.
Each finding contains
- Description
- what is wrong and why it matters
- Reproduction
- request, response and screenshot
- Evidence
- SHA-256 of every evidence file
- Recommendation
- concrete fix and a way to verify it
Limits
- Tested: the agreed targets in the agreed window, under written authorisation.
- Not tested: denial of service, social engineering, third-party systems.
- A test shows the state at the time of testing, not future changes.
Annex: all seven findings in detail
| Finding | Reproduction | Evidence | Recommendation |
|---|---|---|---|
| 1. Cross-tenant access to invoices (critical) | As editor of Tenant A, request GET /api/v2/invoices/2077, an invoice of Tenant B: 200 with the invoice | Request and response, E-01 | Bind every invoice query to the tenant of the session; retest: 403 |
| 2. Privilege escalation from editor to administrator (critical) | As editor, send PATCH /api/v2/users/me with role=admin: role changes | Request, response and screenshot, E-02 | Accept role changes from administrators only, checked on the server; retest: 403 |
| 3. Stored cross-site scripting in the comment field (high) | Save a comment containing a script element; it runs when an agent opens the ticket | Screenshot and stored payload, E-03 | Encode output in the ticket view and restrict scripts by policy; retest: not executed |
| 4. Password reset token valid for 24 hours (high) | Request a reset link and use it 23 hours later: password is changed | Timestamps of both requests, E-04 | Limit validity to 30 minutes and to one use; retest: expired |
| 5. Verbose error messages (medium) | Send malformed JSON to any endpoint: the response names framework and version | Response body, E-05 | Return a generic error and log the detail on the server; retest: generic message |
| 6. Session stays valid after a password change (medium) | Change the password in one browser; the session in a second browser still works | Two session recordings, E-06 | Revoke all sessions on a password change; accepted by the customer for this release |
| 7. Security headers missing on the marketing site (low) | Fetch the public site: no Content-Security-Policy, no X-Content-Type-Options | Response headers, E-07 | Set both headers on the web server; retest: present |