1A user input is pasted into a database query, so an attacker can read or modify data they should never see. What is the fix?
parameterized queries and prepared statements
2Attacker JavaScript runs in another user's browser
3What is IDOR?
IDOR is an access control flaw where the server returns or modfies an object based on a user-supplied ID without checking whether the requester is authorized for that abject
4Why don't UUID's fully remediate IDOR's
UUIDs only make object IDs harder to guess, but they still leak through responses, links, and logs, and the server still never checks whether the requester is authorized to access the object
5What are UUID's? How can attackers obtain them to perform an IDOR
Universally Unique Identifiers are used to label objects so that IDs are hard to guess. Attackers can still get them from API responses, Shared links, Frontend code
6List one way to perform an access control check on IDOR attempt
Perform a lookup scoped only to documents owned by the current user.
7List mitigations for IDOR
Perform access control checks on every object the user attempts to access and provide defense in depth by implementing unpredictable UUID's instead of numeric keys
8What is OWASP
It's a nonprofit foundation that develops freely available sources, testing guides, and best practices for improving application security
9Why does OWASP matter to Pen testers
Pen testers use OWASP resources to guide testing, udnerstand vulnerability categories and communicate remediation guidance
10What is XSS?
Injection Vulnerability where application handles untrusted user input unsafely, allowing attacker-controlled Javascript to execute in a user's browser
11What is reflected XSS? How is it delivered ?
Reflected: The server echoes malicious input from the request straight back into the response, so it runs once for whoever sends that request. It is usually sent via a crafted link the victim clicks, like phishing email or social media post
12What is stored XSS? How is it delivered?
The malcious input is saved by the server and served to anyone who views the page
It is usually served through comment sections, user profile details, contact forms, message boards
13What is DOM based XSS? How is it delivered?
Client Side Javascript takes attacker controlled data from a source and writes it into a dangerous sink
It is usually delivered via. crafted link
14What seperates DOM XSS from Stored and Reflected XSS
DOM XSS never touches or passes through the web server
15How to test for XSS?
Identify input sources, inspect where the input appears in the page or DOM, test context specific payloads.
16What is Content Security Policy
A browser security mechanism that mitigates XSS by restricting the resources (JSS, images, CSS) that a browser is allowed to load and execute
17What is output encoding and how does it prevent against XSS
It converts special characters in untrusted data into safe representations so the browsers HTML parser treats them as text rather than HTML syntax
18What are the main mitigations for xss
outpiut encoding, input validation, HTML sanitization, Content Security Policy, HttpOnly cookies
19What is CSRF
Cross-Site Request Forgery: an attacker tricks an authenticated user's browser into executing an unwanted, state-changing action on a untrsuted web app
20What are the conditions for a sucessful CSRF attack
A relevant action has to be performed, the app identfiies the user by cookies only so the browser sends it automatically, there are no unpredictable parameters added
21What are the three most common defenses for CSRF
CSRF tokens, SameSite Cookies, Referer Based Validation