Exam PT0-002 All QuestionsBrowse all questions from this exam
Question 188

A penetration tester is looking for vulnerabilities within a company's web application that are in scope. The penetration tester discovers a login page and enters the following string in a field:

1;SELECT Username, Password FROM Users;

Which of the following injection attacks is the penetration tester using?

    Correct Answer: C

    The attack being performed is an example of stacked queries, also known as multiple query injection. This involves appending additional SQL queries to an existing one using a semicolon as a delimiter. In this case, the input '1;SELECT Username, Password FROM Users;' includes a valid input for the first part of the query and adds another SQL statement to extract sensitive information from the database.

Discussion
RRabbitOption: C

C. Stacked queries The string entered by the tester is an example of a stacked query, also known as a multiple query injection. It attempts to inject an additional SQL query into an existing one by stacking the new query on top of the original one. This can be used to extract sensitive information from the database, such as usernames and passwords. A blind SQL injection is when the attacker is able to send commands to the database but is unable to see the result of these commands, usually due to the lack of error messages. Boolean SQL injection is a type of SQL injection where the attacker will insert a payload that will cause a query to return true or false. Error-based SQL injection is a type of SQL injection where the attacker sends payloads that cause the database to return error messages.

RRabbit

notice the two semicolons ; stacked

outnumber_gargle024

solid tip here thanks

nickwen007Option: C

C. Stacked queries is the injection attack the penetration tester is using. Stacked queries, also known as Multi-Statement or Batched Queries, are a type of SQL injection attack that combines multiple SQL statements into one query. This attack can be used to bypass authentication and authorization processes by allowing an attacker to gain access to restricted data.

cy_analystOption: C

This is because the attacker is attempting to execute multiple SQL statements within the same query by using the semicolon (;) as a separator. The first statement is a valid login attempt (i.e., "1" is the username), and the second statement attempts to extract sensitive information (i.e., the username and password of all users).

[Removed]

Yes C is the answer

kloug

cccccccc

Etc_Shadow28000Option: C

Why C. Stacked queries is correct: • Stacked queries involve adding additional SQL statements to the original query, separated by a semicolon (;). This technique allows the attacker to execute multiple queries in a single request. The provided string 1;SELECT Username, Password FROM Users; is a clear example of this approach, as it combines an initial input value (1) with an additional SQL query. Conclusion: The penetration tester is using a stacked queries SQL injection attack. Therefore, option C is the correct answer.

solutionzOption: C

The query provided by the penetration tester is attempting to execute more than one SQL command in a single call. This is known as stacking queries, where multiple SQL queries are separated by a semicolon. So the correct answer is: C. Stacked queries

[Removed]Option: D

Ithink D Error based

HskwkhfbOption: A

Blind SQL

masso435

This is a SQL UNION attack. I don't see an answer for this.