IT Security Fundamentals Quiz

Covers network security, access control, cryptography, and secure coding practices

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

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  ...
  1. SQL Injection
  2. Cross Site Scripting
  3. Broken Access Control
  4. Improper Resource Initialization
Question 2 Multiple Choice (Single Answer)

Identify the weakness in the below JSP file:

1 <html><body>   
2  ...   
3  Dear User,   
4    
5  If you liked our services, then you would like to refer it to your friends.   
6    
7  Click on the below link:    
8    
9  <a href="/CWE/ReferAFriendAction?pageRedirect="%=new String(  Base64.encode("jsp/ ReferAFriend.jsp".getBytes()))%>">  "Refer a Friend"!</a>  10  ...  
11 </body></html>
  1. Information Disclosure
  2. Cross Site Scripting
  3. Usage of Risky Encryption
  4. All of the above
Question 3 Multiple Choice (Single Answer)

Identify the Vulnerable Line # in the below code:

1 ...   
2 public static Connection getConnection()    
3 {   
4  Connection con = null;   
5  try   
6  {   
7   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");   
8   con = DriverManager.getConnection("jdbc:odbc:Lookup","admin","admin");   
9    
10  }catch (ClassNotFoundException e)   
11  {   
12   if(con!=null)  
13    close(con);  
14   log.debug(“Error Occurred:” + e);   
15    
16  } catch(SQLException ex)  
17  {   
18    
19   if(con!=null)  
20    close(con);  
21   log.debug(“Error Occurred:” + ex);  
22  }  
23  return con;   
24 }  
25 ...
  1. Line # 4
  2. Line # 13 & 20
  3. Line # 7 & 8
  4. None of the above
Question 4 Multiple Choice (Single Answer)

Which of the following is a security advantage of managed code over unmanaged code?

  1. Size of the attack surface
  2. Number of roles
  3. Number of lines of code
  4. Size of the chroot jail
Question 5 Multiple Choice (Single Answer)

Who is ultimately responsible for notifying authorities of a data or system theft?

  1. Users
  2. Security administrators
  3. System administrator
  4. Management
Question 6 Multiple Choice (Single Answer)

Which mitigation technique is the best match for the elevation of privilege threat type?

  1. Authentication
  2. Authorization
  3. Auditing
  4. Confidentiality
Question 7 Multiple Choice (Single Answer)

Which mitigation technique is the best match for the tampering threat type?

  1. Integrity
  2. Availability
  3. Auditing
  4. Confidentiality
Question 8 Multiple Choice (Single Answer)

Which of the following is used to preserve confidentiality in software?

  1. Encryption
  2. Hashing
  3. Recovery
  4. Redundancy
Question 9 Multiple Choice (Single Answer)

Files temporarily created by applications can expose confidential data if:

  1. Special characters are not used in the filename to keep the file hidden
  2. The existence of the file exceeds three seconds
  3. File permissions are not set appropriately
  4. Special characters indicating this is a system file are not used in the filename
Question 10 Multiple Choice (Single Answer)

One of the main disadvantages of integrating cryptography into applications is:

  1. Increased stability as the programs are protected against viral attack
  2. Enhanced reliability as users can no longer modify source code
  3. Reduced breaches of policy due to disclosure of information
  4. Possible denial of service if the keys are corrupted
Question 11 Multiple Choice (Single Answer)

Which type of network component typically lacks sufficient accountability controls?

  1. Workstations
  2. Servers
  3. Switches
  4. Database management systems
Question 12 Multiple Choice (Single Answer)

The correlation of system time among network components is important for what purpose?

  1. Availability
  2. Network connectivity
  3. Backups
  4. Audit log review
Question 13 Multiple Choice (Single Answer)

Which group characteristic or practice should be avoided?

  1. Account groupings based on duties
  2. Group accounts
  3. Distribution of privileges to members of the group
  4. Assigning an account to multiple groups
Question 14 Multiple Choice (Single Answer)

Which type of users should be allowed to use system accounts?

  1. Ordinary users
  2. Security administrators
  3. System administrators
  4. None of the above
Question 15 Multiple Choice (Single Answer)

Wireless network traffic is the best security with which of the following protocols

  1. Wireless Encryption Protocol (WEP)
  2. Wired Equivalent Privacy (WEP)
  3. Wi-Fi Protected Access (WPA)
  4. Wireless Protected Access (WPA)
Question 16 Multiple Choice (Single Answer)

Phishing is essentially another form of:

  1. Denial of service
  2. Social engineering
  3. Malware
  4. Spyware
Question 17 Multiple Choice (Single Answer)

Intrusion detection systems are used to detect all of the following except:

  1. Physical break-ins
  2. System misuse
  3. Unauthorized changes to system files
  4. SPAM
Question 18 Multiple Choice (Single Answer)

Which of the following does not give rise to a vulnerability?

  1. Hackers
  2. Flaws
  3. Policy failures
  4. Weaknesses
Question 19 Multiple Choice (Single Answer)

Patch management is a part of:

  1. Contingency planning
  2. Change control management
  3. Business continuity planning
  4. System update management
Question 20 Multiple Choice (Single Answer)

Which of the following devices should not be part of a network's perimeter defense?

  1. A screening router
  2. A firewall
  3. A proxy server
  4. None of the above