Free 312-50 Exam Braindumps
Ethical Hacker Certified Questions 386–390 (page: 79)

Updated On: 10-Feb-2026

Central Frost Bank was a medium-sized, regional financial institution in New York. The bank recently deployed a new Internet-accessible Web application. Using this application, Central Frost's customers could access their account balances, transfer money between accounts, pay bills and conduct online financial business through a Web browser. John Stevens was in charge of information security at Central Frost Bank. After one month in production, the Internet banking application was the subject of several customer complaints. Mysteriously, the account balances ofmany of Central Frost's customers had been changed! However, moneyhadn't been removed from the bank. Instead, money was transferred between accounts. Given this attack profile, John Stevens reviewed the Web application's logs and found the following entries:

Attempted login of unknown user: johnm
Attempted login of unknown user: susaR
Attempted login of unknown user: sencat
Attempted login of unknown user: pete'';
Attempted login of unknown user: ' or 1=1--
Attempted login of unknown user: '; drop table logins--
Login of user jason, sessionID= 0x75627578626F6F6B
Login of user daniel, sessionID= 0x98627579539E13BE
Login of user rebecca, sessionID= 0x9062757944CCB811
Login of user mike, sessionID= 0x9062757935FB5C64
Transfer Funds user jason
Pay Bill user mike
Logout of user mike

What type of attack did the Hacker attempt?

  1. Brute force attack in which the Hacker attempted guessing login ID and password from password cracking tools.
  2. The Hacker used a random generator module to pass results to the Web server and exploited Web application CGI vulnerability.
  3. The Hacker attempted SQL Injection technique to gain access to a valid bank login ID.
  4. The Hacker attempted Session hijacking, in which the Hacker opened an account with the bank, then logged in to receive a session ID, guessed the next ID and took over Jason's session.

Answer(s): C

Explanation:

The 1=1 or drop table logins are attempts at SQL injection.



A particular database threat utilizes a SQL injection technique to penetrate a target system. How would an attacker use this technique to compromise a database?

  1. An attacker uses poorly designed input validation routines to create or alter SQL commands to gain access to unintended data or execute commands of the database
  2. An attacker submits user input that executes an operating system command to compromise a target system
  3. An attacker gains control of system to flood the target system with requests, preventing legitimate users from gaining access
  4. An attacker utilizes an incorrect configuration that leads to access with higher-than-expected privilege of the database

Answer(s): A

Explanation:

Using the poorly designed input validation to alter or steal data from a database is a SQL injection attack.



Jimmy, an attacker, knows that he can take advantage of poorly designed input validation routines to create or alter SQL commands to gain access to private data or execute commands in the database. What technique does Jimmy use to compromise a database?

  1. Jimmy can submit user input that executes an operating system command to compromise a target system
  2. Jimmy can utilize this particular database threat that is an SQL injection technique to penetrate a target system
  3. Jimmy can utilize an incorrect configuration that leads to access with higher-than-expected privilege of the database
  4. Jimmy can gain control of system to flood the target system with requests, preventing legitimate users from gaining access

Answer(s): B

Explanation:

SQL injection is a security vulnerability that occurs in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed. It is in fact an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another.



Identify SQL injection attack from the HTTP requests shown below:

  1. http://www.victim.com/example?accountnumber=67891&creditamount=999999999
  2. http://www.xsecurity.com/cgiin/bad.cgi?foo=..%fc%80%80%80%80%af../bin/ls%20-al
  3. http://www.myserver.com/search.asp?lname=smith%27%3bupdate%20usertable%20set%20passwd%3d%27hAx0r%27%3b--%00
  4. http://www.myserver.com/script.php?mydata=%3cscript%20src=%22http%3a%2f%2fwww.yourser ver.c0m%2fbadscript.js%22% 3e%3c%2fscript%3e

Answer(s): C

Explanation:

The correct answer contains the code to alter the usertable in order to change the password for user smith to hAx0r



What is the problem with this ASP script (login.asp)?

<%
Set objConn = CreateObject("ADODB.Connection")
objConn.Open Application("WebUsersConnection")
sSQL="SELECT * FROM Users where Username=? & Request("user") & _
"?and Password=? & Request("pwd") & "?
Set RS = objConn.Execute(sSQL)
If RS.EOF then
Response.Redirect("login.asp?msg=Invalid Login")
Else
Session.Authorized = True
Set RS = nothing
Set objConn = nothing Response.Redirect("mainpage.asp")
End If
%>

  1. The ASP script is vulnerable to XSS attack
  2. The ASP script is vulnerable to SQL Injection attack
  3. The ASP script is vulnerable to Session Splice attack
  4. The ASP script is vulnerable to Cross Site Scripting attack

Answer(s): B



Viewing page 79 of 154
Viewing questions 391 - 395 out of 765 questions


Post your Comments and Discuss EC-Council 312-50 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!