Skip to content
mexsic

Sample report with fictitious data

Banco Ejemplo does not exist. The organization, the findings, the addresses and the dates were made up to show the structure and the level of detail of a report.

To save it as a PDF, use your browser's print function.

Penetration test report

Online banking: web application and API

Banco Ejemplo, S.A. (fictitious)

Client
Banco Ejemplo, S.A. (fictitious)
System
Online banking, pre-production environment
Test period
September 7 to 18, 2026
Retest
October 26, 2026
Version
1.1, with the retest results
Classification
Confidential in a real report; this sample is public

Version history

VersionDateChange
1.0September 25, 2026Initial delivery
1.1October 27, 2026Retest results added

Executive summary

Banco Ejemplo requested a penetration test of its online banking before releasing a new version. The test ran from September 7 to 18, 2026 in the pre-production environment, with test accounts provided by the bank.

Four findings were confirmed: one critical, one high, one medium and one low. The first two allowed reading account information of other customers. The critical one also allowed acting on behalf of any customer without knowing their password.

We recommend not releasing the new version until F-01 and F-02 are fixed, and reviewing the production logs if the current version shares that code.

In the retest of October 26, 2026, F-01 and F-02 were fixed, F-03 was partially fixed and F-04 was still open, scheduled by the bank for the next version.

Findings by severity

Critical
1
High
1
Medium
1
Low
1

Controls that worked

  • No injection was found in the parameters tested: database queries use parameters.
  • The session expires on inactivity and is invalidated on the server at logout.
  • Transfers require a one-time code in addition to the session.

Scope

Gray-box test: the team had two test customer accounts and the API documentation, with no access to the source code.

AssetTypeAddress
app.example.comWeb application192.0.2.10
api.example.comREST API192.0.2.11
Test accounts
cliente-prueba-a (account 70001) and cliente-prueba-b (account 70002)
Test source
198.51.100.24
Out of scope
The bank's core system, internal network, production environment, denial of service and social engineering

Limitations

  • The pre-production environment does not have the web application firewall that exists in production. The results on attempt limits (F-03) must be confirmed there.
  • Transfers to other banks were not tested because pre-production is not connected to those systems.

Methodology

Testing followed the OWASP Web Security Testing Guide (WSTG) across six areas: reconnaissance, authentication and session, authorization, input validation, business logic and configuration. Manual work was combined with automated tools. A person reproduced each finding before it was included.

Severity starts from the CVSS 3.1 base score and is adjusted to the business context. When the final severity differs from the base, the finding explains the reason.

Severity scale

Critical
Allows compromising customer accounts or data with no preconditions. Fix before release.
High
Exposes sensitive data or operations under conditions that are easy to meet. Fix before release.
Medium
Requires additional conditions or has a bounded impact. Fix in the next version.
Low
Helps other attacks without causing harm by itself. Schedule its fix.

Full methodology

Findings summary

IDFindingSeverityCVSS baseCWERetest
F-01The API accepts unsigned session tokensCritical9.1CWE-347Fixed
F-02A customer can download other customers' account statementsHigh6.5CWE-639Fixed
F-03One-time code verification does not limit attemptsMedium5.9CWE-307Partially fixed
F-04Error messages reveal internal detailsLow5.3CWE-209Open

Findings

F-01Critical

The API accepts unsigned session tokens

CVSS 3.1 base
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected asset
api.example.com, all authenticated endpoints

Description

The API identifies the customer with a JWT on every request. The server takes the signing algorithm from the token's own header and accepts the value "none", that is, tokens with no signature.

Anyone can build a token with another customer's identifier and the API treats it as a valid session.

Evidence

GET /v2/accounts HTTP/1.1
Host: api.example.com
Authorization: Bearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJjbGllbnRlLXBydWViYS1iIiwicm9sZSI6ImN1c3RvbWVyIn0.

HTTP/1.1 200 OK
Content-Type: application/json

{"customer":"cliente-prueba-b",
 "accounts":[{"id":"70002","alias":"Nomina","balance":"15230.00"}]}

# Decoded token (no third part: there is no signature)
# header:  {"alg":"none","typ":"JWT"}
# payload: {"sub":"cliente-prueba-b","role":"customer"}
Request sent without logging in. The response contains the data of test account B.

Impact

An attacker with no credentials can read balances, transactions and personal data of any customer just by knowing or guessing their identifier.

During the test it was also possible to change the contact email of test account B. Transfers still required the one-time code.

Recommendation

  • Fix the expected signing algorithm on the server and reject any token that declares a different one, including "none".
  • Add an automated test confirming that an unsigned token, or one signed with a different key, receives a 401 response.
  • After deploying the fix, invalidate active sessions.

References

  • CWE-347: Improper Verification of Cryptographic Signature
  • OWASP WSTG-SESS-10: Testing JSON Web Tokens
  • RFC 8725: JSON Web Token Best Current Practices

F-02High

A customer can download other customers' account statements

CVSS 3.1 base
6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Affected asset
api.example.com, GET /v2/statements/{account}/{period}.pdf
Severity adjustment
The base score corresponds to medium severity. It is raised to high because the statement contains the customer's name, address and transactions, and because account numbers are consecutive, which allows walking through all of them.

Description

The endpoint that serves account statements as PDF takes the account number in the URL. The server checks that the session is valid, but not that the account belongs to the customer of that session.

Evidence

GET /v2/statements/70002/2026-08.pdf HTTP/1.1
Host: api.example.com
Authorization: Bearer <valid token of cliente-prueba-a>

HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="estado-70002-2026-08.pdf"
The session belongs to test account A (70001). Account 70002 belongs to test account B.

Impact

Any logged-in customer can download the account statements of the other customers by changing a number in the URL.

Recommendation

  • Check on the server, in every endpoint that takes an account number, that the account belongs to the authenticated customer.
  • Do that check in a single shared component, so a new endpoint cannot skip it.
  • Non-consecutive identifiers are an additional measure, not a substitute for the check.

References

  • CWE-639: Authorization Bypass Through User-Controlled Key
  • OWASP API Security Top 10 (2023), API1: Broken Object Level Authorization
  • OWASP WSTG-ATHZ-04: Testing for Insecure Direct Object References

F-03Medium

One-time code verification does not limit attempts

CVSS 3.1 base
5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected asset
api.example.com, POST /v2/auth/otp/verify

Description

After the password, login asks for a six-digit code. The endpoint that verifies it accepts consecutive failed attempts without locking the session, without adding delays and without invalidating the code.

Evidence

POST /v2/auth/otp/verify HTTP/1.1
Host: api.example.com
Content-Type: application/json

{"session":"<session of cliente-prueba-a>","code":"000000"}

HTTP/1.1 401 Unauthorized
Content-Type: application/json

{"error":"invalid_code"}

# 500 consecutive requests from 198.51.100.24
# 500 responses 401, no lockout and no delay
Test run on test account A, with its password.

Impact

Someone who already knows a customer's password, for example after an email scam, can try codes automatically while the code remains valid. The second factor protects less than intended.

Recommendation

  • Limit attempts per session and per account, not only per IP address.
  • Invalidate the code after a few failed attempts and require a new one.
  • Notify the customer when there are repeated failed attempts.

References

  • CWE-307: Improper Restriction of Excessive Authentication Attempts
  • OWASP WSTG-ATHN-03: Testing for Weak Lock Out Mechanism

F-04Low

Error messages reveal internal details

CVSS 3.1 base
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Affected asset
api.example.com, 500 error responses
Severity adjustment
The base score corresponds to medium severity. It is lowered to low because the exposed information does not grant access by itself and no known vulnerability was identified in the version revealed.

Description

When a request causes an unexpected error, the API returns the exception message, the class and line where it happened, and the name and version of the framework.

Evidence

GET /v2/accounts/abc HTTP/1.1
Host: api.example.com
Authorization: Bearer <valid token of cliente-prueba-a>

HTTP/1.1 500 Internal Server Error
Content-Type: application/json

{"error":"NumberFormatException: For input string: \"abc\"",
 "trace":"at com.example.banking.api.AccountController.get(AccountController.java:88)",
 "server":"example-framework/3.1.4"}
The class and framework names are fictitious.

Impact

The information helps an attacker prepare other attacks: they learn the internal structure and the exact software version.

Recommendation

  • Return a generic message with a correlation identifier and keep the detail only in the server logs.
  • Confirm that production and pre-production use the same error configuration.

References

  • CWE-209: Generation of Error Message Containing Sensitive Information
  • OWASP WSTG-ERRH-01: Testing for Improper Error Handling

Remediation plan

Actions are ordered by priority. Owners and time frames are a suggestion; the bank adjusts them to its organization.

PriorityActionFindingsSuggested ownerTime frame
1Fix the token signing algorithm and invalidate active sessionsF-01API teamBefore release
2Check account ownership in every endpoint that takes an account numberF-02API teamBefore release
3Review production logs for unsigned tokens and for downloads of other customers' statementsF-01, F-02Security and operationsImmediate
4Limit code verification attempts per session and per accountF-03Authentication teamNext version
5Return generic errors and align the configuration across environmentsF-04API teamNext version
6Add automated authorization tests to the integration processF-01, F-02DevelopmentMedium term

Retest

On October 26, 2026 each finding was tested again in pre-production, with the same test accounts.

IDStatusResult
F-01FixedAn unsigned token and a token signed with a different key receive a 401 response.
F-02FixedRequesting the statement of someone else's account returns 403 in every endpoint that takes an account number.
F-03Partially fixedAfter five failed attempts the source IP address is blocked, but from a second address (198.51.100.25) attempts on the same session continue. The limit must apply to the session and to the account.
F-04OpenNo change. The bank scheduled the fix for the next version and the system owner accepted the risk until then.

This report describes the state of the systems in scope on the dates stated. It does not prove that no other vulnerabilities exist and it does not cover changes made after the retest.

Sample report with fictitious data

Banco Ejemplo does not exist. The organization, the findings, the addresses and the dates were made up to show the structure and the level of detail of a report.

Next step

Your report would have this structure, with the findings of your system.

On a call we define the scope of the test, the dates and what you would receive at the end.