AI pentesting guides / What to test

Web app security

Web application pentesting

Web application pentesting is an authorised, hands-on attack against a running web app to find vulnerabilities an adversary could exploit and to prove each one with evidence. Unlike a vulnerability scan, the goal is not a list of possible issues but a set of confirmed findings: this request, as this user, returned that data it should not have.

A good web app pentest combines automated discovery with reasoning about how the application is meant to work. Most serious web findings today are access-control and logic failures rather than missing patches, so the tester has to understand roles, objects and workflows, not just send payloads.

What a web application pentest covers

Scope is usually defined by hostnames, user roles and any areas that are off-limits. Within that scope a tester typically works through:

  • Mapping: crawling, content discovery and parameter discovery to find every route, including ones the UI never links to.
  • Authentication and session handling: login, password reset, token issuance, logout and session expiry.
  • Authorisation: horizontal (user A reading user B's objects) and vertical (a normal user calling admin functions).
  • Input handling: SQL, NoSQL, command and template injection, cross-site scripting, path traversal and XXE.
  • Server-side request behaviour: SSRF through URL, webhook and import parameters.
  • Configuration: TLS, security headers, exposed debug endpoints and leaked secrets.

How findings are proven

A finding is only useful if an engineer can reproduce it. Acceptable evidence is the exact request and response pair, plus a control that shows the difference: the same request with another user's object ID returning their data, a time delay that scales with an injected SLEEP, or an out-of-band DNS or HTTP callback from the target to infrastructure the tester controls. Screenshots without the underlying request are weak evidence; a reproducible proof of concept is strong evidence.

Black-box, grey-box and white-box

In a black-box test the tester has only a URL. Grey-box testing adds valid accounts for each role, which is what makes authorisation testing possible; without two accounts you cannot prove that one user can read another's data. White-box testing adds source code, which lets the tester trace input to dangerous sinks. Most web engagements should be at least grey-box.

How often to test

Annual pentests miss most of the code a fast-moving team ships. Many teams now pair a periodic manual engagement with continuous automated testing on each release, so regressions in access control or input handling are caught within days rather than months.

With Pentest-Swarm

How Pentest-Swarm tests web applications

Pentest-Swarm is an open-source (AGPL-3.0) autonomous pentester built for web applications and APIs. Recon, classify, exploit and report agents share findings through a pheromone-weighted blackboard, and a finding is only badged VERIFIED when a non-LLM oracle confirms it against the live target.

  • Recon and content discovery with tools such as httpx, katana, ffuf and arjun, then exploitation with sqlmap, dalfox, nuclei and others, all wrapped in fail-closed scope checks.
  • Proves BOLA/IDOR, mass assignment, path traversal, SSTI and 403-bypass findings with differential responses, blind SQL injection with timing, and SSRF, XXE and blind command injection with out-of-band callbacks (the --verify flag is beta).
  • Generates a sandboxed Python proof of concept for confirmed findings, with evidence, severity and CVSS in the report.
  • Runs the owasp-top10 playbook against your app, or a bundled lab such as OWASP Juice Shop for practice.
  • Armur's managed version runs it on a schedule with human-reviewed reports and retests after fixes.

Where it falls short

Automated testing is strongest on well-defined classes such as injection, SSRF and object-level authorisation. It is weaker on multi-step business logic, CSRF, race conditions and anything that depends on understanding what a feature is for; Pentest-Swarm does not currently test CSRF or race conditions automatically. For a first test of a high-value application, or where a regulator expects a named human tester, commission a manual pentest and use automation between engagements.

Questions

How long does a web application pentest take?

A manual test of a typical business application usually takes one to three tester-weeks depending on roles, features and depth. An automated run against the same scope takes hours, but covers a narrower set of vulnerability classes.

Is a DAST scan the same as a web application pentest?

No. A DAST scanner sends payloads and reports responses that look vulnerable. A pentest exploits the issue, chains it with others and proves impact. Tools like Pentest-Swarm sit between the two: automated, but focused on exploitation and proof.

Do I need test accounts for a web app pentest?

Yes, ideally two per role. Authorisation flaws such as IDOR can only be proven by showing one account reaching another account's data.

Sources

  1. OWASP Top 10 (2021)
  2. OWASP Web Security Testing Guide