0
0
Testing Fundamentalstesting

SQL injection testing in Testing Fundamentals - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is SQL Injection?
SQL Injection is a security vulnerability where an attacker inserts malicious SQL code into input fields to manipulate the database.
Click to reveal answer
beginner
Why is SQL Injection testing important?
It helps find weaknesses in applications that could allow attackers to access or damage data, protecting user information and system integrity.
Click to reveal answer
beginner
Name a common method to test for SQL Injection.
Entering special characters like ' or " or SQL keywords such as OR 1=1 in input fields to see if the application behaves unexpectedly.
Click to reveal answer
intermediate
What is a parameterized query and how does it help prevent SQL Injection?
A parameterized query separates SQL code from data inputs, so user inputs are treated only as data, not executable code, preventing injection.
Click to reveal answer
intermediate
What is the difference between error-based and blind SQL Injection testing?
Error-based testing looks for database error messages to find vulnerabilities, while blind testing infers vulnerabilities by observing application behavior without error messages.
Click to reveal answer
Which input is commonly used to test for SQL Injection?
A12345
BHello World
C' OR '1'='1
D<script>alert('test')</script>
What does a parameterized query do?
ACombines user input directly into SQL code
BSeparates SQL code from user input
CEncrypts the database
DDeletes user input before processing
Which of these is NOT a sign of SQL Injection vulnerability?
AUnexpected database errors shown to users
BApplication crashes on special input
CData leakage through error messages
DApplication ignores all user input
Blind SQL Injection testing relies on:
AApplication behavior changes without errors
BNetwork traffic analysis
CUser interface design
DDatabase error messages
Which practice helps prevent SQL Injection?
AValidating and sanitizing user inputs
BUsing dynamic SQL with string concatenation
CDisplaying detailed database errors to users
DAllowing all user inputs without checks
Explain what SQL Injection is and why it is a security risk.
Think about how user input can change database commands.
You got /3 concepts.
    Describe two methods to test for SQL Injection vulnerabilities.
    Consider how you might check if an application is vulnerable without causing harm.
    You got /3 concepts.