Application Security Fundamentals
A comprehensive quiz covering application security concepts including vulnerabilities, testing methodologies, security tools, authentication protocols, logging best practices, and secure coding principles.
Questions
What is the method name of the Java Class "Cookie" to be used to indicate to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL?
- setSSL()
- setCookieSSL()
- setCookieSecure()
- setSecure()
What is the security issue related to persistent cookie
- Persistent cookie information is transmitted thru HTTP
- Persistent cookie does not expire when the browser is hard closed.
- Persistent cookie are created on harddisk and hence they are readable as a file
- No security issue in using Persistent cookie
What manditory information does a audit log contain
- User ID Time stamp Source IP Error codes, if any Priority
- User ID , password Time stamp Source IP Error codes, if any Priority
- User ID , password Time stamp Source IP Error codes, if any Priority , URL accessed
- User ID Time stamp Source IP Error codes, if any Priority , URL accessed, method used, http protocol version, browser type, the referrer page, the response code
Out of the following which one is not a software security metric
- Vulnerabilities detected on xyz server
- Effort slippage
- Number of non negligible risks in the application
- Total exceptions not handled correctly
Expand OWASP
- Open Web Application Security Program
- Open Web Application Security Project
- Open Source Web Application Security Process
- Open Web Application Security Process
What should I log from within my application?
- Login and logout of users, Critical transactions (eg. fund transfer across accounts), Failed login attempts, Account lockouts, Violation of policies
- Login and logout of users, Critical transactions (eg. fund transfer across accounts), Failed login attempts, Account lockouts, Violation of policies, Forgot password correct and wrong credentials
- Login and logout of users, Critical transactions (eg. fund transfer across accounts), Failed login attempts, Account lockouts, Violation of policies, password sharing logs
- Login and logout of users, Critical transactions (eg. fund transfer across accounts), Failed login attempts, Account lockouts, Violation of policies, password sharing logs, race condition logs
The kind of testing a application in which the tester is not provided with any information about the application is called
- Redbox testing
- whitebox testing
- greybox testing
- blackbox testing
Standard Psuedo Random Number Generator (PRNG) cannot withstand cryptographic attacks.Which of the following type of PRNG would be the most secure to use for random number generation?
- Statistical
- Cryptographic
- None of the above
- Both of the above
Which of the following is not a valid application security attack ?
- Blind SQL Injection
- Cross Side Scripting
- Remote File Inclusion
- Cross Site Request Forgery
As per the JavaScript Security Model,scripts can interact only with elements that originate from the same server as the page to which the script belongs.This is commonly known as
- Same Source Policy
- Same Server Policy
- Same Domain Policy
- Same Origin Policy
Which of the following is not a valid XSS attack ?
- DOM
- Persistent
- Reflected
- Inflicted
You have been asked to design an auctioning website.Each bidder is provded a unique login and password.Three invalid login attempts would cause the id to be logged out and any active session to be terminated.Which of the following would you avoid to prevent business logic flaws ?
- Prevent bidders from seing the bid amount by another bidders
- Allow bidders to see the login ID of other bidders
- Prevent a bidder from bidding more than thrice
- Set a cut off amount on the bids to be raised
What is the Auhentication Protocol used by Facebook\Twitter?
- OpenID
- OAuth2.0
- LiveID
- Advanced Encryption Standard
Pick the odd man out
- Burp Suite
- Paros
- Web Scarab
- WireShark
Neil is a budding software developer who has requested you to review his code.He has been asked by the client manager to create an administrative web application designed allow users to kick off a backup of an Oracle database using a batch-file wrapper around the rman utility . The script rmanDB.bat accepts a single command line parameter, which specifies what type of backup to perform. Because access to the database is restricted, the application runs the backup as a privileged user. The commmand to execute the rman script is cmd.exe /K \c:\util\rmanDB.bat < User Specified Back Up type> .Neil has coded the program and which simply accepts the user specified back up variable as a string and directly excutes the command line. What is the most likely vulnerability this code is exposed to?
- Command Injection
- Buffer Overflow
- Persistent XSS
- CSRF
A security mechanism for separating running programs which provides a tightly-controlled set of resources for guest programs to run in?
- Jailbreaker
- Sandbox
- Separator
- Domain
Roy is using a tool which creates intentionally malformed data and then having the software under test consume the malformed data to see how it responds.What kind of tool must Roybe using ?
- Warping Tool
- Fuzzing Tool
- Randomizer
- Code Injector
OWASP is a open community project for
- improving the website performance
- making the website easy to find in search engines
- for improving the security of application software
- improving the website GUI
STRIDE is a model from
- Microsoft for threat modelling
- HP for performance testing of applications
- Symantec for security testing
- Fortis for vulnerability assessments
Intimidation and Impersonation are types of
- Social engineering attacks
- SQL Injection attacks
- Man in the middle attacks
- Cookie poisoning attacks