ECCouncil 312-50v13 (Certified Ethical Hacker v13) Practice Test 7

Question 60

A regulated environment needs a dedicated hardware observation point on a link without depending on switch mirror configuration. What device fits?

  1. Dynamic ARP inspection
  2. Network TAP
  3. SPAN mirror port
  4. Promiscuous mode

Explanation

Correct Answer

B:

A network TAP supplies monitored copies of link traffic to an analyzer. Design and deployment determine whether the tap is passive and how fail-open behavior works.

Incorrect Answers

A:

Dynamic ARP inspection validates ARP packets against trusted bindings or configured rules; it can help assess switch-level checking of ARP bindings but would not demonstrate hardware-based observation of a physical network link.

C:

A switch mirror or SPAN session copies selected traffic to a monitoring port; it is aimed at intentional duplication of switch traffic to a sensor and would not resolve hardware-based observation of a physical network link.

D:

Promiscuous mode changes how a network interface accepts locally visible frames; that can clarify local capture beyond frames addressed to the NIC but cannot establish hardware-based observation of a physical network link.

Question 61

A network boundary accepts return traffic based on an established outbound connection while rejecting unsolicited inbound requests. What feature enables that behavior?

  1. Network IDS
  2. Stateful firewall
  3. Network IPS
  4. Host-based IDS

Explanation

Correct Answer

B:

Stateful inspection tracks connection context so permitted flows can receive corresponding replies. Simple stateless filters must instead rely only on packet fields and rules.

Incorrect Answers

A:

A network intrusion detection system inspects traffic and reports suspected threats; it focuses on out-of-band alerting from observed packets and therefore does not demonstrate connection-state-aware filtering of return packets.

C:

A network intrusion prevention system operates inline to enforce blocking decisions; the question hinges on connection-state-aware filtering of return packets, not on inline prevention of suspicious network traffic.

D:

Host-based detection sees operating-system events and files unavailable to a network-only sensor; that observation explains alerts from host telemetry and file integrity without demonstrating connection-state-aware filtering of return packets.

Question 62

A crafted search parameter is immediately echoed into a page without proper encoding and executes in the visitor's browser. Which type of XSS is involved?

  1. Broken object-level authorization
  2. Stored cross-site scripting
  3. Reflected cross-site scripting
  4. DOM-based XSS

Explanation

Correct Answer

C:

Reflected XSS executes from untrusted request data returned in an immediate response. Its exploitation commonly requires persuading a victim to open a crafted URL.

Incorrect Answers

A:

Broken object-level authorization allows access to another user’s protected record. The observed behavior is a script executing in a browser as part of a reflected HTTP response, not unauthorized API record access.

B:

This addresses persisted script execution through displayed content, a different concern from request-originated script reflected into an immediate response.

D:

This is tied to unsafe client-side DOM interpretation of URL data rather than confirming request-originated script reflected into an immediate response.

Question 63

A development team wants to classify the programming mistake that caused several different vulnerabilities. Which taxonomy helps?

  1. CVSS base score
  2. CWE weakness category
  3. CVSS environmental context
  4. CPE product naming

Explanation

Correct Answer

B:

CWE describes weakness classes such as improper input validation or authorization errors. One weakness class can underlie many separately tracked CVEs.

Incorrect Answers

A:

This choice affects standardized intrinsic technical severity, while the identified issue is a general root-cause weakness class.

C:

Environmental considerations account for asset-specific importance and protections; this pertains to deployment-specific security impact, not to a general root-cause weakness class.

D:

CPE names platform and software configurations for correlation with vulnerability intelligence; the underlying behavior concerns normalized product and version identification, distinct from a general root-cause weakness class.

Question 64

A site wants JavaScript running in a page to be unable to read its session cookie directly. Which attribute addresses this?

  1. Session fixation
  2. HttpOnly cookie attribute
  3. Secure cookie attribute
  4. SameSite cookie attribute
  5. Session ID regeneration

Explanation

Correct Answer

B:

HttpOnly makes a cookie inaccessible through normal document cookie APIs. It reduces direct token theft by scripts but does not prevent every XSS consequence.

Incorrect Answers

A:

Session fixation occurs when an attacker-chosen or known token remains valid across authentication; the result would concern unrotated session identifiers across authentication, leaving script access to a browser session cookie unresolved.

C:

The question hinges on script access to a browser session cookie, not on cookies inadvertently sent over plaintext HTTP.

D:

SameSite restricts when cookies accompany cross-site requests; it may reveal unwanted cookie inclusion on cross-site requests, but the scenario is about script access to a browser session cookie.

E:

Regenerating the identifier prevents pre-authentication token knowledge from carrying into the authenticated session; the gap to resolve is script access to a browser session cookie, not the separate matter of reuse of a token known before login.

Question 65

Two LAN devices are misled into associating a gateway IP with an untrusted MAC address. Which mechanism explains this?

  1. Promiscuous mode
  2. Network TAP
  3. ARP cache poisoning
  4. SPAN mirror port

Explanation

Correct Answer

C:

ARP poisoning introduces false IPv4 IP-to-MAC bindings on a local segment. Dynamic ARP inspection and correct DHCP snooping bindings can reduce risk.

Incorrect Answers

A:

Promiscuous mode changes how a network interface accepts locally visible frames; the gap to resolve is false local IPv4 address-to-MAC mappings, not the separate matter of local capture beyond frames addressed to the NIC.

B:

A network TAP supplies monitored copies of link traffic to an analyzer; the relevant outcome would be hardware-based observation of a physical network link, not false local IPv4 address-to-MAC mappings.

D:

A switch mirror or SPAN session copies selected traffic to a monitoring port; the underlying behavior concerns intentional duplication of switch traffic to a sensor, distinct from false local IPv4 address-to-MAC mappings.

Question 66

A lab login receives numerous different candidate secrets for one account. Which behavior is being modeled?

  1. Pass-the-hash
  2. Credential stuffing
  3. Online password spraying
  4. Brute-force guessing
  5. Offline password hash attack

Explanation

Correct Answer

D:

Brute-force guessing systematically tries possible credentials until one matches or controls stop attempts. Rate limiting and account protections impede online variants.

Incorrect Answers

A:

Pass-the-hash abuses an authentication mechanism that accepts a reusable password-derived secret; that mechanism concerns reuse of an authentication hash rather than plain password instead of many candidate passwords against one identity.

B:

Credential stuffing reuses previously compromised credential pairs on another service; its technical boundary is reuse of leaked credential pairs on a new service rather than many candidate passwords against one identity.

C:

Password spraying spreads a small set of guesses across many identities; this pertains to one common guess distributed across accounts, not to many candidate passwords against one identity.

E:

Offline guessing evaluates candidate passwords against acquired hash material without online authentication attempts; selecting it would address password guesses made against exposed hashes instead of many candidate passwords against one identity.

Question 67

During a permitted investigation, several people handle an exported disk image. What record preserves accountability for each transfer?

  1. Rules of engagement
  2. Evidence chain of custody
  3. Scope statement
  4. Non-disclosure agreement
  5. Written authorization

Explanation

Correct Answer

B:

Chain-of-custody documentation records handlers, times, transfers, and evidence integrity. It helps demonstrate that the collected artifact was controlled after acquisition.

Incorrect Answers

A:

Rules of engagement define approved methods, time windows, safety triggers, and emergency communications; selecting it would address the exercise's safety and escalation conditions instead of the documented provenance of transferred evidence.

C:

An explicit scope lists included and excluded hosts, applications, networks, and third parties; the relevant outcome would be which infrastructure belongs to the authorized target set, not the documented provenance of transferred evidence.

D:

That can clarify contractual limits on disclosure of client data but cannot establish the documented provenance of transferred evidence.

E:

A signed approval from the asset owner grants permission; it is useful for the legal permission to test identified assets but leaves the documented provenance of transferred evidence unproven.

Question 68

A production web server retains example applications and test pages from installation. What hardening task is overdue?

  1. Default sample applications
  2. Directory listing disabled
  3. Unnecessary HTTP methods
  4. Server banner reduction

Explanation

Correct Answer

A:

Removing sample sites and unused components reduces exposed code paths and configuration clues. Default content may contain historical flaws even if the main app is secure.

Incorrect Answers

B:

Disabling directory browsing stops automatic listing of files; this pertains to exposure of folder contents through autoindex, not to unnecessary software shipped with the web server.

C:

Restricting HTTP methods to operational needs reduces unintended file-management capabilities; it is useful for unused write-capable HTTP operations but leaves unnecessary software shipped with the web server unproven.

D:

Minimizing version banners removes an easy fingerprinting clue from responses; it affects software-version information in response metadata, while the identified issue is unnecessary software shipped with the web server.

Question 69

A developer replaces apostrophes manually to prevent SQL injection across multiple database engines. What limitation undermines the approach?

  1. Escaping limitation
  2. Stored procedure safety boundary
  3. Parameterized SQL query
  4. Least-privilege database account

Explanation

Correct Answer

A:

Ad hoc escaping is error-prone and varies with SQL dialect, encoding, and query context. Parameter binding avoids many of those assumptions.

Incorrect Answers

B:

Stored procedures can still be injectable if they build dynamic SQL unsafely; this addresses dynamic SQL built from untrusted procedure parameters, a different concern from reliance on handwritten quote escaping.

C:

Prepared statements with bound parameters separate supplied values from SQL syntax; it is useful for untrusted values altering the SQL query structure but leaves reliance on handwritten quote escaping unproven.

D:

Application database identities should possess only the tables and operations required; the gap to resolve is reliance on handwritten quote escaping, not the separate matter of the permissions available to compromised application SQL.

Question 70

An iOS application attempts an operation reserved for apps with a particular signed capability. Which platform control is relevant?

  1. Android app permissions
  2. iOS entitlements
  3. Mobile application management
  4. Android verified boot

Explanation

Correct Answer

B:

Entitlements declare permitted app capabilities and are enforced with code signing and platform policy. They are not freely acquired by changing a user-facing preference.

Incorrect Answers

A:

Android app permissions govern access to protected resources on Android devices. An iOS entitlement is a separate, signed capability enforced by Apple platform policy.

C:

Mobile application management controls work-app configuration, access, and data handling. It does not create or authorize the iOS signed entitlements required for restricted platform APIs.

D:

Android Verified Boot checks the integrity of trusted boot components. The requested capability is an iOS application entitlement, not an Android boot-chain property.

Certified Ethical Hacker v13 (312-50v13) Practice Tests