Penetration testing

Web Application and Infrastructure Penetration Testing: Find the Attack Paths Before Attackers Do

A login screen, firewall, and clean scan do not prove that an attacker has no usable path. Learn how testing web applications and infrastructure together uncovers real weaknesses—and turns them into a clear remediation plan.

30 November 2026 · 9 min read

What would an attacker actually be able to do in your environment?

A firewall can be enabled, endpoint protection can be installed, and a vulnerability scan can look reassuring while a customer portal still exposes another customer’s records. A remote-access account may be protected in one system but usable without MFA in another. The important question is not simply whether controls exist. It is whether they stop a realistic attack against your applications and infrastructure.

Penetration testing answers that question through authorized, controlled attempts to demonstrate exploitable weaknesses and their business impact. It examines how controls behave together, not just individually. The result should be evidence your teams can act on: what is exposed, how an attacker could abuse it, what needs to change, and how to verify the change worked.

Why do you need both web application and infrastructure testing?

Web application testing focuses on websites, customer portals, APIs, and the business processes behind them. Testers examine authentication, session handling, authorization, input handling, file uploads, sensitive-data exposure, and business-logic abuse. They use different account roles because a page that looks safe to an administrator may behave very differently for a customer or a low-privilege employee.

Infrastructure testing examines the systems that host applications and connect people to data: internet-facing services, remote access, servers, network boundaries, directory services, and relevant cloud configurations. External testing asks what an outsider can reach. Internal or assumed-breach testing asks what a compromised device or ordinary account could reach after initial access.

Neither replaces the other. An application flaw may expose a cloud credential; excessive permissions may then turn a limited application compromise into access to sensitive storage. Conversely, a compromised infrastructure account may provide a path into an otherwise carefully designed application. Scope the assessment around these connections, not just a list of IP addresses.

What do real attacks teach us about testing?

The following incidents are documented examples, not claims that a penetration test would certainly have prevented them. The proposed test activities are recommendations for similar environments. They are not assertions about tests the affected organizations did or did not perform.

Equifax: a known application vulnerability with wider consequences

The Federal Trade Commission’s complaint about the 2017 Equifax breach alleges that the company received an alert about an Apache Struts vulnerability but left its internet-facing dispute portal unpatched for months. It also alleges that an automated scan missed the vulnerability because it did not cover all potentially vulnerable assets, and identifies asset-inventory and segmentation weaknesses. These are the FTC’s allegations, not admissions by Equifax. The lesson is broader than “install updates”: know which exposed applications use a vulnerable component and verify that patching and containment processes actually work.

A well-scoped assessment can validate whether an affected component remains reachable, safely demonstrate the resulting access where authorized, and evaluate the boundaries around the application. A scanner may identify a vulnerable version; controlled validation helps establish whether the issue is exploitable and what is at risk. Remediation includes updating the component, verifying the deployed version, restricting application privileges and unnecessary network access, and retesting. Routine patch management must continue between tests.

Change Healthcare: stolen credentials and a remote-access MFA gap

In written responses to the Senate Finance Committee following May 2024 testimony, UnitedHealth Group addressed the lack of MFA on the initially compromised Change Healthcare server. The responses state that both organizations’ policies required MFA on external-facing applications and describe the server as a legacy system being brought up to UnitedHealth Group standards. The key lesson is a gap between security policy and actual enforcement—not evidence that no MFA policy existed. We do not assume which other defenses were present or reconstruct undocumented internal attack steps.

Infrastructure testing can review each remote-access entry point, validate MFA enforcement with approved test accounts, and check whether alternative access paths bypass it. An assumed-breach exercise can then establish which systems a low-privilege identity can reach and whether segmentation limits further access. The resulting to-do list could include closing the MFA gap, removing unnecessary remote access, reducing account privileges, and limiting administrative protocols. Retesting must demonstrate that the previously validated path is blocked.

Which application attacks should a good test uncover?

A customer portal that trusts the wrong account

Consider a hypothetical billing portal where a signed-in customer can retrieve another customer’s invoice by changing a record identifier. This is broken object-level authorization: the server checks that someone is logged in but fails to confirm that this person may access that specific record. HTTPS and a login screen do not solve it. A web application firewall may also miss an ordinary-looking, valid request.

Using two authorized test customers, a tester checks whether one can access the other’s records through both the website and its APIs. The test uses synthetic data and agreed limits, not unnecessary copying of real customer information. The fix is server-side authorization on every relevant object and action, including exports and file downloads. Retesting repeats the cross-account attempt and checks related functions so the same defect does not survive elsewhere.

An application that can reach places it should not

In a hypothetical URL-import feature, an attacker may persuade the server to request an internal destination instead of an approved external resource. This is server-side request forgery, or SSRF. Depending on the deployment and permissions, it could expose internal services or cloud metadata. Not every SSRF flaw leads to credential theft; impact must be demonstrated rather than assumed.

With explicit permission, testers use controlled destinations to assess destination validation and outbound access restrictions. They also review whether application identities have excessive permissions. Remediation may include strict destination allowlists, blocking internal and sensitive endpoints, handling redirects safely, restricting outbound connections, and reducing identity privileges. The retest verifies both the application checks and the infrastructure boundary. This is why testing the application alone can miss part of the solution.

Why are scanners, firewalls, and endpoint tools not enough?

Vulnerability scanning is valuable for finding known weaknesses at scale, but it does not reliably understand your business rules or every chain of interacting permissions. Firewalls constrain traffic; they do not automatically decide whether a customer owns a requested invoice. Endpoint tools can detect suspicious activity, but cannot compensate for every overprivileged identity or missing application authorization check.

Manual penetration testing complements these controls by investigating context, validating impact, and combining weaknesses within the agreed scope. It does not replace secure development, monitoring, backups, patch management, or incident response. Its purpose is to discover where those defenses leave a usable path and give the responsible teams enough evidence to close it.

How should an assessment be scoped safely?

  • Agree on written authorization, asset ownership, permitted techniques, test accounts, and any third-party approvals before work begins.
  • Include the relevant applications, APIs, external services, internal networks, identity systems, and cloud dependencies; record exclusions clearly.
  • Define testing windows, emergency contacts, stop conditions, and restrictions on disruptive actions. Do not run destructive tests without specific approval.
  • Use synthetic records and minimal proof of impact wherever possible. Agree on how evidence is stored, redacted, shared, and deleted.
  • Combine automated discovery with manual validation, and use application roles and assumed-breach scenarios that match the organization’s risks.

A staging environment can reduce operational risk, but differences from production must be documented. If production testing is necessary, agree on narrowly controlled methods. OWASP’s Web Security Testing Guide provides a structured application-testing reference; NIST SP 800-115 provides guidance on planning and conducting technical security assessments. Neither should be treated as a checklist that substitutes for understanding your business.

What should a clear penetration-testing report contain?

Leadership needs a concise explanation of business exposure. Developers and infrastructure teams need reproducible evidence and concrete changes. A useful report serves both audiences, separates confirmed findings from unvalidated possibilities, and identifies scope limitations. Severity should reflect the demonstrated access, data sensitivity, exploit conditions, and business impact—not just an intimidating vulnerability name.

From validated finding to actionable remediation
Validated findingBusiness exposureClear to-do item and verification
Cross-customer invoice accessUnauthorized disclosure of customer informationApplication owner: enforce record-level authorization across reads, exports, and downloads. Retest with two synthetic customer accounts and confirm cross-account access is denied.
Remote-access path without MFAA stolen password may permit entryIdentity owner: require MFA on the affected path and remove bypasses. Retest the approved access routes and confirm password-only access fails.
Unnecessary internal administrative accessA compromised identity can reach additional systemsInfrastructure owner: restrict permitted sources, destinations, identities, and administrative protocols. Retest the demonstrated access path and confirm unauthorized access is blocked.

Each finding should identify affected assets, prerequisites, sanitized evidence, root cause, remediation steps, a responsible owner, and an agreed target date. Record retest status as fixed, partially fixed, or still open, with supporting evidence. Dependencies matter: a temporary access restriction may reduce immediate exposure while a code correction is prepared, but it should not silently become the permanent fix.

How do you turn findings into a workable plan?

  1. Triage demonstrated high-impact paths first. Apply safe containment where appropriate, while preserving evidence and keeping essential services available.
  2. Assign an owner and target date to every finding. Separate application, infrastructure, identity, and shared-responsibility tasks.
  3. Correct root causes rather than only blocking the exact test request. Check related endpoints, accounts, and systems for the same weakness.
  4. Retest the original path and relevant variations. Record residual risk and obtain explicit risk acceptance for anything left unresolved.
  5. Feed lessons into development checks, patching, access reviews, and monitoring. Schedule further testing after material changes and according to exposure, obligations, and risk.

How Lion Group helps

Lion Group can help by penetration testing your company’s environment, covering web applications and infrastructure within an agreed scope. We turn validated findings into a clear report with a prioritized, practical to-do list: what needs attention, why it matters, and what your application, IT, and security teams need to change. The goal is to make remediation understandable and actionable—not leave you with an unexplained scanner export. Talk to Lion Group about testing your environment.

Sources and further reading

AA

Arik Assayag

Founder & CEO, Lion Group

Frequently asked questions

What is the difference between a vulnerability scan and a penetration test?

A scan identifies potential weaknesses, often from known signatures. A penetration test combines discovery with authorized manual investigation and controlled validation of exploitability and impact. Both are useful, but a scanner export is not equivalent to a penetration-testing report.

Should we test web applications and infrastructure separately?

They require distinct expertise and test activities, but the scope should connect them. An application flaw may expose infrastructure access, while identity or network weaknesses may increase its impact. Assess relevant paths across both layers.

Would penetration testing have prevented the attacks described here?

That cannot be established. The examples illustrate weaknesses that an appropriately scoped assessment could investigate. Prevention also depends on scope, timing, remediation, monitoring, and changing attacker techniques.

How often should an organization commission penetration testing?

Base the schedule on risk, exposure, contractual or regulatory obligations, and significant changes. Reassess after material releases, identity changes, or infrastructure migrations; do not wait for a calendar date when a major change creates new risk.

What will Lion Group provide after testing?

Lion Group can assess agreed web application and infrastructure scope and provide a clear report with validated findings and a prioritized, actionable to-do list. Agree on evidence handling, remediation responsibilities, and any retesting as part of the engagement.

Related