Web Application Security and Software Testing
Mixed quiz covering web security concepts (XSS, SQL Injection, authentication) and software testing methodologies (coverage, black-box, data flow)
Questions
Condition Testing is a control structure Testing Technique where the criteria used to design test cases is that they
- Rely on Path Based Testing
- Exercise the Logical Conditions in a Program module
- Select Test Paths based on the locations and uses of variables
- Focus on Testing the Validity of loop constructs
Data Flow Testing is a control structure Testing Technique where the criteria used to design test cases is that they
- Rely on Path Based Testing
- Exercise the Logical Conditions in a Program module
- Select Test Paths based on the locations and uses of variables
- Focus on Testing the Validity of loop constructs
Black-Box Testing attempts to find errors in which of the following categories
- Incorrect or Missing functions
- Interface Errors
- Performance Errors
- All of the Above
- None of the Above
Fault-based Testing is best reserved for
- Conventional Software Testing
- Operations and classes that are Critical or Suspect
- Use-Case Validation
- White-Box Testing of Operator Algorithms
The Test data is divided into valid and invalid classes. Then those two classes are tested. This is
- Boundary Value Analysis
- Error Guessing
- Equivalence Partitioning
- Both B and C
Which of the following are characteristics of testable Software ?
- Observability
- Simplicity
- Stability
- All of the Above
Which testing ensures that all part of the code is executed once?
- Statement Coverage
- Path Coverage
- Branch Coverage
- None of the Above
Select the options which ensure application’s Security (select more than one)
- Authentication
- Authorization
- Integrity
- Availability
- Confidentiality
Custom error message display should be turned ‘On’ to reduce attacks
- True
- False
Key words used for SQL Injection attack (select more than one)
- CREATE
- UNION
- WHERE
- OR
Select the application type which could be affected by security threats (select more than one)
- Website with URL https
- Website with URL http
- Windows application
- Only Website with URL http & Windows application
Select input validation threat category (select more than one)
- Buffer overflows
- SQL Injection
- Cross site scripting
- Authentication
- Authorization
Client side validation is advised for enforcing the security
- True
- False
Select the validations required for File upload (Select more than one)
- File Name
- File Type
- Size
- Virus Scanning
Cross Site scripting threat would be possible if the user input is echoed back to the user
- True
- False
Common threats in the application / system
- Denial of service
- Executing malicious content
- Information disclosure
- All of the above
Select different modes of authentication to web application (select more than one)
- Windows authentication
- SQL authentication
- Form based authentication
- Basic authentication
- Passport authentication
- All of the above
Select the one which would lead to SQL injection attack
- SqlDataAdapter myCommand = new SqlDataAdapter( "SELECT CustomerName, Email, PhoneNo FROM users WHERE cust_id = '" + txtuser.Text + "'", myConnection);
- CREATE PROCEDURE procGetUser @custId VARCHAR(5) AS SELECT CustomerName, Email, PhoneNo FROM Customers WHERE cust_id = @custId
- SqlDataAdapter myDataAdapter = new SqlDataAdapter("SELECT CustomerName, Email, PhoneNo FROM Customers WHERE cust_id = @cust_id", connection); myCommand.SelectCommand.Parameters.Add("@cust_id", SqlDbType.VarChar,
- All the above
Select the security best practice techniques (select more than one)
- Provide highest privilege
- Encode all client supplied data
- Use of parameterized stored procedure
- Providing detailed error message
Select the threat category for the below request-response Web Request - http://www.somesite.com/page.asp?pageid=10&lang=en&title=Section%20Title Response -
Section Title
- SQL Injection
- Cross Site Scripting
- Authentication
- Forceful browsing