Web Application Security Fundamentals

Quiz covering web application security concepts including vulnerabilities (SQL injection, XSS, buffer overflow), encryption protocols, security design principles, and countermeasures.

16 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

ASLR(Address Space Layout Randomization) and DEP (Data Execution Prevention) can be effective countermeasures against ?

  1. Server Misconfigurations
  2. Buffer Overflow
  3. Brute Force Attacks
  4. None of the above
Question 2 Multiple Choice (Single Answer)

Tina is working on a multi threaded application.The users of the application can specify the duration for which the threads may be put to sleep.If Tina does not perform any input validation,she is most likely to expose her code to ?

  1. Session Fixation
  2. Cross Side Scripting
  3. Denial of Service
  4. SQL Injection
Question 3 Multiple Choice (Single Answer)

Cross site scripting is a type of attack where:

  1. Attacker changes the privilege level through a script
  2. Attacker uploads a message that contains client side code that attacks anyone that reads it.
  3. A script is run at the attackers machine
  4. None of the above
Question 4 Multiple Choice (Single Answer)

It is a good programming practice to prevent Caching of sensitive data at client or proxies by implementing:

  1. "Cache-Control: do not-cache, do not save"
  2. "Cache-Control: do not-save, do not store"
  3. "Cache-Control: no-cache, no store"
  4. "Cache-Control: do not cache"
Question 5 Multiple Choice (Single Answer)

Which is not a component of IIS application ?

  1. FTP
  2. Common files
  3. Background Intelligent Transfer Service (BITS)
  4. All of the choices are component of IIS
Question 6 Multiple Choice (Single Answer)

Entry points in a software application include interfaces, protocols, code and which of the following?

  1. Error Messages
  2. Services
  3. Packaging
  4. Response Codes
Question 7 Multiple Choice (Single Answer)

Which is a countermeasure to a directory-traversal attack?

  1. Enforce permissions to folders.
  2. Allow everyone access to the default page only.
  3. Allow only registered users to access the home page of a website.
  4. Make all users log in to access folders
Question 8 Multiple Choice (Single Answer)

Using a custom build process to enable specific features in the Apache Web server is an example of what design principle?

  1. Least Privilege
  2. Leveraging existing components
  3. Economy of mechanism
  4. Fail safe
Question 9 Multiple Choice (Single Answer)

Applying the most restrictive set of operating system permissions to all application files is an example of what design principle?

  1. Least common mechanism Least privilege
  2. Least Privilege
  3. Separation of duties
  4. Weakest link
Question 10 Multiple Choice (Single Answer)

A tool that can perform ODBC commands on a SQL Server

  1. PSQL
  2. SQLCMD
  3. OSQL
  4. Postgre SQL
Question 11 Multiple Choice (Single Answer)

As part of secure coding practices, its one of the counter measure that we take to address specific vulnerablity while attacker sending large amounts of data that exceed the quantities expected by the application within a given field.

  1. Error handling
  2. SQL Injection attack
  3. Data and Input Validation
  4. Buffer overflow attack
Question 12 Multiple Choice (Single Answer)

Which of the following is not an web application vulnerability ?

  1. Invalidated input
  2. Cross site scripting (XSS)
  3. Use of firewall for content verification
  4. web sever misconfiguration
Question 13 Multiple Choice (Single Answer)

Which piece of information is most likely to be gleaned from html source code?

  1. Directory structures
  2. Facility security measures
  3. Alarm codes
  4. Password policy
Question 14 Multiple Choice (Single Answer)

Web applications that handle sensitive information employ appropriate communication protocols to encrypt the data in transit. Which one of the following communication protocols encrypts data during transit

  1. HTTP 1.1
  2. HTTP 1.0
  3. SSL/TLS
  4. HTTP Keep-Alive
Question 15 Multiple Choice (Single Answer)

Refer URL : http://www.testrun.com/login.aspx?id=' OR 1=1- . Which type of attack refered in this URL

  1. Cross Site Scripting (XSS)
  2. Buffer Overflow
  3. SQL Injection
  4. Cross Site Request Forgeries (CSRF)
Question 16 Multiple Choice (Single Answer)

Which of the following is not a security mechanism

  1. Defence
  2. Dumpster Diving
  3. Deterrence
  4. Detection