Skip to content
Zilsec

Sample report

Sample penetration test report

A complete sample report for a fictional client: executive summary, findings with evidence and CVSS scores, remediation and retest results. This is the format you receive from Zilsec.

Request a quote

This is a sample. The client, systems and findings below are fictional and exist only to show the structure and level of detail of a Zilsec report. Real reports are confidential and are never published.

Engagement Web application and API penetration test
Client Acme Logistics s.r.o. (fictional)
Report ID ZS-2026-000 · version 1.1 (after retest)
Testing window 5 – 16 October 2026 · retest 9 November 2026
Tester Adam Žilla, OSWE
Classification Confidential – client and Zilsec only

1. Executive summary

Acme Logistics asked Zilsec to assess the security of its customer portal and the API behind it before the portal is opened to enterprise customers. Testing was performed manually from the perspective of an anonymous internet user and of an ordinary logged-in customer.

Overall risk before fixes: Critical. An attacker without any account could take over any customer account, and any logged-in customer could read and change the shipments of other customers. Both issues were simple to exploit and would have exposed the personal data of recipients across all tenants.

Overall risk after retest: Low. All Critical and High findings were fixed and verified. One Medium finding is partially fixed, and two lower-severity items remain open with an agreed plan.

Severity Found Fixed at retest Open
Critical 1 1 0
High 3 3 0
Medium 2 1 1
Low 1 0 1
Informational 1 0 1

What this means for the business

  1. Account takeover without login (ZS-01). The password reset function handed the secret reset token to whoever asked for it. One request was enough to take over any account, including administrators.
  2. Customers could see each other’s data (ZS-02, ZS-04). Access checks were missing on shipments and on the user role. A single curious customer could have downloaded recipient names, addresses and phone numbers of every tenant, which is a reportable personal data breach.
  3. The back office could be attacked through a customer field (ZS-03). Text entered by a customer was executed as code in the browser of support staff.

Recommended next steps: close the remaining Medium finding within 30 days, add authorisation tests to the release pipeline so the access-control issues cannot return, and repeat the test after the planned mobile app release.

2. Scope and methodology

In scope portal.acme-logistics.example (customer portal), api.acme-logistics.example (REST API v2, 46 endpoints)
Out of scope Payment gateway of the third-party provider, corporate website, denial-of-service testing
Approach Grey-box: two customer accounts in different tenants, one tenant administrator account, API documentation
Environment Staging, identical build to production
Effort 8 person-days of testing, 2 of reporting, 1 of retest

Testing followed the OWASP Web Security Testing Guide (WSTG) and the OWASP API Security Top 10 (2023), with the OWASP Application Security Verification Standard (ASVS) level 2 as the reference for expected controls. Automated tooling was used for coverage; every finding in this report was verified and exploited manually. Severity is rated with CVSS 3.1 base scores. The Critical finding was reported to the client by phone and encrypted e-mail within two hours of discovery.

3. Findings overview

ID Finding Severity CVSS 3.1 Status after retest
ZS-01 Password reset token returned in API response Critical 9.1 Fixed
ZS-02 Missing object-level authorisation on shipments High 8.1 Fixed
ZS-04 User can assign themselves the administrator role High 8.3 Fixed
ZS-03 Stored cross-site scripting in the back office High 7.6 Fixed
ZS-06 Verbose error messages disclose internals Medium 5.3 Fixed
ZS-05 No rate limiting on login Medium 4.8 Partially fixed
ZS-07 Session cookie without Secure and SameSite attributes Low 3.1 Open, planned
ZS-08 Outdated JavaScript library Informational – Open, planned

4. Detailed findings

ZS-01 · Password reset token returned in API response

Severity Critical · CVSS 3.1: 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)
Affected POST /api/v2/auth/password-reset
Classification CWE-640 · OWASP API2:2023 Broken Authentication · WSTG-ATHN-09

Description. When a password reset is requested, the API sends the reset link by e-mail but also includes the reset token in a debug object of the HTTP response. Anyone who knows or guesses a user’s e-mail address receives the token directly and can set a new password.

Evidence.

POST /api/v2/auth/password-reset HTTP/1.1
Host: api.acme-logistics.example
Content-Type: application/json

{"email":"victim@customer.example"}
HTTP/1.1 200 OK
Content-Type: application/json

{"status":"sent","debug":{"resetToken":"3f9c…e1a7","expiresIn":3600}}

The token was accepted by POST /api/v2/auth/password-reset/confirm and the tester logged in as the second test account without access to its mailbox.

Impact. Full takeover of any account, including tenant administrators, by an unauthenticated attacker. No user interaction is needed.

Remediation. Remove the debug object from production and staging responses. Return the same generic response whether or not the address exists. Make reset tokens single-use, valid for at most 30 minutes, and invalidate active sessions when the password changes.

Retest (9 November 2026): Fixed. The response no longer contains the token and is identical for existing and unknown addresses.

ZS-02 · Missing object-level authorisation on shipments

Severity High · CVSS 3.1: 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N)
Affected GET, PATCH /api/v2/shipments/{id}
Classification CWE-639 · OWASP API1:2023 Broken Object Level Authorization · WSTG-ATHZ-04

Description. The API checks that the caller is logged in but not that the requested shipment belongs to the caller’s tenant. Shipment identifiers are sequential numbers, so they can be enumerated.

Evidence. Logged in as a user of tenant A, the tester requested a shipment created by tenant B:

GET /api/v2/shipments/100482 HTTP/1.1
Host: api.acme-logistics.example
Authorization: Bearer <token of tenant A user>
HTTP/1.1 200 OK

{"id":100482,"tenantId":23,"recipient":{"name":"…","street":"…","phone":"…"},"status":"in_transit"}

A PATCH request to the same resource changed the delivery address of tenant B’s shipment.

Impact. Any customer can read and modify the shipments of all other customers. The data includes names, addresses and phone numbers of recipients, so exploitation would be a personal data breach under the GDPR, and a changed address enables theft of goods.

Remediation. Enforce tenant ownership on the server for every object access, ideally in one shared data-access layer rather than in each controller. Add automated tests that request another tenant’s objects and expect 404. Consider non-sequential identifiers as defence in depth, not as the fix.

Retest: Fixed. Requests for objects of another tenant return 404 for read, update and delete.

ZS-04 · User can assign themselves the administrator role

Severity High · CVSS 3.1: 8.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L)
Affected PATCH /api/v2/users/me
Classification CWE-915 · OWASP API3:2023 Broken Object Property Level Authorization · WSTG-INPV-20

Description. The profile update endpoint copies all properties of the request body to the user object. The role property is not offered in the user interface but is accepted when added to the request (mass assignment).

Evidence.

PATCH /api/v2/users/me HTTP/1.1
Host: api.acme-logistics.example
Authorization: Bearer <token of ordinary user>
Content-Type: application/json

{"displayName":"Test User","role":"tenant_admin"}

The response confirmed "role":"tenant_admin" and the account could then manage users, API keys and billing settings of its tenant.

Impact. Any user can become administrator of their tenant: create and remove users, generate API keys and export all tenant data.

Remediation. Accept only an explicit allow-list of properties on each endpoint. Change roles only through a dedicated endpoint that requires an administrator.

Retest: Fixed. Unknown and protected properties are rejected with 400.

ZS-03 · Stored cross-site scripting in the back office

Severity High · CVSS 3.1: 7.6 (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N)
Affected Field deliveryNote in POST /api/v2/shipments, rendered in backoffice.acme-logistics.example
Classification CWE-79 · WSTG-INPV-02

Description. The delivery note entered by a customer is shown to support staff in the back-office application without output encoding. HTML and JavaScript in the note are executed in the staff member’s browser.

Evidence. A shipment was created with the note <img src=x onerror=alert(document.domain)>. When the tenant administrator opened the shipment in the back office, the script ran in the back-office origin.

Impact. A customer can run code in the session of support staff, read data of other tenants shown in the back office and perform actions on behalf of staff.

Remediation. Encode output by context in the back-office templates and avoid rendering user input as HTML. Add a Content Security Policy without unsafe-inline to the back office to limit the impact of future mistakes.

Retest: Fixed. The note is rendered as text and a Content Security Policy is in place.

ZS-06 · Verbose error messages disclose internals

Severity Medium · CVSS 3.1: 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
Affected All API endpoints
Classification CWE-209 · OWASP API8:2023 Security Misconfiguration · WSTG-ERRH-01

Description. Malformed JSON triggers an HTTP 500 response with a full stack trace, including framework and library versions and file paths on the server.

Impact. The information makes it easier to select known exploits for the exact versions in use.

Remediation. Return a generic error with a correlation ID and log details on the server only.

Retest: Fixed.

ZS-05 · No rate limiting on login

Severity Medium · CVSS 3.1: 4.8 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N)
Affected POST /api/v2/auth/login
Classification CWE-307 · OWASP API2:2023 Broken Authentication · WSTG-ATHN-03

Description. The tester sent 300 login attempts for one account within 60 seconds without delay, lockout or CAPTCHA.

Impact. Password guessing and credential stuffing with leaked passwords are practical against all accounts.

Remediation. Limit attempts per account and per source address with progressive delays, alert on spikes and offer multi-factor authentication to tenant administrators.

Retest: Partially fixed. A limit per IP address was added. Attempts distributed across many addresses are still not limited per account. Agreed fix: per-account throttling in the December release.

Severity Low · CVSS 3.1: 3.1 (AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N)
Affected Cookie session of the customer portal
Classification CWE-614 · CWE-1275 · WSTG-SESS-02

Description and impact. The session cookie is set without the Secure and SameSite attributes. It can be sent over an unencrypted connection and with cross-site requests, which weakens the protection against session theft and request forgery.

Remediation. Set Secure; HttpOnly; SameSite=Lax and enable HSTS.

Retest: Open. Planned together with the session library upgrade.

ZS-08 · Outdated JavaScript library

Severity Informational
Affected jQuery 3.4.1 on the login page
Classification CWE-1395 · OWASP Top 10 2021 A06 Vulnerable and Outdated Components

Description and impact. The version in use has publicly known cross-site scripting weaknesses (CVE-2020-11022, CVE-2020-11023). No exploitable use of the affected functions was found in the tested pages, so this is reported for patch management only.

Remediation. Update to the current release and add dependency scanning to the build.

Retest: Open. Scheduled with the next front-end release.

5. Retest summary

The retest on 9 November 2026 covered all eight findings on the updated staging build. Each fix was verified by repeating the original attack and reasonable variations of it.

Result Findings
Fixed ZS-01, ZS-02, ZS-03, ZS-04, ZS-06
Partially fixed ZS-05
Open with agreed plan ZS-07, ZS-08

6. Severity ratings and limitations

Rating CVSS 3.1 Expected response
Critical 9.0 – 10.0 Fix immediately; reported during the test
High 7.0 – 8.9 Fix before release or within 30 days
Medium 4.0 – 6.9 Fix within 90 days
Low 0.1 – 3.9 Fix as part of normal maintenance
Informational – No direct risk; hardening advice

A penetration test is a point-in-time assessment of the agreed scope with a limited time budget. It reduces risk but cannot prove that no further vulnerabilities exist, and it does not cover changes deployed after the testing window. Continuous monitoring between tests closes part of that gap.

Ready to see what an attacker would see?

Tell us about your systems and we will come back within one business day with a recommended approach.