Skip to content

A sample report, open to read

Example Pay does not exist. The company, systems, findings and results below are invented to show what a report contains and how it reads. It is not a client's report.

What is inside

Sample. Invented data.

Penetration test report

Example Pay (fictional), merchant API

  1. Who tested, and on whose authority1
  2. Scope, dates and what was left out2
  3. Method and severity scale3
  4. Summary of findings4
  5. Findings in detail5
  6. Retest results8
  7. Limits of this work9

Sample. Invented data.

Finding 1 of 3

One merchant can read another merchant's orders

Severity
High
Where
Order status endpoint
Status
Fixed, retested

The endpoint checks that the caller is signed in. It does not check that the order belongs to the caller. Changing the order number returned another merchant's customer name and amount.

Fix. Look the order up by order number and merchant together, and return the same answer for an order that does not exist and one that is not yours.

Found open, then closed at retest.

Scope of the sample

In scope
Merchant API of Example Pay, test environment, two merchant accounts and one support account.
Out of scope
The mobile app, the office network, third-party payment providers and denial of service.
Authority
Testing began only after written authorisation that named the targets and the dates.
Approach
Grey-box: the testers had accounts and documentation, and no source code.

Findings in detail

1. One merchant can read another merchant's orders

Severity
High
Where
GET /orders/{id}
Status
Fixed, retested
What was found
The endpoint checks that the caller is signed in. It does not check that the order belongs to the caller.
How it was shown
Signed in as merchant A. Requested an order number belonging to merchant B. The response contained B's customer name and amount.
What it could lead to
Any merchant could read other merchants' customer details and sales.
How to fix it
Look the order up by order number and merchant together. Return the same answer for an order that does not exist and one that is not yours.
Retest
Repeated with three accounts. All requests for another merchant's order returned not found.

2. Payment callback accepted without checking its signature

Severity
High
Where
POST /callbacks/payment
Status
Fixed, retested
What was found
The callback that marks an order as paid did not verify the signature sent with it.
How it was shown
Sent a callback with a valid order number and no signature. The order changed to paid.
What it could lead to
Goods or services could be released without a payment.
How to fix it
Verify the signature over the raw body before reading it, reject old timestamps, and confirm the amount and order with the payment provider.
Retest
Unsigned, altered, late and repeated callbacks were all refused.

3. Error messages name internal tables

Severity
Low
Where
Several endpoints
Status
Open, accepted by the client until the next release
What was found
Unexpected input returned database error text.
How it was shown
Sent letters where a number was expected. The response named a table and a column.
What it could lead to
Helps an attacker plan. It does not give access by itself.
How to fix it
Log the detail on the server and return a general message with a reference number.
Retest
Not retested. The finding stays open in the report.

What this kind of report does not say

A penetration test describes what was found, in the scope that was agreed, on the days that were tested. It does not say that nothing else is wrong. The limits section says so in plain words, and a reader should expect to see it.

How VAPT worksVAPT explained

Tell us what you were asked for

Send the request from a customer, bank, investor or regulator. We reply with the questions that decide scope.