SQL Injection
- •
def
- •
inserting your own SQL commands into an application's database query, taking advantage of an application that doesn't properly validate input
- •
- •
example
- •
an application builds a query like
SELECT * FROM users WHERE name = '+ username +'; if the input isn't sanitized, an attacker can inject' OR '1'='1to manipulate the query's logic
- •
- •
impact
- •
can allow viewing or deleting database contents, adding users, or denial of service
- •
- •
related
- •