nerdexam
GIAC

GSLC · Question #469

You have forgotten your password of an online shop. The web application of that online shop asks you to enter your email so that they can send you a new password. You enter your email [email protected]'…

The correct answer is D. You have entered any special character in email. The single quote appended to the email address is a special character that breaks server-side SQL query syntax, triggering a server error - a classic indicator of SQL injection vulnerability.

Security Architecture & Engineering

Question

You have forgotten your password of an online shop. The web application of that online shop asks you to enter your email so that they can send you a new password. You enter your email [email protected]' and press the submit button. The Web application displays the server error. What can be the reason of the error?

Options

  • AThe remote server is down.
  • BEmail entered is not valid.
  • CYour internet connection is slow.
  • DYou have entered any special character in email.

How the community answered

(60 responses)
  • A
    3% (2)
  • B
    8% (5)
  • C
    12% (7)
  • D
    77% (46)

Why each option

The single quote appended to the email address is a special character that breaks server-side SQL query syntax, triggering a server error - a classic indicator of SQL injection vulnerability.

AThe remote server is down.

A downed remote server would produce a connection timeout or 'unreachable' error before the application even processes input, not an error triggered by specific characters typed into a field.

BEmail entered is not valid.

The base email '[email protected]' conforms to valid RFC 5321 email format; the problem is not email validity but the injected special character that corrupts the server-side query.

CYour internet connection is slow.

A slow internet connection causes latency or timeout errors during transmission, not a server-side processing error that is triggered only when a specific character is included in the input.

DYou have entered any special character in email.Correct

The email entered was '[email protected]'' which contains a single quote (apostrophe), a special character that terminates string literals in SQL. When the application passes this input directly into a database query without sanitization, it produces a SQL syntax error that surfaces as a server error.

Concept tested: SQL injection via unescaped special character input

Source: https://owasp.org/www-community/attacks/SQL_Injection

Topics

#SQL injection#input validation#web application security#special characters

Community Discussion

No community discussion yet for this question.

Full GSLC Practice