SQL

Ethical hacker Jane Smith is attempting to perform an SQL injection attack. She wants to test the response time of a true or false response and wants to use a second command to determine whether the database will return true or false results for user IDs. Which two SQL injection types would give her the results she is looking for?

Ethical hacker Jane Smith is attempting to perform an SQL injection attack. She wants to  test the response time of a true or false response and wants to use a second command to determine whether the database will return true or false results for user IDs. Which two SQL injection types would give her the results she is looking for?

Option 1 : Time-based and boolean-based
Option 2: Out of band and boolean-based
Option 3 : Union-based and error-based
Option 4 : Time-based and union-based

1. Time-based and boolean-based

Time-based SQL injection may be a sort of inferential injection or blind injection attack. … this is often why it’s also called a blind injection attack. An attacker can reconstruct and make a replacement database structure inside the database.

Boolean-based SQL Injection is an inferential SQL Injection technique that relies on sending an SQL query to the database which forces the appliance to return a special result counting on whether the query returns a real or FALSE result.

2. Out of band and boolean-based

Time-Based SQL injection vulnerability, meaning that I could only pull one character at a time with SQLmap and every character took around 10 seconds to retrieve. an alternate approach during this situation is to use out-of-band retrieval. this is often an idea which will be used when exploiting many vulnerabilities like SQL Injection, Command Injection, Cross-site Scripting and XML External Entity Injection.

The idea is fairly simple, rather than capturing the info you’d wish to retrieve and extracting it through Boolean-logic you’ll request the system to transmit the info over a protocol like HTTP, SMB or DNS.

3. Union-based and error-based

Union based SQL injection allows an attacker to extract information from the database by extending the results returned by the first query. The Union operator can only be used if the original/new queries have an equivalent structure

Error-based SQL injection is an In-band injection technique where the error output from the SQL database is employed to control the info inside the database. In In-band injection, the attacker uses an equivalent channel for both attacks and collect data from the database.

4. Time-based and union-based

Time-based SQL Injection is an inferential SQL Injection technique that depends on sending an SQL query to the database that forces the database to attend for a specified amount of your time (in seconds) before responding. The response time can notify the attacker whether or not the result of the query is TRUE or FALSE.

Depending on the result, an protocol response will be came with a delay, or came at once. this allows an attacker to infer if the payload used came true or false, even though no data from the database is came. This attack is usually slow (especially on large databases) since an attacker would want to enumerate a database character by character.

Union-based SQLi is an in-band SQL injection technique that leverages the UNION SQL operator to combine the results of 2 or more select statements into one result that is then came as part of the http response.

Learn CEH & Think like hacker


This Blog Article is posted by

Infosavvy, 2nd Floor, Sai Niketan, Chandavalkar Road Opp. Gora Gandhi Hotel, Above Jumbo King, beside Speakwell Institute, Borivali West, Mumbai, Maharashtra 400092

Contact us – www.info-savvy.com

https://g.co/kgs/ttqPpZ

Leave a Comment