Revision Flashcards
5 factors that have exacerbated security issues surrounding web apps
- user error
- phishing
- lack of multi factor authentication
- recycling of passwords between applications
- careless configuration by sys admin / developers
Draw 7 layer OSI Model
- Application Layer
- Presentation Layer
- Session
- Transport
- Network
- Data link later
- Physical
What are the 3 new OSI layer models?
- Government
- Organisation
- User
What 4 parts does a HTTP request contain?
- Request line
- Several Headers
- Optional body message
- A mandatory blank line
Server type is exposed in the header
HTTP is what type of protocol?
- message based
- statelesss
- operates by sending a message to the server
- receives a response in return
List 6 other HTTP requests
- HEAD
- OPTION
- PUT
- TRACK
- TRACE
- DELETE
List 2 main types of HTTP request
- GET
- POST
What does the first line of a HTTP request comprise of?
- request method: GET or POST
- required resource: HTTP version (HTTP/1.0 or HTTP/1.1)
Headers are on lines 2 - 4 of a GET request. What do they inform the server of?
- methods of encoding
- compression
- content types supports by the client
User agent header is used for what 2?
- by the client browser to identify itself to the application
- differentiate between desktop and mobile devices
What is line 6 used for in HTTP Get ?
- Host header
- used to identfiy which server the client is attempting to access
- 1 server can host multiple websites
Connection header Line 7 of the HTTP request is used for what?
instructs the web server to either keep connection alive or close after current transaction
Line 8 is used for what
cookies
line 9 is used for what?
- mandatory blank line
- cr lf
How does SQL injection occur?
- from a lack of encoding/escaping of user-controlled input
- when included in SQL queries.