Vulnerability Definitions + Remediations

46 flashcardsby Ian
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
List 2-3 remediations for SQL injection
Use parameterized queries/prepared statements and apply least-privilege database permissions
2
List 3 remediations for XSS
Context-aware output encoding
HTML sanitization / safe DOM API's
CSP as defense in depth
3
List 3 remediations for IDOR
Server side authorization checks on every resource or action
Deny Access By Default
Apply Least Privilege
4
List 3 remediations for Authentication Weaknesses
Enforce MFA
Apply login rate limiting and account lockout
Enforce secure password policies
5
List 2 mitigations for XML External Entity (XXE)
Disable external entity resolution
Disable unnecessary DTD processing
6
List 3 mitigations for CSRF
Implement unpredicatable anti-CSRF tokens
Configure SameSite Cookies
Validate Origin Headers
7
List 2 Mitigations for Session Hijacking /Token Theft
Enforce HTTPS with Secure and use HTTPOnly cookies
Use session expiration, revocation, and roation
8
What's 2 mitigations for Session Fixation
Regenerate sessions IDs after logins and privilege changes
Discard old session ID's
9
List 3 Mitigatons for SSRF
Allowlist approved destinations, firewall on sensitive endpoints, egress filtering
10
List 2 mitigations for Path trave
Avoid user controlled file paths
canonicalize file paths and validate the result against a whitelist of trusted file paths/directories
11
How do you prevent OS command injection
Avoid shell execution and if not pass validated arguments through safe process APIs
12
2 Mitigations for Business Logic Flaws
Enforce Business rules server-side
test for workflow bypasses and abuse cases
13
List 3 mitigations for sensitive information disclosure
Restrict access to sensitive information
Minimize error details
encrypt infromation
14
List 3 mitigations for brute force
implement MFA
Enforce rate limiting and account lockouts
Detect and block suspicious login activies
15
Why doesn't input validation alone prevent SQL injection?
Because malicious input can take different forms, and input filtering does not reliably separate SQL commands from data. Parameterized queries do.
16
Why isn't blocking ../ enough to prevent path traversal?
Because attackers may use encoded paths, alternative separators, or other representations. Normalize and resolve paths before checking that they remain within the authorized directory.
17
Why is checking a file extension insufficient for secure uploads?
Because an attacker can rename malicious content to use an allowed extension. The application should validate file types, isolate uploaded files, and prevent their execution
18
Why doesn't a signed JWT prevent session hijacking?
Because signing prevents unauthorized modification of the token, not reuse of a valid stolen bearer token.
19
Define SQL Injection
A vulnerability where untrusted input alters a SQL query, allowing attackers to execute unintended database operations.
20
What is Cross-Site Scripting
A vulnerability where untrusted content executes as malicious JavaScript in another user's browser
21
What is Stored XSS
Occurs when malicious Javascript is stored by an application and executed when a victims views the affected content
22
What is reflected XSS
Occurs when malicious input is reflected in a servers response and executed in a victim's browser
23
What is DOM-Based XSS
Occurs when client side javascript unsafely handles user-controlled input, causing malicious JavaScript to execute in the browser
24
What is Broken Access Control
A vulnerability where an application fails to enforce permissions, allowing users unauthorized access to resources or actions
25
What is IDOR/BOLA
An application fails to verify authorization for a requested objects, allowing users to access others resources
26
What is Horizontal Privilege Escalation
Gaining unauthorized access to another user's resources or account at the same privilege leve
27
What is Vertical Privilege Escalation
Gaining unauthorized access to higher-level privileges or functionality, such as administrator capabilities.
28
What are the six main phases of web application penetration testing?
Scope -> Recon -> Enumerate -> Test -> Validate -> Report
29
Q2: What is the purpose of reconnaissance and enumeration?
Identify technologies, endpoints, parameters, authentication mechanisms and potential entry points
30
Q3: Why must penetration testers validate findings?
To confimr vulnerabilities are exploitable and determine their actual impact
31
Q4: What should a penetration testing report include?
Evidence, reproduction steps, severity, business impact, remediation and recommendations
32
Q5: What is the difference between authentication and authorization?
Authentication verifies identity while authorization verifies permission
33
Q6: What is horizontal vs. vertical privilege escalation?
Horizonal accesses another user's resources, while vertical gains higher level privileges
34
How would you test for broke access control?
Use accounts with different permissions and manipulate resource IDs or restricted endpoints
35
Q8: How do you prevent broken access control?
Enforce server-side authorization, deny by default, apply least privilege
36
Q: How would you manually test for SQL injection?
Inject SQL test payloads into user-controlled inputs and observe errors, response differences or time delays that indicate SQL injection
37
Give 4 examples of SQL injection
Retrieving hidden data, authentication bypass, UNION attacks, Blind SQL injection
38
What's the difference between stored, reflected, and DOM-based XSS
Stored = saved payload Reflected = immediate server response DOM-XSS = client side Javascript processing
39
What is the purpose of Content Security Policy
Restricts which resources of scripts the browser may load or execute, providing defnese in depth
40
Q17: What is Burp Suite?
A web application security toolkit for inspecting and manipulating HTTP traffic
41
What does Burp Proxy do?
Intercepts and inspects HTTP requests and responses between a server and browser
42
Q19: What does Burp Repeater do?
Manually modifies and resends HTTP requests
43
Q20: What does Burp Intruder do?
Automates sending HTTP request with different payloads to test application behavior
44
What is the main difference between SQLi, XXE, and SSRF?
SQLi manipulates database queries; XXE abuses XML parsers; SSRF causes unintended server-side requests.
45
Q26: How would you test for IDOR?
Use two test accounts and modify resource IDs to check for unauthorized access
46
Q27: What confirms an IDOR vulnerability?
The server returns or modifies a resource that the request user isn't authorized to access
Study all 46 cards for free

More Computer science flashcards

Section 3.2-3.4: Memory, Storage, and Motherboards73 cardsComputer science · EnglishpzxliITEC111: Cryptography and Information Security61 cardsComputer science · EnglishsabLecture 1 + Lecture 1 (IDK)50 cardsComputer science · EnglishAmoghCybersecurity7 decks · 247 cardsComputer scienceAndrewAtmopy Unit 1 36 cardsComputer science · EnglishMiriComputer Hardware Components30 cardsComputer science · EnglishAyaanMicro 3-2 Yu24 cardsComputer science · EnglishDiandreiлек4 типы данных Python 18 cardsComputer science · RussianYasher557L.1 computer system servicing 14 cardsComputer science · EnglishstudentMeshes and Draw Calls8 cardsComputer science · EnglishNijelousNetwork Security (NETSEC)310 cardsComputer science · EnglishEdsonLinux Security and AppArmor (Module 14)99 cardsComputer science · EnglishAndrew

All Computer science decks

Study these decks in the app

Free on iPhone, Android, Mac and the web. Add any deck to your account in one tap.

Download on the App StoreGet it on Google Play
Study all 46 cards for free