HTTP stuff Flashcards
HTTP Primer
- Hypertext transfer protocol: primary protocol for transmission of data over the internet
- Data is exchanged between clients and servers in the form of Hypertext documents.
HTTP Headers
An HTTP header is a field of an HTTP request or response that passes additional context and metadata
about the request or response.
HTTP Request Headers
A request header is an HTTP header that can be used in an HTTP request to provide information about the
request context, so that the server can tailor the response.
HTTP Fetch Metadata Request Headers
*Fetch metadata request headers provide information about the context from which the request originated.
*This allows a server to make decisions about whether a request should be allowed based on where the request came from and how the resource will be used.
HTTP Response Headers
A response header is an HTTP header used to give a more detailed context of the response.
HTTP Security Headers
One of the easiest ways to secure a web application against common web security vulnerabilities is to
include HTTP security headers.
Adding Default HTP Security Headers
- Can be done by using the Talisman package
- Talisman class includes almost all the important security headers by default
Default HTTP Security headers
- Permissions-Policy: interest-cohort=()
- X-Frame-Options: SAMEORIGIN
- X-XSS-Protection: 1; mode=block
- X-Content-Type-Options: nosniff
- Content-Security-Policy: default-src ‘self’; object-src ‘none’
- Strict-Transport-Security: max-age=31556926; includeSubDomains
- Referrer-Policy: strict-origin-when-cross-origin
TLS and it’s properties
Transport layer security, Any web application using HTTPS is therefore employing TLS encryption.
Properties:
Encryption - Hides data from third parties
Integrity - verifies data has not been forged or tampered with
Authentication - ensures that the parties exchanging information are who they claim to be
How does TLS Work
- (C-S) Client Hello
- (S-C) Server Hello - including certificate
- (S-C) Client certificate request
- (C-S) Client Certificate
- (C-S) Client sends key info
- (C-S) Certificate verify
7.(C-S) Finished messaged
8.(S-C) Finished message
Digital signatures