Skip to content
Penetration testing

Sample penetration test report

What you receive from a Veraha penetration test: an executive summary, the scope, rated findings with evidence and fixes, and retest results. Shown here for a fictional company.

How we test

This is a sample. Example Company, its systems and every finding below are invented to show the structure and level of detail of our reports. Client reports are confidential and are never published. A full report also holds every finding in detail, the testing timeline and appendices.

Penetration test report · Sample

Example Company Pty Ltd

Web application, API and AI assistant penetration test

Version 1.1, updated with retest results

1. Executive summary

Overall risk at testing: High

After retest: Medium

Example Company asked Veraha to test its web application, REST API and AI support assistant before an enterprise customer’s security review. Testing took five days in a staging environment that mirrors production, using test accounts in two test organisations.

We found eight issues: two high, three medium, two low and one informational. Two mattered most. Any signed-in user could read and change other customer organisations’ invoices through the API. And anyone could submit a support ticket that made the AI assistant send a support agent’s conversation to an outside server. Both were fixed and confirmed fixed at retest.

We found no critical issues, and several areas held up well under testing.

  • 0Critical
  • 2High
  • 3Medium
  • 2Low
  • 1Informational

Key recommendations

  1. Check on the server that the caller owns the object in every API request that takes an ID, and add cross-organisation tests to your build pipeline.
  2. Treat everything the AI assistant reads as untrusted, and control what its replies can load or link to.
  3. End all other sessions when a password changes, and rate-limit sign-in and password reset.

What held up well

  • Permissions between roles inside each organisation were enforced consistently.
  • File uploads were checked by type and size, and stored away from the web server.
  • We found no way to change prices or plan limits in the billing flow.

2. Scope and approach

Client
Example Company Pty Ltd (fictional)
In scope
app.example.com (web application); api.example.com (REST API v2, 58 endpoints from the OpenAPI file); the AI support assistant
Out of scope
Marketing website, third-party payment provider, corporate network, social engineering and denial-of-service testing
Approach
Grey box: authenticated testing with API documentation and test accounts
Test accounts
Two test organisations, each with owner, admin, member and support agent roles
Environment
Staging, a copy of production holding test data only
Testing time
Five testing days, then a retest after fixes
Standards
OWASP Web Security Testing Guide; OWASP API Security Top 10 (2023); OWASP Top 10 for LLM Applications (2025); CVSS v3.1
Authorisation
Written authorisation from Example Company before testing; the hosting provider’s testing policy checked

3. Findings summary

Eight findings, ordered by severity. At retest, 6 were fixed, one was open with a fix scheduled and one informational finding was accepted.

Findings with severity, CVSS score and status after retest
IDFindingSeverityCVSSAfter retest
VR-01Users can read and change other organisations’ invoices through the APIThe invoices API does not check that an invoice belongs to the caller’s organisation.High8.1Fixed
VR-02A support ticket can make the AI assistant send data to an outside serverHidden instructions in a public ticket make the assistant leak a support agent’s conversation.High7.4Fixed
VR-03Sessions stay valid after a password changeChanging a password does not end other active sessions, so a stolen session keeps working.Medium5.9OpenFix scheduled for the next release
VR-04Stored cross-site scripting in project namesA project name can run script in the browser of an administrator who views the dashboard.Medium5.4Fixed
VR-05No rate limiting on sign-in and password resetUnlimited attempts make password guessing and credential stuffing practical.Medium5.3Fixed
VR-06Software versions shown in response headersServer and framework versions help an attacker look up known vulnerabilities.Low3.7Fixed
VR-07HTTP Strict Transport Security not setBrowsers are not told to always use HTTPS for the app.Low3.1Fixed
VR-08Third-party scripts loaded without Subresource IntegrityScripts from a content delivery network are not pinned with integrity hashes.Informationaln/aAcceptedReviewed and accepted by Example Company

4. Detailed findings

Two findings are shown in full. In a real report, every finding has the same structure.

VR-01HighCVSS 8.1After retest:Fixed

Users can read and change other organisations’ invoices through the API

Affected
api.example.com: GET and PATCH /v2/invoices/{id}
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Description

The API loads an invoice by the ID in the URL and returns it to any signed-in user. It does not check that the invoice belongs to the caller’s organisation. The same gap applies when an invoice is updated.

Steps to reproduce

  1. Sign in as the member test account in Organisation A.
  2. Request GET /v2/invoices/48213, an invoice that belongs to Organisation B.
  3. The API returns the full invoice. A PATCH request to the same address changes its status.
  4. Invoice IDs are sequential, so other invoices can be found by counting. We used only the two test organisations set up for this engagement.

Evidence

GET /v2/invoices/48213 HTTP/1.1
Host: api.example.com
Authorization: Bearer eyJ…  (member, Organisation A)

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

{"id": 48213, "organisation_id": "org_B", "customer_name": "[redacted]",
 "total": "12,400.00", "status": "unpaid", "due_date": "[redacted]"}

Impact

Any signed-in user of any customer could read every other customer’s invoices, including customer names and amounts, and mark them paid or change their details. No special knowledge is needed.

Remediation

  • For every request that loads an object by its ID, check on the server that the object belongs to the caller’s organisation. Take the organisation from the session, never from the request.
  • Return 404 Not Found for objects in other organisations, so their existence is not revealed.
  • Add automated tests that call each endpoint with another organisation’s IDs, and run them on every build.
  • Non-sequential IDs make guessing harder, but they are hardening, not a fix.

References

Retest result

Fixed. Requests for Organisation B’s invoices now return 404 Not Found, for both reading and updating. We also checked the 12 other endpoints that take an ID and found no cross-organisation access.

VR-02HighCVSS 7.4After retest:Fixed

A support ticket can make the AI assistant send data to an outside server

Affected
app.example.com: AI support assistant, “Summarise tickets” feature
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Description

The assistant reads the text of support tickets to summarise them for support agents, and anyone can submit a ticket through the public help form. The assistant follows instructions written inside a ticket, and the chat window displays images from any web address. Together, these let an outside attacker make the assistant send an agent’s conversation, including other customers’ ticket content, to a server the attacker controls.

Steps to reproduce

  1. Without signing in, submit a ticket through the public help form. The ticket contains hidden instructions telling the assistant to add an image to its reply, with the conversation placed in the image’s web address. (The exact text is withheld from this sample.)
  2. As the support agent test account, ask the assistant to “Summarise today’s new tickets”.
  3. The reply includes an image from the tester’s server. The agent’s browser loads it, and the server’s log shows the summary of the other test tickets in the request.

Evidence

Tester's server log (agent's browser loading the image):
198.51.100.7 - - "GET /p.png?d=Ticket%2081%3A%20customer%20cannot%20reset
%20password%2C%20account%20[redacted]...  HTTP/1.1" 200

Impact

An attacker with no account could read confidential ticket content, which can include customers’ names, contact details and account information, whenever an agent uses the assistant on the ticket queue. Nothing looks unusual to the agent.

Remediation

  • Only display images and links in assistant replies when they point to domains you approve. Show anything else as plain text.
  • Restrict image sources in the app with a Content Security Policy (img-src), so the browser refuses to load images from unapproved domains.
  • Mark ticket content as untrusted data in the prompt, separate from instructions. This reduces the risk but does not remove it, so keep the output controls above.
  • Limit what the assistant can read to the tickets the agent is working on, and add known injection examples to the release tests for AI features.

References

Retest result

Fixed. The chat window now shows only images from approved domains, and the Content Security Policy blocks the rest. Our original ticket and five variations no longer caused any outside request.

5. How findings are rated

Each finding starts from a CVSS 3.1 base score: Critical 9.0 to 10.0, High 7.0 to 8.9, Medium 4.0 to 6.9 and Low 0.1 to 3.9. Informational findings have no score. Where your business context changes the real risk, we adjust the rating and explain why in the finding.

The meaning of each level is on our penetration testing page.

Want a report like this for your product?

Tell us what you need tested. After a short scoping call you get a fixed scope, timeline and price in writing.

What a useful report contains