nerdexam
ExamsCAS-003Questions#76
CompTIA

CAS-003 · Question #76

CAS-003 Question #76: Real Exam Question with Answer & Explanation

The correct answer is C: The security administrator is concerned with SQL injection, and the developer should implement. The code in the question is an example of a SQL Injection attack. The code `1=1' will always provide a value of true. This can be included in statement designed to return all rows in a SQL In this question, the administrator has implemented client-side input validation. Client-si

Question

A developer has implemented a piece of client-side JavaScript code to sanitize a user's provided input to a web page login screen. The code ensures that only the upper case and lower case letters are entered in the username field, and that only a 6-digit PIN is entered in the password field. A security administrator is concerned with the following web server log: 10.235.62.11 - [02/Mar/2014:06:13:04] "GET /site/script.php?user=admin&pass=pass%20or%201=1 HTTP/1.1" 200 5724 Given this log, which of the following is the security administrator concerned with and which fix should be implemented by the developer?

Options

  • AThe security administrator is concerned with nonprintable characters being used to gain
  • BThe security administrator is concerned with XSS, and the developer should normalize Unicode
  • CThe security administrator is concerned with SQL injection, and the developer should implement
  • DThe security administrator is concerned that someone may log on as the administrator, and the

Explanation

The code in the question is an example of a SQL Injection attack. The code `1=1' will always provide a value of true. This can be included in statement designed to return all rows in a SQL In this question, the administrator has implemented client-side input validation. Client-side validation can be bypassed. It is much more difficult to bypass server-side input validation. SQL injection is a code injection technique, used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field for execution (e.g. to dump the database contents to the attacker). SQL injection must exploit a security vulnerability in an application's software, for example, when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and unexpectedly executed. SQL injection is mostly known as an attack vector for websites but can be used to attack any type of SQL database.

Community Discussion

No community discussion yet for this question.

Full CAS-003 Practice