nerdexam
GIAC

GCIH · Question #147

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 A. You have entered any special character in email. Certain special characters in form input fields can break server-side string processing or SQL queries, causing an unhandled server error.

Web Application Attacks & Post-Exploitation

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

  • AYou have entered any special character in email.
  • BEmail entered is not valid.
  • CThe remote server is down.
  • DYour internet connection is slow.

How the community answered

(42 responses)
  • A
    74% (31)
  • B
    14% (6)
  • C
    7% (3)
  • D
    5% (2)

Why each option

Certain special characters in form input fields can break server-side string processing or SQL queries, causing an unhandled server error.

AYou have entered any special character in email.Correct

When a user enters special characters such as single quotes, angle brackets, or percent signs into an email field, the server-side code may fail to sanitize or escape them properly, causing the backend processing or database query to throw an exception. This results in a visible server error rather than a graceful validation message, and is indicative of inadequate input validation on the application. This is also the basis of SQL injection vulnerabilities where a single quote in input breaks a query string.

BEmail entered is not valid.

An invalid email format would typically be caught by client-side or server-side validation and return a user-friendly validation message, not a server error.

CThe remote server is down.

If the remote server were down, the browser would display a connection timeout or 502/503 HTTP error before the web application could even display a server error message.

DYour internet connection is slow.

A slow internet connection would cause delayed responses or timeouts, not a server-side application error returned by the web application itself.

Concept tested: Input validation failure causing server errors via special characters

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

Topics

#input validation#web application error#special characters#form injection

Community Discussion

No community discussion yet for this question.

Full GCIH Practice