L21 - Web Security Flashcards

1
Q

Cookies are created by ads that run on websites

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Cookies are created by websites a user is visiting

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Cookies are compiled pieces of code

a) True
b) False

A

b) False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Cookies can be used as a form of virus

a) True
b) False

A

b) False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Cookies can be used as a form of spyware

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Web browser can be attacked by any web site that it visits

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Even if a browser is compromised, the rest of the computer is still secure

a) True
b) False

A

b) False

If a browser is compromised, it can lead to malware installation on the computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Web servers can be compromised because of exploits on web applications

a) True
b) False

A

a) True

Can lead to attacks that can compromise websites

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When a user’s browser visits a compromised or malicious site, a malicious script is returned

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

To prevent XSS, any user input must be checked and preprocessed before it is used inside html

a) True
b) False

A

a) True

Website should make sure that the name of the user is not a script

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can the following prevent XSRF?

Checking the http Referer header to see if the request comes from an authorized page

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can the following prevent XSRF?

Use synchronizer token pattern where a token for each request is embedded by the web application in all html forms and verified on the server side

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can the following prevent XSRF?

Logoff immediately after using a web application

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can the following prevent XSRF?

Do not allow browser to save username/password and do not allow web sites to “remember” user login

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can the following prevent XSRF?

Do not use the same browser to access sensitive web sites and surf the web freely

a) True
b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which is the better way to prevent SQL injection?

a) Use blacklisting to filter out “bad” input
b) Use whitelisting to allow only well-defined set of safe values

A

b) Use whitelisting to allow only well-defined set of safe values