wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Application Security Testing-PostTest

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

What happens when an application takes user inputted data and sends it to a web browser without proper validation and escaping

a)

Security Mis-configuration

b)

Cross Site Scripting

c)

Insecure Direct Object References

d)

Broken Authentication and Session Management

2.

Which character is most likely to be used for an SQL injection attack

a)

Single quote (')

b)

Null (\0) byte

c)

Less than sign(<)

d)

Greater than sign(>)

3.

Which of the following attacks occurs when a malicious user convinces a victim to send a request to a server with malicious input and the server echoes the input back to client?

a)

Reflected XSS

b)

Persistent XSS

c)

Insecure Direct Object Reference

d)

Failure to Restrict URLs

4.

An attack technique that forces a user’s session credential or session ID to an explicit value.

a)

Brute Force Attack

b)

Session hijacking

c)

Session Fixation

d)

Dictionary attack

5.

Which of the following is the best way to ensure that JavaScript cannot be used to access a cookie

a)

Set the Secure Flag in the Cookie

b)

Set the HTTP only Flag in the Cookie

c)

Use the CAPTCHA System

d)

Use non-persistent cookie

6.

What threat arises from not flagging HTTP cookies with tokens as secure

a)

Session Hijacking

b)

Insecure Cryptographic Storage

c)

Access Control Violation

d)

Session replay

7.

Which attack can execute scripts in the user’s browser and is capable of hijacking user sessions, defacing websites or redirecting the user to malicious sites

a)

SQL injection

b)

Cross-Site Scripting

c)

Malware Uploading

d)

Man In The Middle Attack

8.

Why should you use CAPTCHA

a)

To create cryptographically random session IDs

b)

To protect credentials by using encryption or cryptographic salt and hash

c)

To protect authentication systems from automated or brute-force attacks

d)

To ensure that authentication systems implement inactivity timeout functionality

9.

What flaw can lead to exposure of resources or functionality to unintended actors

a)

Session Fixation

b)

Improper Authentication

c)

Insecure Cryptographic Storage

d)

Invalidated Redirects and Forwards

10.

Role-Based Access control helps prevent this OWASP Top 10 weakness

a)

Failure to restrict URL Access

b)

Invalidated Redirect or Forward

c)

Security Mis-configuration

d)

Insufficient Transport Layer Protection

11.

What is the type of flaw that occurs when untrusted user entered data is sent to the interpreter as part of a query or command

a)

Insecure Direct Object References

b)

Injection

c)

Cross Site Request Forgery

d)

insufficient Transport Layer Protection

12.

Which threat is most likely to occur when a POST parameter performs an operation on behalf of a user without checking a shared secret

a)

Cross Site Request Forgery

b)

Insecure Direct Object Reference

c)

Cross Site Scripting

d)

Injection

13.

Which of the following is most likely to result from invalidated redirects and forwards

a)

Brute Force Attack

b)

Network Sniffing

c)

Man In The Middle Attack

d)

Bypassed Authorization attack

14.

Attack that exploits the trust that a site has in a user's browser

a)

Session Hijacking

b)

Cross Site request Forgery

c)

SQL injection

d)

Cross Site Scripting

15.

Which of the following functionalities should you include in an authentication and session management system? (Choose two.)

a)

Logout Functionality

b)

Inactivity Time-out functionality

c)

Escaping Functionality

d)

Forwarding System Functionality

16.

What is phishing

a)

Data transfer Protocol

b)

Email Scam

c)

Network Scandal

d)

Cross Domain Scam

17.

Which of the following are most often associated with a security mis-configuration threat

a)

Unused Service

b)

Default Accounts

c)

Bad Cryptography

d)

Unsafe Key Storage

18.

You should set a secure flag in a cookie to ensure that

a)

The cookie is a persistent cookie

b)

The cookie is sent over an encrypted channel

c)

The cookie is deleted when the user closes the browser

d)

The cookie is not available to client script