wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Cross-Site Scripting

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

Which is not an injection type of attack?

a)

cross-site scripting

b)

SQL injection

c)

insecure direct object reference

d)

LDAP injection

2.

In cross-site scripting (XSS), malicious code executes on the client.

a)

TRUE

b)

FALSE

3.

Which is NOT a type of XSS?

a)

stored

b)

injected

c)

DOM-based

d)

reflected

4.

Reflected XSS is considered more damaging than stored XSS.

a)

TRUE

b)

FALSE

5.

All but one are generally applied to user input to prevent XSS attacks.

a)

sanitisation

b)

filtering

c)

encryption

d)

escaping

6.

What is typically stolen in a XSS attack?

a)

hashed passwords for all users

b)

unencrypted files

c)

network traffic

d)

session IDs from cookies

7.

An attacker posts malicious XSS code in the comments section of a website. Where would this code typically run?

a)

on the application server

b)

on the database, when stored

c)

on every browser that visits the page

d)

on the database, when retrieved

8.

Sanitising user input on the server side does NOT help prevent this type of XSS attack.

a)

reflected

b)

stored

c)

DOM-based

d)

none of the above

9.

AJAX is generally used to...

a)

send data using an encrypted connection

b)

keep state between client and server

c)

cache data within the browser

d)

update content without reloading the full page

10.

Which tool is used to download full webpages and their content?

a)

spider

b)

proxy

c)

fuzzer

d)

Zap