BASICS / PRACTICAL GUIDE

Account takeover: how it happens, and how to prevent it.

How attackers take over your users’ accounts, what OWASP and the NCSC recommend, and how a penetration test checks your application’s sign-in.

Last updated:

What is account takeover?

Someone signing in to, or taking control of, an account that isn’t theirs: a customer’s account in your application, or a member of staff’s. Once in, they can see and do whatever that account can, so the harm depends on what the account may reach.

How does it happen?

Most often through passwords. OWASP describes two common attacks: credential stuffing, testing username and password pairs obtained from the breach of another site, and password spraying, testing a single weak password against a large number of different accounts. An application can also let an attacker in through its own flaws, such as a password reset that can be abused, a session that stays valid too long, or a check on who may see what that can be bypassed.

How do you prevent it?

OWASP says multi-factor authentication is by far the best defence against the majority of password-related attacks. Alongside it, OWASP and the NCSC’s password guidance recommend controls on sign-in itself:

  • Throttle repeated sign-in attempts. The NCSC prefers throttling to locking accounts; if you lock them, it recommends allowing between 5 and 10 attempts first.
  • Block the most common passwords with a deny list, so the easiest to guess can’t be used.
  • Watch for signs of an attack, such as sign-ins that fail the second step, password spraying, or sign-ins from places you don’t expect.
  • Tell your users about unusual security events on their accounts.

How does a penetration test check for it?

Web application penetration testing checks how well your application protects access, sessions and data. We test it signed in and not: its business logic and session handling, its authorisation and access controls, and injection flaws and data exposure. A tester looks for what a scanner cannot find: a flaw in how your application decides who may see what.

We ask for the user roles to test as and a test account for each: each role sees different data, and we check each stays in its lane. If a test account needs a code or an app to sign in (MFA), we need an agreed way through it. For a REST or GraphQL API, we test authentication, object-level authorisation, excessive data exposure and rate limiting.

Testing a web application and its API before a large customer connects

What you receive

Every finding is reviewed before it’s published, with the affected assets, the business impact, how to reproduce it and how to fix it. When you’ve fixed a finding, you request a retest in the client portal, and a finding is resolved only when a tester confirms it is fixed. We test your application; we do not run or monitor it.

Web application penetration testing

Tell us which application to test, and the user roles it has. We’ll help you define the right scope.

  • A scope and quote within 1 working day of the scope you submit
  • A fixed price, agreed before testing starts
Talk to an expert
Explore the full engagement process
LET’S TALK ABOUT YOUR SECURITY

Clarity starts with
a conversation.

Tell us what you’re protecting. We’ll help you define the right test.