Computer Hacking Forensic Investigator (CHFI v10) — Question 425

A cybersecurity forensic investigator analyzes log files to investigate an SQL Injection attack. While going through the Apache across.log, they come across a GET request from the IP 10.0.0.19 containing an encoded query string:

GET /sqli/examplel.php?name=root' UniON SeLeCT 1,table_name,3,4,5 From information_schema.tables where Table_Schema=DatabasE() limit 1,2---

What is the intention behind the attacker’s query?

Answer options

Correct answer: B

Explanation

The attacker aims to retrieve the names of the tables in the database by executing a query that selects table names from the information_schema.tables. Options A, C, and D are incorrect because the query does not involve deleting data, bypassing authentication, or manipulating column order.