Web Security & Secure Coding Practices Quiz
Covers web application security principles, secure coding practices, vulnerability prevention, security testing tools, cryptography concepts, and security APIs
Questions
What are the different levels of logging provided in the API?
- Trace, warn, error and fatal
- Trace, debug, info, warn, error and fatal
- Debug, info, error, fatal
- Debug, Warn, Error
Which methods in the TCS SAPI can be used to prevent Cross Site Scripting Attacks?
- isSafeHTML(java.lang.String context, java.lang.String input, boolean allowNull) and encodeForHTML(java.lang.String input)
- isSafeHTML(java.lang.String context, java.lang.String input)
- SafeHTML(java.lang.String context, java.lang.String input)
- ValidHTML(java.lang.String context, java.lang.String input)
What is the base class for all Security related exceptions in the security API?
- SecurityException
- EnterpriseException
- EnterpriseSecurityException
- None of the above
What is used as the salt value in the hash function available in the TCS SAPI?
- A constant value stored as plain text within a configuration file
- There is no salt added while calculating the hash value
- The accountName is used as the salt value
- The salt value is calculated from the password value
What is meant by Canonicalization?
- Its a form of encoding
- Its a form of encryption
- Its a form of decryption
- Its simply the operation of reducing a possibly encoded string down to its simplest form
What is the functionality of the sign() method?
- Encrypts the input and returns the encrypted string
- Encodes the data
- Hashes the data
- Create a digital signature for the provided input data and return the signature in a string
Which methods in the TCS SAPI can be used to prevent Path Traversal?
- isValidDirectory( java.lang.String context, java.lang.String input)
- isValidDirectory( java.lang.String context, java.lang.String input) and isValidFileName(java.lang.String context, java.lang.String input)
- isSafeDirectoryPath(java.lang.String context, java.lang.String input,boolean allowNull) and isSafeFileName(java.lang.String context, java.lang.String input,boolean allowNull)
- ValidateDirectoryPath(java.lang.String context, java.lang.String input,boolean allowNull)
What is OWASP WebScarab?
- An insecure J2EE web application
- A framework for analyzing applications that communicate using the HTTP and HTTPS, most common usage is an intercepting proxy
- Static Source Code Analyser
- Penetration Testing Tool
Which among the below is a browser based HTTP tampering tool for Firefox browser?
- LiveHTTPHeaders
- Sqlninja
- Bobcat
- WebGoat
_______ is a static ruleset based Java source code analyzer that identifies potential problems.
- Ounce
- DevInspect
- Fortify
- PMD
_______ is a free static code analysis tool from Microsoft that analyzes the compiled object code for conformance to Microsoft's .NET Framework Design Guidelines.
- Ounce
- WebGoat
- FxCop
- Visual Studio
_______ is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers
- Nikto
- GreaseMonkey
- Sqlmap
- O2
Which among the following is an interactive HTTP/S proxy server for attacking and testing web applications ?
- WebGoat
- BeEF
- Burp
- Ounce
Name of the OWASP Project which is basically an API for ensuring user-supplied HTML/CSS is in compliance within an application's rules.
- AntiSamy
- WebScarab
- WebGoat
- ESAPI
What product among the below can be used as a static code analyzer?
- Ounce
- WebInspect
- IBM RAD
- None of the above
Which product among the below can be used as a penetration testing tool?
- Ounce
- DevInspect
- AppScan
- FXCop
What is OWASP WebGoat?
- Web Proxy
- XSS Scanner
- An insecure J2EE web application
- None of the above
The principle of least privilege as it applies to Access control mandates that:
- Group based access control should be implemented to assign permissions to application users
- Consistent authorization checking should be performed on all application pages
- A set of all allowable actions should be defined for each user role and all other's denied
- All failed access authorization requests should be logged to a secure location for review by administrators
The three steps to successful patch management are …
- Acquiring, Testing, Installing
- Testing, Remediation, Peer Review
- Determine needs, Acquire resources, Install the patch
- Both A & B
The correct way to disable autocomplete in the browser for certain forms is to ….
- Set autocomplete to “0”
- Set autocomplete to “Off”
- Set autocomplete to some other value
- Set autocomplete to “no-store”