Web applications and APIs: penetration test vs vulnerability assessment

A vulnerability assessment finds known weaknesses across many targets, and a penetration test shows which of them an attacker can exploit, including business logic and access control flaws. Most teams need both, on different schedules.

On this page

Penetration test vs vulnerability assessment: which one your web app or API needs

For a web application or API, a penetration test answers whether an attacker can get past your controls, while a vulnerability assessment answers which known weaknesses exist. Choose the penetration test when a release changes authentication, authorization, object-level access or payment logic, or when PCI DSS or DORA names penetration testing as an obligation. Choose the vulnerability assessment when the problem is a growing scan backlog across many services and you need a repeatable inventory of known issues to triage. NIST SP 800-115 treats penetration testing as a validation technique that uses actual exploits, so it proves impact but carries more operational risk. For an API, scope object-level authorization, function-level authorization and the business flows a caller can repeat at volume first, because the ASVS notes that automated DAST and SAST tools cannot fully verify business logic and access control.

Most teams need both. NIST SP 800-115 notes that organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk, and it suggests regularly scheduled scanning interspersed with periodic penetration testing. Run the vulnerability assessment on every build or on a fixed schedule so the backlog tracks current code, then use the penetration test to prove what a scan cannot: whether a finding chains into account takeover or cross-tenant data access. For each application role, have the tester work as an authenticated user, since CIS Controls Safeguard 16.13 says authenticated testing suits business logic flaws in critical applications better than automated testing. In the statement of work, require the report to mark which findings were validated by hand and which came from the scan, so each result states its method.

For PCI DSS, a passing automated scan does not satisfy the penetration test requirement. The PCI SSC Penetration Testing Guidance (v1.1, September 2017) describes penetration testing as essentially a manual process and says that simply running an automated tool does not satisfy the requirement. Under PCI DSS v4.x requirement 11.4.1, application-layer testing must at minimum cover the vulnerabilities listed in requirement 6.2.4, including abuse or bypass of application features through API manipulation and client-side manipulation. Those are the cases automation misses, so a clean scan proves only that the scanner ran. Before you sign, ask your QSA which evidence they accept, require the provider to show manual exploitation steps for each application role, and include a retest of fixed findings in the written scope.

How a penetration test vs vulnerability assessment differs on method and evidence

This table compares a web application and API penetration test with a vulnerability assessment on goal, method, depth, access control coverage, risk and evidence. Read each row as a question to put to a provider: what will be exploited, and what will be handed back. The main takeaway is that a vulnerability assessment shows where weaknesses may exist, while a penetration test shows which ones an attacker can use and what they lead to.

FactorPenetration testVulnerability assessment
GoalProve which weaknesses an attacker can exploit and what they lead toFind and rank known weaknesses across the application and API inventory
MethodManual exploitation of endpoints and workflows, supported by automated toolsAutomated scanning and version matching, with analyst triage
Who runs itTrained testers, typically manual; PCI SSC says automated tools alone do not meet its penetration test requirementSecurity or operations staff using scanners, which can run in-house
Depth of validationConfirms exploitability and impact before a finding is reportedFlags likely weaknesses; results need triage to remove false positives
Business logic and access controlTesters act as anonymous and authenticated users to probe object-level, function-level and workflow abuseAutomated tools cannot fully verify these areas, per OWASP ASVS 5.0.0
Risk to the targetExploits run against live systems and data, which NIST SP 800-115 rates as high riskMostly non-exploiting checks, so lower risk, though aggressive scan settings can disrupt fragile endpoints
Evidence producedReproducible attack paths with proof of impact and remediation guidanceRanked findings list, usually with less proof of exploitability
Cadence and retestScheduled, at least annually under CIS Controls Safeguard 18.5; retest confirms each fixRun more often, as NIST SP 800-115 suggests alongside periodic penetration tests; rescans confirm a finding has cleared

Decision path for a penetration test vs vulnerability assessment

The diagram starts with the target: a web application or API in scope. The first decision asks whether it is internet-facing, handles payments or holds regulated data. If it is internal and holds no regulated data, a scheduled vulnerability assessment is usually the proportionate starting point. If it is public or regulated, the second decision asks whether the buyer needs proof of exploitability or chained flaws, such as an authorization weakness combined with a session flaw (illustrative). A yes sends the work to an application penetration test that covers every role, and a yes with ongoing needs adds scheduled scans. Every path ends in a retest of fixed findings. Confirm the branch against the compliance requirements that apply to your system before you buy.

The path from scope to retest, with the condition for each branch.

What a vulnerability assessment finds on a web app and API, and what it misses

A vulnerability assessment and a penetration test both examine web applications and APIs, but they answer different questions. The cards below show where a scan-led assessment gives broad coverage, where it stops, and where a tester with authenticated access has to take over. Each card names one gap a buyer should check before choosing.

Breadth across many hosts

A vulnerability assessment is strongest on breadth. A scanner can check many hosts, API gateways, frameworks and component versions in one run, then repeat the run on a schedule. Known flaws are its core output: missing patches, default settings and recognized misconfigurations. NIST SP 800-115 describes review techniques as passive and minimal risk, which is why scheduled scanning fits between periodic penetration tests. Confirm the scan covers your API specifications and authenticated routes, because a scan of the public pages says little about the rest.

Validated exploitation and chaining

A penetration test shows whether a weakness can actually be used. The tester sends exploit attempts, confirms what data or function becomes reachable, and links small findings into one attack path, such as a weak token that exposes an object reference. NIST SP 800-115 rates this work as high risk because it uses working exploits against production systems and data, so set the test window and rules of engagement in writing. Chaining is where severity often changes, and a list of separate scanner results rarely shows it.

Broken access control and BOLA

Access control is hard to check automatically. OWASP Top 10 2025 places Broken Access Control first (A01), and the API Security Top 10 2023 lists object-level authorization failures as API1, where changing an ID in a request returns another user's record. ASVS 5.0.0 says automated DAST and SAST tools cannot fully verify many access control requirements. Verifying it takes test accounts for each role and a tester who compares what each account can read and change. Ask whether the penetration test plans two or more accounts per role.

API Top 10 2023

Business logic abuse

Business logic flaws use valid requests in ways the designer did not plan for, such as applying a discount twice, skipping a payment step or changing a price in an API call. PCI DSS v4.x requirement 6.2.4 lists these attacks, and requirement 11.4.1 requires application-layer penetration testing to identify them. CIS Safeguard 16.13 says authenticated testing suits critical applications better than code scanning and automated testing for these flaws. Ask the provider how each step of your core workflows will be tested with an authenticated account.

CIS Control 16 text

What both approaches miss

Neither approach covers everything. Untested roles, such as a partner or support role that never received test credentials, leave whole workflows unexamined. Out-of-scope assets are easy to miss: an older API version, a staging host or a third-party callback that never made it into the scope document. Design flaws, such as a missing trust boundary between services, need threat modeling or source review, which the OWASP WSTG lists as separate techniques. Compare the scope document with your API inventory before testing starts.

WSTG v4.2 techniques

What you receive from a penetration test vs vulnerability assessment

This table compares what each service hands you at the end of an engagement, from the asset list and scored findings to the exploitation evidence and coverage statement. Read the penetration test column for validated, chained attack paths and the vulnerability assessment column for breadth and triage input. The main takeaway is that a penetration test report shows what an attacker could do, while an ASVS verification report shows what was checked.

DeliverablePenetration testVulnerability assessmentASVS 5.0.0 verification report
Asset listTargets from the written scope, plus the routes tested to reach each application or APIHosts, applications and endpoints found within the scan scopeScope statement naming the application, its version and the requirement levels checked
Scored findingsValidated findings only, each with reproduction steps and an impact statementScored findings, often CVSS-rated, that still need triage to confirm exposureSummary covering every requirement checked, including those that passed
Exploitation evidenceRequest and response captures, screenshots or sample data showing access was gainedScanner output and version or configuration evidence, usually without proof of exploitationEvidence supporting each stated result, mapped to the requirement it covers
Attack narrativeChained path, for example (illustrative) broken object level authorization leading to customer record accessNot produced; findings are listed one by oneNot the focus; the report records scope, results and exceptions
Remediation guidanceFix steps for the exploited path, plus a retest of fixes if the written scope includes oneGeneric fix guidance per finding, often patch or configuration adviceGuidance on resolving each exception identified
Exceptions and not-applicable itemsIssues listed by exception, so passed checks are often not shownDetections listed, with no record of checks that passedRequirements with exceptions and requirements that do not apply, both noted
RetestConfirm in the written scope whether a retest of fixes is includedRescan of the same targets; confirm frequency and scope in the contractConfirm in the written scope whether re-verification of exceptions is included

How each approach runs against a web app and its API

The two approaches differ in who decides what gets tried next. A vulnerability assessment runs an automated scanner in two passes: an unauthenticated pass against what an anonymous visitor can reach, and an authenticated pass with a session for each customer role, so it sees responses that only logged-in users receive. The output is a list of recognized issues. A penetration test follows the Penetration Testing Execution Standard (PTES), which has seven main sections: pre-engagement interactions, intelligence gathering, threat modeling, vulnerability analysis, exploitation, post exploitation and reporting. The tester chooses each next step from what the previous one showed, and exploitation is the phase that proves whether a weakness is reachable and what it exposes. Before testing starts, confirm in writing which roles, accounts and environments the tester receives.

Coverage can be mapped to the twelve categories of the OWASP Web Security Testing Guide v4.2, published on 3 December 2020, while v5.0 is in development, so ask which version a provider maps to. The categories run from information gathering and configuration and deployment management through identity management, authentication, authorization, session management, input validation, error handling, weak cryptography, business logic, client-side testing and API testing. A scanner covers the known patterns in configuration, input validation, error handling and weak cryptography. Authorization and business logic are where it falls short: ASVS 5.0.0 notes that automated DAST and SAST tools cannot fully verify many requirements, especially those on business logic and access control. For APIs, the OWASP API Security Top 10 2023 is the list to test against, and its broken object level authorization, broken function level authorization and unrestricted access to sensitive business flows entries all need a tester who can act as more than one user.

Illustrative example: a customer-facing order API has two customer roles, a buyer and a seller, and GET /orders/{orderId} returns order details. An unauthenticated scan receives 401 responses and stops there. An authenticated scan logged in as Buyer A sees only Buyer A's orders, so it reports nothing, even though changing orderId to an order owned by Buyer B might return Buyer B's data. A tester holding both sessions can make that request, record it as a broken object level authorization finding (API1), then check whether the response exposes fields such as payment details that a buyer should not see (API3). CIS Controls v8.1 Safeguard 16.13 describes the same need: for critical applications, testers should act as both authenticated and unauthenticated users. Before signing, ask how many role accounts the provider will use, who provisions them and how they are removed afterward.

What drives the cost of a penetration test vs vulnerability assessment

The bill for a web application or API test follows the work the tester must do. A penetration test is mostly manual work, while a vulnerability assessment is mostly scanning and triage, so each card names one cost lever and what to confirm before you sign.

Tester time and scope size

A penetration test is priced mainly on tester hours, and those hours grow with the number of applications and APIs in scope, the number of user roles and how many workflows the tester must work through by hand. Authorization flaws, business logic abuse and API object-level checks take manual time that a scanner cannot shortcut. A vulnerability assessment spends fewer tester hours because the scanner does the sweep, although triage of its output still takes analyst time. Ask the vendor to list each application, API base URL and role in the written scope.

Roles and test accounts

Each application role, such as customer, agent, administrator or partner, needs its own test account so the tester can check whether one role reaches another role's data or functions. Accounts also need the seed data, API tokens and sign-in path that actual users of that role follow. CIS Controls v8.1 Safeguard 16.13 describes testers acting as both authenticated and unauthenticated users on critical applications. Ask who creates and removes accounts, how credentials are passed to the testers and how long they stay active.

CIS Control 16 text

ASVS verification level

OWASP ASVS defines three verification levels, L1 to L3, each increasing in depth and complexity. OWASP's guidance is to start with L1 for the most critical concerns and move up according to the needs of the organization and the application. Higher levels mean more tester time per requirement and more evidence to record. Under ASVS 5.0.0, a verification report lists the scope, every requirement checked and any that do not apply, so ask which level and which chapters apply, such as V4 API and Web Service and V8 Authorization.

OWASP ASVS project

Documentation and source access

ASVS 5.0.0 strongly encourages hybrid testing, where testers receive documentation or source code alongside the running application, over testing with neither. Access preparation is a cost of its own: architecture diagrams, API specifications, repository read access and walk-through sessions take coordination time on both sides. Source review also covers the business logic and access control checks that automated DAST and SAST tools cannot fully verify. Ask whether the quote includes source review hours, who provides the access and how it is removed when the engagement ends.

ASVS 5.0.0 source

Reporting, retests and repeats

Setup, scoping and account provisioning happen once, while each test cycle and its retest recur. Traditional penetration test reports list issues by exception, while an ASVS verification report also summarizes every requirement checked, so the extra evidence adds writing time. Confirm whether retesting after fixes sits in the quote or is priced separately. CIS Controls v8.1 Safeguards 18.2 and 18.5 ask for internal and external penetration tests at least annually, and NIST SP 800-115 suggests regularly scheduled scanning interspersed with periodic penetration testing.

NIST SP 800-115

What to request in a quote

DeployOpen does not publish a price list. Each quote follows from the written scope, which should name the applications and APIs, the roles and test accounts, the ASVS level, the access provided, the report format, the retest rounds and the repeat schedule. Ask the vendor to separate one-time setup from recurring testing and to state what a vulnerability assessment and a penetration test each include. Most engagements are fixed-scope, so assumptions about access and environments should appear in writing before work starts.

When PCI DSS, CIS, DORA and NIST call for a penetration test or scan

For organizations in scope for PCI DSS v4.x, requirement 11.4.1 calls for application-layer penetration testing that identifies, at a minimum, the vulnerabilities listed in requirement 6.2.4. That list includes attacks on business logic, such as abuse or bypass of application features through manipulation of APIs and client-side functions. The PCI SSC Penetration Testing Guidance v1.1 (September 2017) describes penetration testing as essentially a manual process and states that simply running an automated tool does not satisfy the requirement.

  • Application layer: The test must reach the in-scope web applications and APIs, so network-only testing of the hosts beneath them does not meet 11.4.1 by itself.
  • Minimum vulnerability set: Coverage must include the requirement 6.2.4 vulnerabilities, so ask for a report that maps each finding class to that list.
  • Manual exploitation: Automated tools can support the work, but the guidance treats manual testing as the core of the engagement, especially for business logic and access paths.
  • Repeat testing: Confirm the cadence and retest triggers with your assessor, since they depend on your environment and changes.
  • Scan reports: A vulnerability scan or ASV scan is different evidence and should not be presented as the application penetration test.

Ask your QSA which tester qualifications and report format they accept for 11.4.1, and whether they expect each 6.2.4 category addressed in the report.

How to combine scanning with periodic penetration tests

Scanning shows coverage across the inventory, and penetration testing shows what an attacker can actually do with it. Running both in a fixed order means each informs the other: scans catch known weaknesses between tests, and tests reveal business logic and authorization gaps that automated tools cannot fully verify. The sequence produces validated fixes and updated scan rules over time.

  1. Build and maintain the application and API inventory

    Security and application owners list every web application and API in scope, including internet-facing and internal ones, with its owner, version, API specification, authentication methods, roles and the data it handles. Gateway, DNS and cloud account records are reconciled against the list so shadow APIs are found. OWASP's API Security Top 10 2023 lists improper inventory management as its own risk, so this check matters. The step is done when every entry has a named owner and is covered by a scan schedule.

  2. Run scheduled scans against every inventory entry

    Security engineers configure authenticated scans of web applications and APIs using the inventory, with API specifications loaded so endpoints are not missed. NIST SP 800-115 suggests regularly scheduled scanning interspersed with periodic penetration testing, so scanning is the ongoing layer and the tests are the deeper check. Set the schedule from your risk and any framework you are assessed against, and confirm with your scanner vendor which checks cover API authorization. The step is done when each scan has a named triage owner and a log of results.

  3. Triage scan results before each test

    Application owners review new scanner output before each test and mark every finding as confirmed, false positive or accepted risk, with a short reason for each. Confirmed issues go to the backlog for fixing, and open candidates go to the penetration tester as leads. Scanner output counts as a lead until someone reproduces it. The step is done when every scan finding has a recorded status before the tester starts.

  4. Run penetration tests at release and change points

    Trigger a penetration test before major releases and after significant changes, such as a new authentication flow, a new API version or a change to payment logic. Testers cover every relevant role, including anonymous users, each authenticated role and administrators, using test accounts provisioned in advance. OWASP ASVS 5.0.0 strongly encourages hybrid testing that uses documentation or source, because automated tools cannot fully verify business logic and access control. The step is done when the test plan maps each inventory role to its tests and the report lists validated findings with reproduction steps.

  5. Fix and retest each validated finding

    Developers fix each validated finding under the owner's sign-off, and the tester retests the same reproduction steps against the fixed build. Retest evidence, including the request and response or the test result, is attached to the finding. Ask the tester to report what was checked as well as what failed, because a list of exceptions alone does not show coverage. The step is done when every validated finding has a recorded retest result, and any finding accepted as risk has a named approver.

  6. Feed results into scan rules and backlog

    Each finding class is traced to a cause. Recurring issues, such as broken object level authorization on an API, become new scanner rules, custom test cases or code-level checks, and design problems become backlog items with owners. Confirm with your scanner vendor whether custom rules can express your authorization checks. CIS Controls v8.1 Safeguard 18.4 asks you to validate security measures after each test, so detections cover the techniques testers used. The step is done when every finding class from the test has a scanner rule, code change or backlog item, and the scan schedule reflects it.

What buyers ask about penetration tests and vulnerability assessments before they commission one

What drives the cost of a web application or API penetration test?

Scope and effort drive most of the cost, because the bulk of the price is tester time. The main inputs are the number of applications and APIs in scope, how many user roles and permission levels testers must cover, how much business functionality each one exposes, and whether testers receive API specifications, documentation or source code. Manual testing of business logic and access control needs more skilled time than an automated assessment of the same target, so the method changes the price. The first test is a one-time spend, while retests and ongoing testing recur. When you compare quotes, check that each one lists the same targets, roles, method (manual, automated or both), report contents, retest rounds and change-of-scope terms. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and its quotes follow from that written scope.

How long does a web application penetration test take to finish?

The timeline depends on scope, access and how quickly decisions get made, and no single duration fits every application. Testers need fixed targets, provisioned accounts, API specifications and a reachable contact before testing starts, so delays often come from those inputs. The timeline also grows with the number of roles, the complexity of single sign-on and multi-factor login, the size of each API and whether a retest is included. Ask the provider for a written schedule that shows the start date, testing window, reporting date and retest window. Confirm whether the test window must avoid release dates or change freezes, and ask how a critical finding will be reported before the final report. Ask for the expected duration in the written scope so you can hold the provider to it.

What do testers need from us before a web application test starts?

Testers need four things before work starts, and the rules of engagement hold them together. Base the rules on the template in Appendix B of NIST SP 800-115, which covers testing windows, permitted techniques, stop conditions, data handling and escalation contacts.

  • Test accounts for each application role, with a note of what each role can do
  • API specifications, such as OpenAPI or GraphQL schema files, plus any authentication documentation
  • Signed rules of engagement covering the testing window, source IP addresses, prohibited actions and handling of any sensitive data found
  • A named contact with authority to approve changes and respond during testing

Confirm early which hosts, third-party services and cloud accounts are in scope, because testers can only test what the rules name.

Can our internal team run a vulnerability scan on its own?

Yes, an internal team can run a vulnerability scan, but a scan and a penetration test answer different questions. NIST SP 800-115 describes review techniques as passive with minimal risk, while penetration testing uses working exploits against production systems and carries high risk. NIST suggests regularly scheduled vulnerability scanning interspersed with periodic penetration testing, so many teams run both. A scan needs a tool, an authenticated configuration for web applications, a triage process for false positives and an owner for fixes. A penetration test also needs people who can chain weaknesses, check business logic and document exploit steps safely. Before you assign internal staff, confirm whether your compliance program requires an independent tester, since independence rules differ by framework. Ask the team which findings it can validate manually.

Does a vulnerability scan satisfy PCI DSS requirement 11.4.1?

No. A scan does not satisfy PCI DSS requirement 11.4.1, which calls for penetration testing of the application layer. The minimum scope includes the vulnerabilities listed in requirement 6.2.4, among them attacks on business logic, such as abuse or bypass of application features through manipulation of APIs and client-side functions. The PCI SSC Penetration Testing Guidance describes penetration testing as essentially a manual process and states that simply running an automated tool does not satisfy the requirement. Automated scanning can support a penetration test, but it does not replace one. Before you buy, ask your assessor which evidence they accept, and check the tester's method, qualifications, scope list and report content against that guidance. Your assessor makes the final call on your environment.

Does passing an OWASP ASVS verification count as a certification?

No. ASVS verification is an assessment against OWASP's requirements, and it does not produce a certification. ASVS 5.0.0 defines three levels, L1 to L3, and OWASP advises starting with L1 for the most critical concerns, then moving up as the application and organization require. OWASP does not certify vendors, verifiers or software, and any trust mark claiming ASVS compliance is not endorsed by OWASP. An ASVS verification report should cover the scope, a summary of all requirements checked, the requirements with exceptions and guidance on fixing them, and any requirements that do not apply, while a penetration test report usually lists issues only. Ask which level is targeted, whether the verifier is independent of the build team and who signs off the evidence. CREST has accredited companies to OVS, so check whether a provider holds that accreditation and for which scope. DeployOpen prepares evidence for compliance assessments but does not issue certifications.

Should we penetration test production or a copy of the application?

Test a copy that closely matches production unless the copy cannot reproduce the risk you need to measure, and test production only under a controlled plan. NIST SP 800-115 lists factors to weigh, including the impact on availability, the presence of sensitive data and how closely a test environment matches production. Penetration tests use working exploits, so a production test can disrupt service or change data. A copy reduces that risk, but findings can miss problems that exist only in production configuration, integrations, data volume or third-party services. If you test production, agree a change window, rollback steps, monitoring during the test and an emergency contact. If you test a copy, confirm matching versions, authentication setup, roles, configuration and integrations, and use masked or synthetic data. Ask the provider to state any differences in writing.

How DeployOpen scopes and delivers web application and API testing

DeployOpen plans web application and API security testing as fixed-scope work, with scope, deliverables and timelines agreed in writing before testing starts. The written scope sets which applications, APIs, user roles and environments are covered, and how deep the work goes, so you can compare the evidence against your review needs. Manual checks focus on business logic and access control, which automated tools cannot fully verify on their own.

How we scope

  • The written scope lists each application, API, base URL or specification, and environment in test.
  • We confirm which user roles, test accounts and API documentation you will provide, since authorization testing depends on them.
  • Scope fixes whether the work is a penetration test or a vulnerability assessment, since each produces different evidence.

How we build

  • Coverage can map to the twelve OWASP WSTG v4.2 categories, including authorization, session management and business logic, if the scope asks.
  • API work can cover the OWASP API Security Top 10 2023, including object and function level authorization.
  • Business logic and access control checks are manual, because automated tools cannot fully verify them.

How we hand over

  • Each finding records the affected endpoint or feature, reproduction steps, evidence and the risk it creates.
  • Reports list scope, method and each requirement or check performed, so reviewers can see coverage as well as exceptions.
  • A vulnerability assessment hands over a prioritized list of weaknesses, while a penetration test adds validated exploitation paths.

How we support

  • Confirm in the written scope whether retesting of fixed findings is included.
  • Ongoing support, upgrades and continuous testing are available as retainers after the fixed-scope work.
  • DeployOpen prepares evidence for compliance assessments, but independent auditors issue the audit reports.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.