Description
SQL injection (SQLi) refers to an injection attack wherein an attacker can execute malicious SQL statements that control a web application's database server.
Remediation
Use parameterized queries when dealing with SQL queries that contain user input. Parameterized queries allow the database to understand which parts of the SQL query should be considered as user input, therefore solving SQL injection.
References
Prevent SQL injection vulnerabilities in PHP applications and fix them
Related Vulnerabilities
WordPress Plugin myCred-Points, Rewards, Gamification, Ranks, Badges & Loyalty SQL Injection (2.2)
WordPress Plugin WishList Member X SQL Injection (3.25.1)
Joomla! Core 1.0.x SQL Injection (1.0.0 - 1.0.11)
WordPress Plugin Podlove Podcast Publisher SQL Injection (3.5.5)
WordPress Plugin Media Library Categories 'termid' Parameter SQL Injection (1.0.6)