
The attacks that make the news are usually the largest or most sophisticated ones, but web applications of every size are attacked every day. The good news is that a small number of well-known attack types account for most incidents, and each has practical defences.
Malicious SQL is inserted through form fields or parameters to read or change data in the database. With SQL injection, an attacker can obtain customer information such as passwords and contact details, change records such as prices, or destroy data.
The attacker injects code into the application that then runs in other users' browsers. XSS can be used to steal sessions and sensitive information, or to redirect users to malicious sites.
Requests from thousands of addresses flood a site with traffic so the server cannot respond to real users. A DDoS attack can slow a site down or make it temporarily unavailable.
A logged-in user is tricked into opening a link or page that silently sends a request to your application using their session, for example to make a purchase or change account details.
SameSite cookies, and require confirmation for sensitive actions.Validating input and encoding output consistently prevents a large share of common attacks.
Test them: run a DAST scan after changes and retest each fix.
Try Vooki Pro free for 7 days
Check whether these attacks work against your application. The trial unlocks every feature for 7 days, and scanning runs on your own machine.
Related: HTTP security headers: the essential list · Verifying security fixes with retesting