Web application penetration testing

A public site and a customer portal call for different tests. Start with the workflows your team needs to trust: who can see a customer’s records, who can approve a transaction, and what the application does with the data it receives.

Discuss a test

For the first conversation

  • Which applications you want tested and in which environment.
  • The workflows you need covered, such as document uploads or approvals.
  • The user roles involved, such as customer, operator, and administrator.

Leave passwords, tokens, source files, and customer data out of the contact form.

Where to focus the web test

Area What is examined
Sign-in and sessions How the application manages login, logout, and account recovery.
Access to functions and records Whether users, administrators, and different customer organizations are kept within their permissions.
Business rules Whether the application enforces the rules behind approvals, status changes, or transactions.
Input handling How the application treats form data, uploaded files, and input from other services.

The system owner must authorize the work. The written scope sets out what can be assessed.

Testing reference: OWASP Web Security Testing Guide (WSTG).

What a finding looks like

Sample report · all data is fictional

WS-CONTOH-02

Another customer's invoice opens by changing the number in the URL

Insecure Direct Object Reference (IDOR)

Risk rating
Medium CVSS 3.1: 6.5 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Affected
GET /api/v2/invoices/{id} · Peran: pelanggan

Note: For management: how urgent it is. The score is calculated from the CVSS vector, not estimated.

Summary

A signed-in customer can open invoices that belong to other customers by changing the invoice number in the request. The server checks that the user is signed in, but not that the invoice is theirs.

Evidence

GET /api/v2/invoices/10433 HTTP/1.1
Host: portal.contoh.test
Cookie: session=<sesi akun uji A>

HTTP/1.1 200 OK
{"id":10433,"pelanggan":"PT Contoh Dua","total":18450000}

Test account A owns invoice 10432 only.

Note: For developers: a request they can replay to confirm the finding.

Impact

Any account holder can read billing data for every customer.

Recommendation

Check invoice ownership on the server for every request, not just sign-in state. Apply the same check to other endpoints that accept an object ID.

Note: For your team: what to change, and where else to check for the same pattern.

Status

Open

Note: Updated after a retest, if a retest is part of the agreed scope.

This sample is fictional. The system, organisation and data were invented for illustration and do not come from client work. Download the full sample report (PDF) ↗

What goes in the web test report

Report section Contents
Risk summary How findings affect users or business processes and which ones warrant attention first.
Evidence behind the findings The affected feature, the conditions under which the issue was observed, and the evidence.
Fix recommendations Where the engineering team should make changes and what the corrected behavior should be.

Download the sample report (PDF) ↗ A fictional scenario, not a client report.

Questions before booking

What determines the price of a web pentest?

The quote is scoped around the applications, roles, and workflows in the test. One portal with several approval paths can take more work than several public sites. Flag any retest requirement when requesting a quote.

Does a web test cover the API?

Only if the API is included in the written scope. Identify which endpoints and workflows need coverage. A separate API test may make sense if other applications or partners also use it.

Can the test run against production?

If production is your only option, flag it up front. Agree on testing hours, off-limits actions, and when the test must stop before any testing begins.

How long will testing take?

That depends on the features and roles in scope, when access is ready, and the reporting requirements. Include any release or procurement deadline so testing and report delivery dates can be discussed up front.

Scope a web application test

Send the system you want tested, roughly how big it is, and your target date.