osi model Flashcards
Layer 1
Physical (stucture) Layer: Cabling (coax, fiber, wireless, hubs repeaters)
Layer 2
Datalink: Frames - arp, ethernet, ppp (comunication protocol between two routers directly without any host or any other networking in between), switch, bridge.
Layer 3
Network -Packet - ip, icmp (error reporting), ipSec, igmp (multicasting)
layer 4
Transport end to end connections- tcp udp
layer 5
Session - Synch and Send: api, socket connections, winSock
layer 6
presentation syntax layer: encyption occurs here. XDR, TLS, SSL and MIME
layer 7
applicationEnd User Layer - HTTP, FTP, IRC, SSH, DNS
1xx
Information response
2xx
Success response
3xx
Statuses showing a redirection.
4xx
Statuses showing a client-side error.
404 Not Found
403 Forbidden
400 Bad Request
401 Unauthorised
5xx
Statuses showing a server-side error.
500 Internal Server Error
503 Service Unavailable:
What is XSS?
Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Inserted into blog post.
Input Validation/Output Sanitization, with focus on the latter
What is Cross-Site Request Forgery
when an attacker gets a victim’s browser to make requests, ideally with their credentials included, without their knowing. A solid example of this is when an IMG tag points to a URL associated with an action, e.g. http://foo.com/logout/.
Where do you get your security news from
packetstorm, rootsecure, cisa, threatPost, security week, fulldiclosure
Ports 20 and 21
File Transfer Protocol (FTP). FTP is for transferring files between a client and a server.
Port 22
SSh secure Shell