Web Security - Basics, SOP, Sessions Flashcards
Define
Uniform Resource Identifier (URI)
Web Security
Identifies a resource (string)
Define
Scheme
Web Security
Protocol and framework
Components of Uniform Resource Identifier (URI)
Web Security
- Scheme
- Authority
- Path
- Query
Define
Authority
Web Security
Qualifying name (typically DNS host server or IP address)
Define
Path
Web Security
Pathname consisting of “/” separated strings
Define
Query
Web Security
Application-specific information
Define
Uniform Resource Locator (URL)
Web Security
The identifier that contains information on how to locate a existing/available resource
Define
Uniform Resource Name (URN)
Web Security
Identifies an entity regardless of availability/existence
Define
Hypertext Markup Language (HTML)
Web Security
A language that uses tags and attributes to display a webpage
Define
Javascript
Web Security
Powerful script to manipulate client-side data and provides object support
Why is Javascript suitable for HTML?
Javascript is weakly and dynamically typed
Define
HTML Frames
Web Security
The tag that allows for multiple separate views/pages associated with separate URLS on the same page
Directly visiting a page will lead to which frame?
Web Security
Main frame
What does the parent frame do?
Web Security
Specify its own style and the placement of the child frame within itself
Define
Hypertext Transfer Protocol (HTTP)
Web Security
An application-layer protocol to transfer information between web client and server (typically port 80)
What does a client do during HTTP?
Web Security
Opens a connection and sends requests
What does a server do during HTTP?
Web Security
Accept client’s connection and sends replies as a response to the requests
HTTP Request Headers specify
Web Security
- Method
- Resource
- Protocol version
HTTP Methods
Web Security
- GET()
- HEAD()
- POST()
- PUT()
Define
HTTP Method: GET()
Web Security
Reads data from the URL
Define
HTTP Method: HEAD()
Web Security
Fetches information about the data resource from the HTTP header
Define
HTTP Method: POST()
Web Security
Submits “data” and stores data as value in a variable
Define
HTTP Method: PUT()
Web Security
Uploads data to a stored variable under a specific resource
What specifies a resource?
Web Security
An absolute URI or relative path
How does an absolute URI request a resource?
Web Security
Through proxy
How does a relative path request a resource?
Web Security
Through a server that owns the resource
Define
HTTP Response
Web Security
The answer or data read by the server
Define
Web Servers
Web Security
Something that loops forever to receive HTTP requests and send HTTP responses
Outline a TCP connection
Web Security
- Client requests to connect with a server
- Server accepts connection
- Client sends HTTP Request
- Server reads and processes HTTP Request
- Server writes back HTTP Response
- Connection closed
Define
Common Gateway Interface (CGI)
Web Security
Protocol for web servers to execute programs and generate pages dynamically
Define
HTML Forms
Web Security
Collects data using GET and POST methods
Where is data collected from when an HTML form uses GET()?
Web Security
Query
Where is data collected from if an HTML form uses POST()?
Web Security
Body
How is data sent back in an HTML form?
Web Security
Name-value pair