Security Flashcards
What are the goals of web security?
Leak prevention and user privacy
Leak Prevention
Prevent unauthorized access of information owned by an organization
User Privacy
Prevent unauthorized access of other user’s information (legally required)
- Other users by logged-in users
- All users by logged-out users
Remote Control Execution (RCE) on Server
Prevent code that is unauthorized/unknown/dangerous from being run on the server by people outside of the organization/business
Cross Site Scripting (XSS)
Unauthorized code or actions running on the client, usually the browser
Cross Site Request Forgery (CSRF)
Any action that appears to be taken on an authorized user’s behalf but isn’t actually (including GET)
Server Side Request Forgery (SSRF)
Any action that appears to be taken on an authorized server/service’s behalf but isn’t actually (including GET)
Denial of Service (DoS)
Anything that causes the website or web service to be unable to serve its normal users
What web weakness is the inclusion of unauthorized HTML/CSS/JS in a page?
Cross-Site Scripting (XSS)
What are the types of XSS?
- Server (URL navigation, script, link, …)
- Client (bad code from an AJAX call)
- DOM (bad code generated by code on the client that modifies the DOM)
- Reflected
- Persistent
Reflected XSS (Type 1)
Provided by a single server response as an immediate response to a malicious request
Persistent XSS (Type 2)
Provided by any number of server responses. The malicious code is stored on the server