Sessions Flashcards

1
Q

Why would a webdev store info on server side instead of client side?

A
  1. to hide app logic

2. to avoid back and forth data transmission of typical cookies

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

Sessions

A

lets website store variables specific for a given visit on the server-side

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

session ID / token

A

assigned to client and identifies user session

  • server retrieves the state of the client and all its associated variables
  • stored by inside text files storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does a web application install session IDs on a web browser

A

by using session cookies

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

session cookies

A

contain single parameter value pair referring to the session

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

SOP: Same Origin Policy

A
  • prevents JavaScript code from getting or setting properties on a resource coming from a different origin
  • critical point of web app sec
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does a browser determine if JavaScript can access a resource?

A

hostname, port, and protocol must match

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

What does SOP apply to?

A

ONLY the actual code of a script

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

In terms of SOP, what would happen if a script on domain A could read content on domain B?

A

it would be possible to steal clients’ information and mount a number of very dangerous attacks

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

intercepting proxy

A

tool that lets you analyze and modify any request or response exchanged between an HTTP client and server

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

proxy server

A

different from intercepting

- fro bandwidth optimization, content filtering, etc

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

What does Burp Suite let you do?

A
  • intercept requests/responses between browser and web server
  • build requests manually
  • crawl a website by automatically visiting every page in a website
  • fuzz web apps by sending them patterns f valid and invalid inputs to test their behavior
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to check what HTTP traffic Burp is collecting?

A
  • Proxy > History tab

- Target > Site Map tab

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

What is Burp Repeater

A

lets you manually build raw HTTP requests

  • can also use netcat or telnet
  • but burp also gives you: syntax, raw/rendered responses, integration with other burp tools
How well did you know this?
1
Not at all
2
3
4
5
Perfectly