Web Application Security Fundamentals

Test your knowledge of web application security including input validation, common attacks (XSS, buffer overflow), authentication practices, encryption, and secure logging.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is inappropriate for continuous logging?

  1. Critical transactions
  2. Account Lockout
  3. Page load times for all application pages
  4. Login/Logout events for users
Question 2 Multiple Choice (Single Answer)

Which of the following is appropriate for customer emails regarding a limited time promotional offer?

  1. Request that the user authenticate him/herself by replying to the email with their account credentials.
  2. Personalized greeting line
  3. Providing easy access to the customer's account via a “Click Here” style link
  4. Sending the email from a domain set up specifically for the special offer
Question 3 Multiple Choice (Single Answer)

Credit card numbers should be logged into the log file during exception

  1. No. Because leads to insecure storage of private information of the customer
  2. Yes. Because it is a good logging practice to log all relevant information during an exception
  3. Yes. Because it will help in troubleshooting specific customer problems
  4. No. Because its an additional over head
Question 4 Multiple Choice (Single Answer)

Web Service interfaces are prone to which of the following standard web application attacks ?

  1. SQL Injection
  2. Denial of Service
  3. XML Injection
  4. All of the above
Question 5 Multiple Choice (Single Answer)

Which of the following method would be proper to use when encrypting personal information

  1. XOR'ing with a cryptographically secure random number
  2. Triple DES
  3. DES-CBC 56bits
  4. Salted hash with a cryptographically secure random number
Question 6 Multiple Choice (Single Answer)

A race condition in a web server can cause …

  1. Resources to become unavailable to legitimate users
  2. Cross Site Tracing
  3. Server Instability
  4. Both A and B
Question 7 Multiple Choice (Single Answer)

In which type of language can Buffer over flows occur?

  1. Pure C++
  2. Any file type on a web server
  3. Pure C#
  4. Pure Java
Question 8 Multiple Choice (Single Answer)

Cross Site Scripting is an attack against

  1. Client (Browser)
  2. Database
  3. Web Application
  4. Web Server
Question 9 Multiple Choice (Single Answer)

Which cookie flag, when set, will prevent their transmission over non secure channel?

  1. Secure
  2. Domain
  3. Expires
  4. Static
Question 10 Multiple Choice (Single Answer)

The main risk to a web application in a cross site scripting attack is …

  1. Compromise of users
  2. Loss of data integrity
  3. Destruction of data
  4. None of the above
Question 11 Multiple Choice (Single Answer)

Out of the following which can be considered as user input for which validation is not required

  1. Host Header
  2. Cookie
  3. Referrer Header
  4. None of the above
Question 12 Multiple Choice (Single Answer)

It is a leading practice to suppress detailed errors in the following places:

  1. Web Server configuration files
  2. Application configuration files
  3. Application error handlers
  4. All of the above
Question 13 Multiple Choice (Single Answer)

Which of the following is true regarding reverse engineering of compiled Java code

  1. Java sand box environment provides protection against decompilation
  2. Java is compiled into ELF binaries and cannot be decompiled
  3. Java byte code can always be decompiled, code obfuscators can make the reverse engineering process more time confusing but cannot prevent it
  4. Java is difficult to decompile because the Just-In-Time compiler automatically perform string encryption by default
Question 14 Multiple Choice (Single Answer)

Requirements for administrator authentication should be

  1. Equivalent to normal users
  2. Less than those of normal users as all administrators are trustworthy
  3. No authentication is required for administrators
  4. Greater than those of normal users
Question 15 Multiple Choice (Single Answer)

Account lockouts should

  1. Only be used on administrator accounts to ensure continuous access to users
  2. Only be used on user accounts to ensure that administrators are not locked out of the application
  3. Only be used when there is a secure process to unlock the account
  4. None of the above
Question 16 Multiple Choice (Single Answer)

Hard Coding credentials

  1. Cannot be treated as a secure practice
  2. Is a good way to hide passwords from hackers
  3. Is perfectly fine for internal applications
  4. Is perfectly fine for external user facing applications
Question 17 Multiple Choice (Single Answer)

Which languages are vulnerable to Cross Site Scripting attacks ?

  1. Java
  2. ASP.Net
  3. Perl
  4. All of the above
Question 18 Multiple Choice (Single Answer)

With a successful format string attack against the web application, the attacker is able to …

  1. Read only certain memory areas using the %s token
  2. Write only certain areas using other tokens
  3. Read and write to memory at will
  4. None of the above
Question 19 Multiple Choice (Single Answer)

What does “White List” data validation means?

  1. Data is validated against a list of values that are known to be valid
  2. Data is validated against a list of values that are known to be invalid
  3. Both of the above
  4. None of the above
Question 20 Multiple Choice (Single Answer)

Failing to properly validate uploaded files could result in:

  1. Arbitrary code execution
  2. Inadequate caching headers
  3. Distributed Denial of Service Attack against clients
  4. None of the above