SQL Injection: Entry Point Detection
Detecting the entry point in SQL injection (SQLi) involves identifying locations in an application where user input is not properly sanitized before it is included in SQL queries.
Error Messages: Inputting special characters (e.g., a single quote ') into input fields might trigger SQL errors. If the application displays detailed error messages, it can indicate a potential SQL injection point.
Simple characters:
',",;,)and*Simple characters encoded:
%27,%22,%23,%3B,%29and%2AMultiple encoding:
%%2727,%25%27Unicode characters:
U+02BA,U+02B9MODIFIER LETTER DOUBLE PRIME (
U+02BAencoded as%CA%BA) is transformed intoU+0022QUOTATION MARK (`)MODIFIER LETTER PRIME (
U+02B9encoded as%CA%B9) is transformed intoU+0027APOSTROPHE (')
Tautology-Based SQL Injection: By inputting tautological (always true) conditions, you can test for vulnerabilities. For instance, entering
admin' OR '1'='1in a username field might log you in as the admin if the system is vulnerable.Merging characters
`+HERP '||'DERP '+'herp ' 'DERP '%20'HERP '%2B'HERPLogic Testing
page.asp?id=1 or 1=1 -- true page.asp?id=1' or 1=1 -- true page.asp?id=1" or 1=1 -- true page.asp?id=1 and 1=2 -- false
Timing Attacks: Inputting SQL commands that cause deliberate delays (e.g., using
SLEEPorBENCHMARKfunctions in MySQL) can help identify potential injection points. If the application takes an unusually long time to respond after such input, it might be vulnerable.
Comments
No comments yet.