16. Web security: web basics Flashcards

1
Q

How does hidden field session tracking work?

A

Web server sends hidden input field with session ID, when form is submitted web server is sent that session ID

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

Whats the disadvantage of hidden field session tracking?

A
  • Every form must have session ID (tedious)

- Session ends when page is closed

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

How does cookie session tracking work?

A

Browser stores cookies and included them in all subsequent requests to the originating host

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

What is the disadvantage of cookie for session tracking?

A

Can be disabled by user

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

What fields does a cookie contain?

A
  • name
  • value
  • expires (when to delete)
  • domain
  • path
  • Secure (only over SSL)
  • HttpOnly (only over HTTP, no JS)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What domains is a cookie valid for?

A

The domain and all sub domains

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

Can mail.example.com access cookies set for example.com

A

yes

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

Can example.com access cookies set for mail.example.com

A

no

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

Which domains can one.mail.example.com set cookies for?

A

Any subdomain and only 1 level up (mail.example.com)

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

How does a network attacker differ from a web attacker?

A

Web attacker controls website victim visits. Network attacker controls whole network, can intercept, craft and send messages.

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