Security Concepts

What Is Attack Vector?

A specific method or path an attacker uses to exploit a vulnerability and gain unauthorized access to a system. While the attack surface is the total collection of entry points, an attack vector is the specific technique used against one of those entry points.

In Laravel Applications

Common attack vectors against Laravel applications include SQL injection through unparameterized queries, XSS through unescaped Blade output ({!! !!}), CSRF attacks on forms missing @csrf, and brute-force attacks against login endpoints without rate limiting.

Example

A brute-force password attack against /login is an attack vector. The /login endpoint itself is part of the attack surface.

Related Terms

Related Articles

Monitor Your Laravel Application's Security

StackShield continuously checks your Laravel application from the outside, catching security issues before attackers find them.

Start Free Trial