312-50V11 · Question #838
Daniel Is a professional hacker who Is attempting to perform an SQL injection attack on a target Injection attempts based on predefined signatures. To evade any comparison statement, he attempted…
The correct answer is D. Variation. One may append the comment "-" operator along with the String for the username and whole avoid executing the password segment of the SQL query. Everything when the -- operator would be considered as comment and not dead. To launch such an attack, the value passed for name could…
Question
Daniel Is a professional hacker who Is attempting to perform an SQL injection attack on a target Injection attempts based on predefined signatures. To evade any comparison statement, he attempted placing characters such as `'or '1'='1" In any bask injection statement such as "or 1=1." Identify the evasion technique used by Daniel in the above scenario.
Options
- ANull byte
- BIP fragmentation
- CChar encoding
- DVariation
How the community answered
(45 responses)- A4% (2)
- B9% (4)
- C2% (1)
- D84% (38)
Explanation
One may append the comment "-" operator along with the String for the username and whole avoid executing the password segment of the SQL query. Everything when the -- operator would be considered as comment and not dead. To launch such an attack, the value passed for name could be 'OR 1'=1' ; -- Statement = "SELECT * FROM CustomerDB' WHERE name' = "+ userName + " AND password' = " + passwd + " ; " Statement = "SELECT * FROMCustomerDB' WHERE name' = ' OR 1'=1;- + " AND password' = " + passwd + " ` ; " All the records from the customer database would be listed. Yet, another variation of the SQL Injection Attack can be conducted in dbms systems that allow multiple SQL injection statements. Here, we will also create use of the vulnerability in sure dbms whereby a user provided field isn't strongly used in or isn't checked for sort constraints. This could take place once a numeric field is to be employed in a SQL statement; but, the programmer makes no checks to validate that the user supplied input is numeric.
Topics
Community Discussion
No community discussion yet for this question.