NetSPI Interview

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

All cards

1
A 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
2
Attacker JavaScript runs in another user's browser
3
What 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
4
Why 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
5
What 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
6
List one way to perform an access control check on IDOR attempt
Perform a lookup scoped only to documents owned by the current user.
7
List 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
8
What is OWASP
It's a nonprofit foundation that develops freely available sources, testing guides, and best practices for improving application security
9
Why does OWASP matter to Pen testers
Pen testers use OWASP resources to guide testing, udnerstand vulnerability categories and communicate remediation guidance
10
What is XSS?
Injection Vulnerability where application handles untrusted user input unsafely, allowing attacker-controlled Javascript to execute in a user's browser
11
What 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
12
What 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
13
What 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
14
What seperates DOM XSS from Stored and Reflected XSS
DOM XSS never touches or passes through the web server
15
How to test for XSS?
Identify input sources, inspect where the input appears in the page or DOM, test context specific payloads.
16
What 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
17
What 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
18
What are the main mitigations for xss
outpiut encoding, input validation, HTML sanitization, Content Security Policy, HttpOnly cookies
19
What 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
20
What 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
21
What are the three most common defenses for CSRF
CSRF tokens, SameSite Cookies, Referer Based Validation
Study all 21 cards for free

More flashcards

GRE Vocab II31 cards · by JulianChapter 5 MH26 cards · by Madiruth2Regelbundna -ir-verb21 cards · by CharlotteMverbs417 cards · by anya€Regular AR Verb Conjugation14 cards · by BrianXÃ HỘI10 cards · by MyoukiNail-aahhh no good397 cards · by PandaMoosieFINMAN 2 MIDTERMS 116 cards · by Francineciencias 179 cards · by SHRSpanishlecture 5 *DPP*58 cards · by MFreizeitaktivitäten47 cards · by Evaristo7- cage thoracique37 cards · by Océane