Millionaire Mode
IT Security Fundamentals Quiz
Question 1 of 20
Identify the weakness in the below JSP file:
1 ...
2 <input type=button name="back" value="Back" onClick="javascript:doBack()">
3
4 <%
5 if("Admin".equals(session.getAttribute("user-type")))
6 {
7 %>
8 <input type=button name="Delete Users" value="View Stock" onClick="javascript:doDelete()">
9 <%
10 }%>
11 </form>
12
13 <script>
14 function doBack()
15 {
16 history.go(-1);
17 }
18 function doDelete()
19 {
20 document.forms[0].action="/DeleteUsersAction";
21 document.forms[0].submit();
22 }
23 </script>
24 ...
- SQL Injection
- Cross Site Scripting
- Broken Access Control
- Improper Resource Initialization
Prize Money
15₹7 Crores
14₹1 Crore
13₹50,00,000
12₹25,00,000
11₹12,50,000
10₹6,40,000
9₹3,20,000
8₹1,60,000
7₹80,000
6₹40,000
5₹20,000
4₹10,000
3₹5,000
2₹2,000
1₹1,000