312-50V13 · Question #502
You're the security manager for a tech company that uses a database to store sensitive customer data. You have implemented countermeasures against SQL injection attacks. Recently, you noticed some…
The correct answer is C. OR 'a'='a; DROP TABLE members; --: This payload combines the manipulation of the WHERE. The payload OR 'a'='a; DROP TABLE members; -- has the most significant impact as it can lead to both authentication bypass and catastrophic data loss.
Question
Options
- A'OR 'T="1: This payload manipulates the WHERE clause of an SQL statement, allowing the
- B'OR username LIKE '%': This payload uses the LIKE operator to search for a specific pattern in a
- COR 'a'='a; DROP TABLE members; --: This payload combines the manipulation of the WHERE
- DUNION SELECT NULL, NULL, NULL -- : This payload manipulates the UNION SQL operator,
How the community answered
(23 responses)- A22% (5)
- B4% (1)
- C65% (15)
- D9% (2)
Why each option
The payload `OR 'a'='a; DROP TABLE members; --` has the most significant impact as it can lead to both authentication bypass and catastrophic data loss.
The payload `'OR 'T="1'` (likely `OR 1=1`) is an authentication bypass, allowing unauthorized access, but it does not directly cause data destruction.
The payload `'OR username LIKE '%''` is also typically used for authentication bypass or data enumeration, but it does not lead to data deletion.
This payload combines an authentication bypass condition (`OR 'a'='a'`) with a data destruction command (`DROP TABLE members;`). The `DROP TABLE` command permanently deletes an entire table and all its contents, causing irreversible data loss, which represents the most significant impact among the choices.
The payload `UNION SELECT NULL, NULL, NULL --` is primarily used for data exfiltration by combining query results, not for deleting data or causing severe system damage.
Concept tested: Impact of SQL injection payloads (data destruction)
Source: https://learn.microsoft.com/en-us/azure/security/fundamentals/sql-injection
Topics
Community Discussion
No community discussion yet for this question.