IT Security Fundamentals Quiz
Covers network security, access control, cryptography, and secure coding practices
Questions
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
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>
- Information Disclosure
- Cross Site Scripting
- Usage of Risky Encryption
- All of the above
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 ...
- Line # 4
- Line # 13 & 20
- Line # 7 & 8
- None of the above
Which of the following is a security advantage of managed code over unmanaged code?
- Size of the attack surface
- Number of roles
- Number of lines of code
- Size of the chroot jail
Who is ultimately responsible for notifying authorities of a data or system theft?
- Users
- Security administrators
- System administrator
- Management
Which mitigation technique is the best match for the elevation of privilege threat type?
- Authentication
- Authorization
- Auditing
- Confidentiality
Which mitigation technique is the best match for the tampering threat type?
- Integrity
- Availability
- Auditing
- Confidentiality
Which of the following is used to preserve confidentiality in software?
- Encryption
- Hashing
- Recovery
- Redundancy
Files temporarily created by applications can expose confidential data if:
- Special characters are not used in the filename to keep the file hidden
- The existence of the file exceeds three seconds
- File permissions are not set appropriately
- Special characters indicating this is a system file are not used in the filename
One of the main disadvantages of integrating cryptography into applications is:
- Increased stability as the programs are protected against viral attack
- Enhanced reliability as users can no longer modify source code
- Reduced breaches of policy due to disclosure of information
- Possible denial of service if the keys are corrupted
Which type of network component typically lacks sufficient accountability controls?
- Workstations
- Servers
- Switches
- Database management systems
The correlation of system time among network components is important for what purpose?
- Availability
- Network connectivity
- Backups
- Audit log review
Which group characteristic or practice should be avoided?
- Account groupings based on duties
- Group accounts
- Distribution of privileges to members of the group
- Assigning an account to multiple groups
Which type of users should be allowed to use system accounts?
- Ordinary users
- Security administrators
- System administrators
- None of the above
Wireless network traffic is the best security with which of the following protocols
- Wireless Encryption Protocol (WEP)
- Wired Equivalent Privacy (WEP)
- Wi-Fi Protected Access (WPA)
- Wireless Protected Access (WPA)
Phishing is essentially another form of:
- Denial of service
- Social engineering
- Malware
- Spyware
Intrusion detection systems are used to detect all of the following except:
- Physical break-ins
- System misuse
- Unauthorized changes to system files
- SPAM
Which of the following does not give rise to a vulnerability?
- Hackers
- Flaws
- Policy failures
- Weaknesses
Patch management is a part of:
- Contingency planning
- Change control management
- Business continuity planning
- System update management
Which of the following devices should not be part of a network's perimeter defense?
- A screening router
- A firewall
- A proxy server
- None of the above