Comprehensive and Detailed Explanation:
SQL injection is a security vulnerability that arises when an application incorporates untrusted input into database queries without adequately separating data values from executable SQL instructions.
If the application constructs queries insecurely, malicious input may alter the intended query logic. Depending on the affected functionality, database configuration and privileges associated with the application's database account, exploitation can result in unauthorized information retrieval, authentication bypass, unauthorized modification or deletion of records and other violations of database security.
For example, an authentication function that constructs database queries from untrusted credential inputs without appropriate parameterization may allow the intended authentication condition to be manipulated.
Security testing should establish whether potentially malicious inputs are processed strictly as data and whether database interactions remain restricted to their intended functionality.
Parameterized queries, appropriately implemented prepared statements, secure input handling and least-privilege database permissions contribute to reducing SQL injection risks. Confirmation and regression testing should verify that remediation remains effective following software changes.
Option A describes Cross-Site Scripting (XSS), which involves execution of malicious scripts in an affected application context. Option C characterizes Cross-Site Request Forgery (CSRF). Option D describes broken access control and potential privilege escalation.
SQL injection directly concerns the manipulation of database query execution through improperly handled input.
Official Reference: ISTQB CT-STE Syllabus v1.0.1, Learning Objective STE-6.2.2 – Analyze security test results to determine the nature of a vulnerability and its potential technical impact, page 63; Section 9.2.2 – Dynamic Security Testing Tools, page 87.
Submit