1/38
Comprehensive practice flashcards for OPIM 3207 Unit 11 covering core vocabulary, trust boundaries, confusion pairs, and scenario analyses.
How does the Unit 11 study guide define input validation, and what is its context example?
Input validation is defined as checking whether input matches expected type, length, format, and range. In context, a numeric quantity field rejects SQL syntax.
What is output encoding, and what context example demonstrates its use?
Output encoding is representing untrusted data safely for its output context. In context, comment text is encoded so the browser does not execute it as script.
What is a parameterized query, and what context example is given for it?
A parameterized query separates SQL instructions from user-supplied values. In context, the database treats a username as data rather than query logic.
What is cross-site scripting (XSS), and what context example is provided?
XSS injects content that executes in another user's browser. In context, a stored comment runs JavaScript for every viewer.
What is cross-site request forgery (CSRF), and what context example demonstrates it?
CSRF makes a logged-in browser send an unwanted request. In context, a hidden form triggers a bank transfer using the victim's session.
What is server-side request forgery (SSRF), and what context example is provided?
SSRF makes the server request an attacker-chosen resource. In context, a URL-fetch feature reaches an internal metadata endpoint.
What is SQL injection, and what context example demonstrates its behavior?
SQL injection occurs when untrusted input alters database query logic. In context, ' OR 1=1 changes the intended condition.
How is LDAP injection defined and demonstrated in context?
LDAP injection occurs when input alters an LDAP query or filter. In context, a crafted login value bypasses directory checks.
How is XML injection defined and demonstrated in context?
XML injection occurs when input changes XML structure or parser behavior. In context, a crafted element alters an application's interpretation.
What is directory traversal, and what context example is given?
Directory traversal occurs when path input escapes the intended directory. In context, ../../etc/passwd attempts to reach a system file.
What is session hijacking, and what context example is provided?
Session hijacking is taking control of an authenticated session. In context, a stolen session cookie grants access without the password.
How is clickjacking defined and illustrated in context?
Clickjacking is a deceptive interface that tricks users into clicking hidden or disguised controls. In context, a transparent frame places an approval button under a fake game button.
What is DNS cache poisoning, and what context example is given?
DNS cache poisoning is corrupting cached name-resolution data. In context, users requesting a bank domain receive an attacker's IP.
What is typosquatting, and what context example is provided?
Typosquatting is registering look-alike or mistyped domains. In context, gooogle.com imitates google.com.
What is domain hijacking, and what context example illustrates it?
Domain hijacking is the unauthorized takeover of domain registration or DNS control. In context, a stolen registrar account changes nameservers.
What is LLMNR hijacking, and what context example illustrates it?
LLMNR hijacking is abusing local name-resolution fallback to capture or relay authentication. In context, an attacker answers a mistyped local hostname request.
What is Mobile Device Management (MDM), and what context example is given?
MDM is central administration of device configuration, security, and response. In context, IT enforces encryption and can remove work data.
How is rooting or jailbreaking defined, and what is its security impact?
It is removing vendor restrictions and weakening the standard security model. In context, a rooted phone allows deeper system modification but expands the attack surface.
What are app permissions, and what context example illustrates least privilege?
App permissions are authorized access an application receives to device resources or data. In context, a camera app may need camera access but not contacts.
What is a remote wipe, and what context example is given?
A remote wipe is a command that removes device or managed data after loss or compromise. In context, IT erases company data from a lost phone.
Where does untrusted input gain power in XSS, SQL injection, LDAP injection, traversal, and SSRF?
XSS gains power in the browser, SQL injection in a database query, LDAP injection in a directory query, traversal in file paths, and SSRF through the server's network position.
What specific trust relationship is abused by XSS, CSRF, and SSRF respectively?
XSS abuses the browser's trust in page content; CSRF abuses a site's trust in the user's authenticated browser; SSRF abuses internal systems' trust in requests made by the server.
What are the recommended primary mitigations for XSS, CSRF, SSRF, SQL injection, and path traversal?
Contextual output encoding for XSS; anti-CSRF tokens and same-site controls for CSRF; outbound restrictions and URL validation for SSRF; parameterized queries for SQL injection; and normalized allowlisted paths or server-owned file IDs for traversal.
What is the fast distinction among XSS, CSRF, and SSRF according to the Confusion Pairs table?
Browser script vs. victim session request vs. server-made request.
What is the fast distinction between SQL injection and XSS?
Database query logic vs. browser execution.
What is the fast distinction between typosquatting and domain hijacking?
Look-alike registration vs. takeover of real domain.
What is the fast distinction between a screen lock and encryption?
Gate device use vs. protect stored bytes.

What specific fast distinctions are outlined in this course Confusion Pairs table?
The table distinguishes four pairs: (1) XSS vs. CSRF vs. SSRF: Browser script vs. victim session request vs. server-made request; (2) SQL injection vs. XSS: Database query logic vs. browser execution; (3) Typosquatting vs. domain hijacking: Look-alike registration vs. takeover of real domain; and (4) Screen lock vs. encryption: Gate device use vs. protect stored bytes.
Why is input validation alone insufficient to protect a trust boundary where data will be used?
Input validation checks that incoming data has the expected shape and range, but it cannot replace a defense for the place the data will be used (such as parameterized queries for SQL instructions, parser controls for LDAP/XML, or contextual output encoding for browsers).
What role does a Content Security Policy (CSP) play relative to contextual output encoding for XSS?
A content security policy can add a layer of defense, but it is not the primary replacement for encoding.
Why do SameSite cookies usually support rather than replace server-validated anti-CSRF tokens?
SameSite cookies reduce some cross-site cookie sending but have exceptions and should usually support, not replace, a token.
What mobile controls should be applied before the loss of a device, and what controls should be executed after loss?
Before loss: minimize local data, patch, strong lock, encryption, backups, and MDM enrollment. After loss: report it, revoke sessions/tokens, remote lock/wipe managed data, review logs, and reset credentials if exposure is plausible.
Why does full-device encryption remain important even if a remote wipe capability is configured?
A remote wipe may fail if the device never reconnects to a network; encryption ensures stored bytes remain protected while the device is locked or powered off.
Scenario Check 1: A product review executes JavaScript for every visitor. How is this classified and mitigated?
Classification: Stored XSS. Mitigation: Encode untrusted output for the HTML context and apply a suitable content security policy as an added layer.
Scenario Check 2: A logged-in user visits a malicious page and unknowingly changes their bank email. How is this classified?
CSRF (Cross-site request forgery).
Scenario Check 3: A PDF converter fetches http://169.254.169.254 and exposes cloud credentials. How is this classified and why?
SSRF (Server-side request forgery), because the attacker makes the server request an internal resource.
Scenario Check 5: Why should a flashlight app not have contacts permission?
The permission does not support its function, violates least privilege/data minimization, and increases exposure if the app is malicious or compromised.
What are the four questions in the Professor's Explainability Drill?
What is the course-material boundary and reference rule regarding mobile security for Unit 11?
Mobile security is the largest source gap, so Fitzgerald's slides and Activity 12 are the grading authority. Fitzgerald's current HuskyCT instructions, slides, and in-class corrections control if they differ from the guide.