Question: From the following code identify the possible attack: Line 1 . String username = request.getParameter ( username ) ; Line 2 . String
From the following code identify the possible attack: Line String username request.getParameterusername; Line String password request.getParameterpassword; Line conn pool.getConnection; String sql "select from user where Line username username and password password ; Line stmt conn.createStatement; Line
rs stmtexecuteQuerysql; Line if rsnext out.printlnLogged in Successfully"; else Line out.printlnInvalid Username or Password";
Select the correct options and click submit
SQL Injection
Cross Site Scripting
Password Tampering
Denial of Service
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
