Web Security & Secure Coding Practices Quiz

Covers web application security principles, secure coding practices, vulnerability prevention, security testing tools, cryptography concepts, and security APIs

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What are the different levels of logging provided in the API?

  1. Trace, warn, error and fatal
  2. Trace, debug, info, warn, error and fatal
  3. Debug, info, error, fatal
  4. Debug, Warn, Error
Question 2 Multiple Choice (Single Answer)

Which methods in the TCS SAPI can be used to prevent Cross Site Scripting Attacks?

  1. isSafeHTML(java.lang.String context, java.lang.String input, boolean allowNull) and encodeForHTML(java.lang.String input)
  2. isSafeHTML(java.lang.String context, java.lang.String input)
  3. SafeHTML(java.lang.String context, java.lang.String input)
  4. ValidHTML(java.lang.String context, java.lang.String input)
Question 3 Multiple Choice (Single Answer)

What is the base class for all Security related exceptions in the security API?

  1. SecurityException
  2. EnterpriseException
  3. EnterpriseSecurityException
  4. None of the above
Question 4 Multiple Choice (Single Answer)

What is used as the salt value in the hash function available in the TCS SAPI?

  1. A constant value stored as plain text within a configuration file
  2. There is no salt added while calculating the hash value
  3. The accountName is used as the salt value
  4. The salt value is calculated from the password value
Question 5 Multiple Choice (Single Answer)

What is meant by Canonicalization?

  1. Its a form of encoding
  2. Its a form of encryption
  3. Its a form of decryption
  4. Its simply the operation of reducing a possibly encoded string down to its simplest form
Question 6 Multiple Choice (Single Answer)

What is the functionality of the sign() method?

  1. Encrypts the input and returns the encrypted string
  2. Encodes the data
  3. Hashes the data
  4. Create a digital signature for the provided input data and return the signature in a string
Question 7 Multiple Choice (Single Answer)

Which methods in the TCS SAPI can be used to prevent Path Traversal?

  1. isValidDirectory( java.lang.String context, java.lang.String input)
  2. isValidDirectory( java.lang.String context, java.lang.String input) and isValidFileName(java.lang.String context, java.lang.String input)
  3. isSafeDirectoryPath(java.lang.String context, java.lang.String input,boolean allowNull) and isSafeFileName(java.lang.String context, java.lang.String input,boolean allowNull)
  4. ValidateDirectoryPath(java.lang.String context, java.lang.String input,boolean allowNull)
Question 8 Multiple Choice (Single Answer)

What is OWASP WebScarab?

  1. An insecure J2EE web application
  2. A framework for analyzing applications that communicate using the HTTP and HTTPS, most common usage is an intercepting proxy
  3. Static Source Code Analyser
  4. Penetration Testing Tool
Question 9 Multiple Choice (Single Answer)

Which among the below is a browser based HTTP tampering tool for Firefox browser?

  1. LiveHTTPHeaders
  2. Sqlninja
  3. Bobcat
  4. WebGoat
Question 10 Multiple Choice (Single Answer)

_______ is a static ruleset based Java source code analyzer that identifies potential problems.

  1. Ounce
  2. DevInspect
  3. Fortify
  4. PMD
Question 11 Multiple Choice (Single Answer)

_______ is a free static code analysis tool from Microsoft that analyzes the compiled object code for conformance to Microsoft's .NET Framework Design Guidelines.

  1. Ounce
  2. WebGoat
  3. FxCop
  4. Visual Studio
Question 12 Multiple Choice (Single Answer)

_______ is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers

  1. Nikto
  2. GreaseMonkey
  3. Sqlmap
  4. O2
Question 13 Multiple Choice (Single Answer)

Which among the following is an interactive HTTP/S proxy server for attacking and testing web applications ?

  1. WebGoat
  2. BeEF
  3. Burp
  4. Ounce
Question 14 Multiple Choice (Single Answer)

Name of the OWASP Project which is basically an API for ensuring user-supplied HTML/CSS is in compliance within an application's rules.

  1. AntiSamy
  2. WebScarab
  3. WebGoat
  4. ESAPI
Question 15 Multiple Choice (Single Answer)

What product among the below can be used as a static code analyzer?

  1. Ounce
  2. WebInspect
  3. IBM RAD
  4. None of the above
Question 16 Multiple Choice (Single Answer)

Which product among the below can be used as a penetration testing tool?

  1. Ounce
  2. DevInspect
  3. AppScan
  4. FXCop
Question 17 Multiple Choice (Single Answer)

What is OWASP WebGoat?

  1. Web Proxy
  2. XSS Scanner
  3. An insecure J2EE web application
  4. None of the above
Question 18 Multiple Choice (Single Answer)

The principle of least privilege as it applies to Access control mandates that:

  1. Group based access control should be implemented to assign permissions to application users
  2. Consistent authorization checking should be performed on all application pages
  3. A set of all allowable actions should be defined for each user role and all other's denied
  4. All failed access authorization requests should be logged to a secure location for review by administrators
Question 19 Multiple Choice (Single Answer)

The three steps to successful patch management are …

  1. Acquiring, Testing, Installing
  2. Testing, Remediation, Peer Review
  3. Determine needs, Acquire resources, Install the patch
  4. Both A & B
Question 20 Multiple Choice (Single Answer)

The correct way to disable autocomplete in the browser for certain forms is to ….

  1. Set autocomplete to “0”
  2. Set autocomplete to “Off”
  3. Set autocomplete to some other value
  4. Set autocomplete to “no-store”