nerdexam
EC-Council

212-89 · Question #116

An organization implemented an encoding technique to eradicate SQL injection attacks. In this technique, if a user submits a request using single-quote and some values, then the encoding technique…

The correct answer is C. Hex encoding. Hex encoding (also known as hexadecimal encoding) involves converting binary data into hexadecimal representation. In the context described, when a user submits a request with potentially malicious input (such as a single quote and other characters in an attempt to perform SQL…

Incident Handling and Response Technologies

Question

An organization implemented an encoding technique to eradicate SQL injection attacks. In this technique, if a user submits a request using single-quote and some values, then the encoding technique will convert it into numeric digits and letters ranging from a to f. This prevents the user request from performing SQL injection attempt on the web application. Identify the encoding technique used by the organization.

Options

  • AUnicode encoding
  • BBase64 encoding
  • CHex encoding
  • DURL encoding

How the community answered

(35 responses)
  • A
    9% (3)
  • B
    17% (6)
  • C
    71% (25)
  • D
    3% (1)

Explanation

Hex encoding (also known as hexadecimal encoding) involves converting binary data into hexadecimal representation. In the context described, when a user submits a request with potentially malicious input (such as a single quote and other characters in an attempt to perform SQL injection), the encoding technique converts this input into a string of hexadecimal digits (ranging from 0 to 9 and A to F). This prevents the direct interpretation of the input as SQL commands by the database, thereby mitigating the risk of SQL injection attacks. This method is a form of input sanitization that helps ensure that user input cannot be used to manipulate database queries directly.

Topics

#SQL injection prevention#hex encoding#input validation#web application security

Community Discussion

No community discussion yet for this question.

Full 212-89 Practice