Web Security Flashcards

1
Q

Cookies are created by ads that run on websites

A

trueP3L2

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

trueP3L2

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

Cookies are compiles pieces of code

A

falseP3L2

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

falseP3L2

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

trueP3L2

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

A web browser can be attacked by any website that it visits

A

trueP3L2

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

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

A

falseP3L2

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

trueP3L2

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

trueP3L2

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

A

trueP3L2

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

Checking the HTTP referrer header to see if the request comes from an authorized page can protect against XSRF

A

trueP3L2

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

Using a 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 can protect agains XSRF

A

trueP3L2

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

Logging off immediately after using a web application can protect against XSRF

A

trueP3L2

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

Not allowing the browser to save username/password and not allowing web sites to remember user login can protect against XSRF

A

trueP3L2

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

Not using the same browser to access sensitive web sites and to surf the web freely can protect against XSRF

A

trueP3L2

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

________ is the better way to prevent SQL injection

A

Whitelisting to allow only well-defined set of safe valuesP3L2