Skip to main content

Web application penetration testing

Your website, customer portal or web app is usually the part of your business attackers can reach most easily. What a web application test covers, when you need one, and how to scope it so you get quotes you can compare.

What it covers

A web application test looks at the application itself, not just the server it runs on. The tester uses the application the way a real user would, then checks whether it can be made to do things it should not. The areas a thorough test covers include:

  • Sign-in and accounts: registration, login, password reset and multi-factor authentication.
  • Permissions: whether one user can see or change another user’s data, or reach admin functions.
  • Sessions: how the application keeps users signed in and signs them out.
  • Input handling: how the application treats data it receives from users and other systems.
  • Business logic: whether the application’s own rules (prices, approvals, limits) can be bypassed.
  • Configuration: error messages, encryption in transit and the security settings of the web server.

The open OWASP Web Security Testing Guide is a testing resource for web application developers and security professionals; ask a firm whether it works to it.

What a web application penetration test coversSix areas: Sign-in and accounts; Permissions; Sessions; Input handling; Business logic; Configuration.A thorough test coversA web applicationSign-in and accountsRegistration, login, reset,multi-factorPermissionsCan one user reach another’sdata or admin?SessionsHow users stay signed in andoutInput handlingData from users and othersystemsBusiness logicCan prices, approvals, limitsbe bypassed?ConfigurationErrors, encryption, serversettings

When you need one

  • Before launching a new application, or a major release that changes sign-in, payments or permissions.
  • When a customer’s security questionnaire or contract asks for a recent independent test.
  • When a standard asks for one: card-payment applications fall under PCI DSS testing, and an ISO 27001 or SOC 2 programme often uses one as evidence.
  • On a regular cycle for applications that hold personal or financial data.

The NCSC’s secure development guidance treats a point-in-time test as one part of a wider approach, alongside automated testing built into your development pipeline. A penetration test is most useful when it checks the things automated tools cannot, such as permissions and business logic.

How to scope it

Firms price the scope you give them, so the more precisely you describe the application, the more comparable the quotes. Tell every firm:

  • The application’s address and what it does, in a sentence.
  • The user roles to test (for example customer, staff and administrator), and that you will provide an account for each.
  • Any APIs the application relies on, and whether they are in scope. A separate API test may suit large APIs.
  • Which environment is to be tested, the testing window, and who to call if something goes wrong.
  • Anything out of scope, such as third-party payment pages or services you do not own.
  • What you need in the report, and whether a retest of fixed issues is included.

The free scoping template has a web application section you can fill in and send to each firm.

What to tell every firm when scopingSix things: The address and what it does; The user roles to test; APIs: in scope or not; Environment, window and who to call; Anything out of scope; What the report needs, and a retest.Tell every firmScoping a web testThe address and what itdoesThe user roles to testAPIs: in scope or notEnvironment, window andwho to callAnything out of scopeWhat the report needs,and a retest

Standards and the report

Ask each firm which methodology it follows. As well as the testing guide, OWASP publishes the Application Security Verification Standard, a set of security requirements with levels of assurance that OWASP suggests can also be used in procurement. If your application has a security requirement to meet, naming the ASVS level in your request gives every firm the same target.

The report should explain each finding in plain terms, show evidence your developers can reproduce, rate it by risk and say how to fix it. CREST’s guidance on defensible penetration tests sets out the same expectations for how a test is scoped, delivered and signed off. See what a good report contains.

Can I pentest a website I do not own?

Not without permission. Section 1 of the Computer Misuse Act 1990 makes it an offence to cause a computer to perform any function with intent to secure access to a program or data where that access is unauthorised and you know it is. The Act says the intent need not be directed at any particular program or data, so “just looking” at a site you have no permission to test is not a safe assumption. This page is general information, not legal advice; ask a solicitor about your own situation.

What needs written permission before any test starts:

  • Every system in scope. If the site runs on someone else’s hosting, ask whether the host also has to agree.
  • Third-party services the site calls (payment pages, single sign-on, APIs): permission from their owner, or leave them out of scope.
  • The environment, the testing window and an emergency contact, agreed in writing.

Testing your own site, or one you are engaged to test, with the owner’s written authority is the normal case; the scoping template is a starting point for that record.

What needs written permission before a testThree things: Every system in scope; Third-party services the site calls; Environment, window and emergency contact.Written permission forBefore any test startsEvery system in scopeThird-party services thesite callsEnvironment, window andemergency contact

Next steps

Sources

Frequently asked

What is a web application penetration test?

A controlled, authorised test of a website, portal or web application by a skilled tester, looking for weaknesses in how it handles sign-in, permissions, sessions, data and business logic, and showing what an attacker could do with them.

Should the test be authenticated?

Usually yes. Most of an application’s functions, and most of its risk, sit behind the login. Give the testers accounts for each user role you want covered, so they can check that one user cannot see or change another user’s data.

Test in production or staging?

Either can work. A staging environment that matches production avoids any risk to live data; testing production checks the real configuration. Agree which in writing, and if it is production, agree testing windows and an emergency contact.

Which standard should the firm follow?

Ask which methodology they use. The OWASP Web Security Testing Guide and the OWASP Application Security Verification Standard are the common open references, and a good report will say which one it worked to.

Compare UK penetration testing companies

Filter firms by service and accreditation, then contact the ones you like.

Browse the directory