Ironward

Sample report: fictional application

Penetration test report: Example Invoicing

This is what you receive at the end of a test. The application, hosts, people and findings are invented for this example. The structure, level of detail and retest record are the real format.

1. Engagement

Application
Example Invoicing (Fictional application. Hosts use example.com, a domain reserved for documentation.)
In scope
https://app.example.com (web app)https://api.example.com/v1 (REST API)
Roles tested
owner, member, customer portal user
Out of scope
Payment processor and email provider; Denial of service and load testing; Phishing and other social engineering; Physical access
Test window
6 to 10 Oct 2026
Report issued
14 Oct 2026
Retest
5 Nov 2026
Tester
Nikhil Nagpure, Ironward

2. Summary

The test found one Critical and one High issue that together would let an outsider take over any account and a signed-in user read other customers’ invoices. Both were fixed and verified on retest. One Medium issue is fixed, one Low issue is partly fixed, and one informational item was accepted by the client.

Critical 1High 1Medium 1Low 1Info 1

IDFindingSeverityCVSSRetest
IW-01 Password reset token accepted for any account Critical 9.1 Fixed
IW-02 Invoices from other workspaces readable and editable by ID High 7.1 Fixed
IW-03 Stored cross-site scripting in invoice notes Medium 5.4 Fixed
IW-04 No rate limiting on login and password reset Low 3.7 Partially fixed
IW-05 Security headers incomplete on the marketing site Info n/a Risk accepted

3. Findings

IW-01 Password reset token accepted for any account

Severity
Critical
CVSS 3.1
9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected
POST /v1/auth/reset/confirm
Retest
Fixed. Token now resolves the user; a mismatched email returns 400. Old sessions are revoked after reset.

Description

The reset endpoint checks that a token exists and has not expired, but not that it belongs to the email address in the same request. Anyone can sign up, request a reset for their own account and use that token to set a new password on any other account, including workspace owners.

Reproduction

  1. Sign up as a new user (attacker@test.example.com) and request a password reset.
  2. Copy the token from the reset email.
  3. Send POST /v1/auth/reset/confirm with {"email": "owner@victim.example.com", "token": "<attacker token>", "password": "<new>"}.
  4. The API returns 200. Sign in as owner@victim.example.com with the new password.
POST /v1/auth/reset/confirm HTTP/1.1
Host: api.example.com
Content-Type: application/json

{"email":"owner@victim.example.com","token":"q7Z…f2","password":"<redacted>"}

HTTP/1.1 200 OK
{"ok":true}

Impact

Full takeover of any account, including owners who can export every invoice and change payout details.

Fix

  • Look the token up first and take the user from the token record. Ignore the email field, or reject the request when it does not match.
  • Make tokens single-use and invalidate all of a user’s open tokens and sessions after a successful reset.
  • Add a test that a token issued to user A cannot reset user B.

IW-02 Invoices from other workspaces readable and editable by ID

Severity
High
CVSS 3.1
7.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Affected
GET /v1/invoices/{id}PATCH /v1/invoices/{id}
Retest
Fixed. GET and PATCH return 404 for IDs outside the caller’s workspace. Regression test added to CI.

Description

Invoice IDs are sequential integers and the invoice handlers load the record by ID without checking that it belongs to the caller’s workspace. Any signed-in user can read other workspaces’ invoices and change their status.

Reproduction

  1. Sign in as a member of workspace north-test and create an invoice. Note its ID (48211).
  2. Sign in as a member of a different workspace, south-test.
  3. Send GET /v1/invoices/48211 with the south-test session. The API returns 200 and the full invoice: customer name, line items, bank details.
  4. Send PATCH /v1/invoices/48211 with {"status": "paid"}. The API returns 200 and the invoice is marked paid in north-test.
GET /v1/invoices/48211 HTTP/1.1
Host: api.example.com
Authorization: Bearer <south-test member>

HTTP/1.1 200 OK
{"id":48211,"workspace":"north-test","customer":"<redacted>","total":"4,180.00", …}

Impact

Cross-tenant exposure of financial records for every customer, and the ability to falsify payment status. Rated High for business impact: one tenant reading another tenant’s data is the finding enterprise buyers ask about first.

Fix

  • Scope every invoice query to the caller’s workspace and return 404 for records outside it.
  • Apply the same check in the shared data-access layer so new endpoints inherit it.
  • Add a regression test that requests another workspace’s invoice. Random IDs help as defence in depth but are not the fix.
// before
const invoice = await db.invoice.findUnique({ where: { id } });

// after
const invoice = await db.invoice.findFirst({
  where: { id, workspaceId: session.workspaceId },
});
if (!invoice) return notFound();

IW-03 Stored cross-site scripting in invoice notes

Severity
Medium
CVSS 3.1
5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected
Invoice note fieldhttps://app.example.com/portal/invoices/{id}
Retest
Fixed. Notes are rendered as text. CSP with script-src 'self' is now sent on the portal.

Description

The note on an invoice is rendered as HTML in the customer portal without sanitisation, and the portal sends no Content-Security-Policy. A member can store script that runs in the browser of every customer who opens the invoice.

Reproduction

  1. As a workspace member, set an invoice note to <img src=x onerror="alert(document.domain)">.
  2. Open the invoice as a customer portal user. The script runs on app.example.com.

Impact

Actions in the customer’s portal session, such as changing their saved payment contact. Requires a malicious or compromised member account.

Fix

  • Render notes as text, or sanitise them with an allowlist (for example DOMPurify) if formatting is needed.
  • Add a Content-Security-Policy that blocks inline script on the portal.

IW-04 No rate limiting on login and password reset

Severity
Low
CVSS 3.1
3.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Affected
POST /v1/auth/loginPOST /v1/auth/reset
Retest
Partially fixed. Login is now limited to 10 attempts per account per 15 minutes. Password reset is still unlimited.

Description

Both endpoints accepted 2,000 requests in one minute from one IP address with no delay, lockout or CAPTCHA. Rated Low because the app enforces strong passwords and offers MFA, which most owners use.

Reproduction

  1. Send 2,000 login attempts for one account from one IP address within 60 seconds (run against staging only, as agreed in the scope).
  2. Every response is a normal 401; no request is slowed or blocked.

Impact

Credential stuffing against users without MFA, and reset-email flooding.

Fix

  • Limit attempts per account and per IP address, with an increasing delay.
  • Apply the same limit to password reset requests.

IW-05 Security headers incomplete on the marketing site

Severity
Info
CVSS 3.1
Not scored (informational)
Affected
https://www.example.com
Retest
Risk accepted. Client will add the headers with the planned site rebuild in Q1.

Description

The marketing site sends no Strict-Transport-Security or Referrer-Policy header. It holds no user data, so there is no direct impact; it is listed because buyers’ scanners will flag it.

Reproduction

  1. Request https://www.example.com and inspect the response headers.

Impact

None directly. Appears in automated scans run by customers.

Fix

  • Add Strict-Transport-Security: max-age=31536000 and Referrer-Policy: strict-origin-when-cross-origin.

4. Method and scale

Testing followed the OWASP Web Security Testing Guide, with ASVS level 2 as the checklist for authentication and access control. Severity starts from the CVSS 3.1 base score and can move one level for business context; IW-02 is an example. The full process and scale are on the methodology page.

Want this for your application? Web app pentests start at $500 (pricing). Send a brief.

Get a quote