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

Question 280

The asset owner wants to stop the verified condition recurring: An edge cache stores personalized financial summaries under one shared cache key and sometimes returns the previous account holder's private response to another visitor. What is the most targeted improvement?

  1. Canonicalize paths and enforce a fixed document root before file access
  2. Set a safe default virtual host and validate expected hostnames
  3. Mark sensitive responses private or no-store and review cache keys
  4. Disable obsolete TLS protocols and weak ciphers after compatibility testing

Explanation

Correct Answer

C:

Correct cache behavior prevents personal content from being reused for unrelated clients even when the backend authorization check was sound. This matters for the observed attack path because incorrect HTTP caching directives or cache keys can mix authenticated responses across users when intermediaries ignore session-specific variation.

Incorrect Answers

A:

Resolving canonical paths and checking containment prevents encoding tricks from reaching files outside the approved static content tree; it would improve static-file path traversal, not directly correct the reported sensitive response caching issue.

B:

Explicit host routing prevents arbitrary names from reaching sensitive virtual hosts or generating unsafe absolute links; the measure addresses a different trust boundary from the sensitive response caching finding.

D:

Modern negotiation reduces transport cryptographic exposure while inventorying client requirements prevents avoidable service outages; its security benefit applies principally to legacy TLS configuration, not the defect described; the tested fault instead involves sensitive response caching.

Question 281

A remediation meeting focuses on the following finding: A scan appliance distributes reusable root credentials in job definitions readable by ordinary operators, creating a new privileged compromise route during vulnerability assessment. Which proposed action best addresses its root cause?

  1. Validate the vendor patch backport before closing the finding
  2. Correct hardening drift and retest benchmark controls
  3. Correlate external results with internal authenticated assessments
  4. Use vault-managed, time-limited, least-privilege scanning identities

Explanation

Correct Answer

D:

Separate scoped identities and restricted secret retrieval prevent a compromised scanner operator from inheriting broad administrative rights. The safeguard responds to the underlying issue: scanning credentials are high-value secrets; tool compromise can turn routine assessment infrastructure into a privileged access path.

Incorrect Answers

A:

Distribution advisories and package changelogs can confirm fixed code despite an unchanged upstream version string; blind dismissal would also be unsafe; the action is aimed at false-positive scanner finding; it leaves the central scanner credential exposure condition unresolved.

B:

Turning off unnecessary services and tightening audit policies addresses exposure that patch installation alone cannot remove; this is relevant to a separate configuration benchmark assessment scenario, rather than the identified exposure; the tested fault instead involves scanner credential exposure.

C:

Multiple vantage points reveal exposures that an internet-facing scanner cannot see, preventing unsupported conclusions from a clean outside report; the tested weakness is scanner credential exposure, not the false-negative scan configuration addressed here.

Question 282

During a documented lab review, an analyst notes: A downloaded office document reveals internal usernames and a workstation path in its properties even though the visible text is generic. What mechanism should be recorded?

  1. Reverse DNS footprinting
  2. Certificate transparency discovery
  3. Search engine indexing
  4. Public document metadata

Explanation

Correct Answer

D:

Document metadata can carry author names, revision details, software identifiers, and filesystem paths omitted from the visible body. For a production safeguard, operators can strip sensitive metadata during document publishing; a publication workflow that sanitizes document properties reduces identity and host naming disclosures while preserving the intended public content.

Incorrect Answers

A:

Reverse DNS uses PTR records to map an address back to a hostname; descriptive PTR values can inadvertently reveal infrastructure purpose; the case demonstrates public document metadata rather than the alternate mechanism.

B:

Certificate transparency logs are public issuance records; hostnames in certificate subject alternative names may reveal externally relevant assets without probing the hosts; the observed evidence concerns public document metadata instead.

C:

Search-engine caches and indexes can retain discoverable content even after an origin page changes; removing a live link alone does not ensure deindexing; the test record points specifically to public document metadata, not this separate mechanism.

Question 283

A defender analyzing an approved exercise sees this pattern: A device successfully connects to the switch but receives restricted network access until its security posture and enrollment state are verified. Which mechanism is most consistent with it?

  1. Passive network IDS
  2. NAC posture enforcement
  3. TTL-based sensor desynchronization
  4. Inline network IPS

Explanation

Correct Answer

B:

Network access control can authenticate devices and enforce posture-based authorization, distinct from merely detecting malicious packets after admission. For a production safeguard, operators can require compliant device posture and quarantine unmanaged endpoints; access gating reduces untrusted device reachability before normal segmentation and application controls are applied.

Incorrect Answers

A:

A passive NIDS observes copies of traffic and emits alerts, normally lacking a direct inline ability to drop the original packets; the observed evidence concerns NAC posture enforcement instead.

C:

TTL manipulation can create packets observed by one device but not by the endpoint, confusing state tracking when paths and hop counts differ; that behavior is distinct from the NAC posture enforcement finding being classified.

D:

An inline IPS can block or reset traffic on the path while applying detection logic; availability design must consider false positives and bypass behavior; the scenario identifies NAC posture enforcement, which has a different triggering condition.

Question 284

A defender analyzing an approved exercise sees this pattern: A utility telemetry link uses ordinary DNP3 messages even though operators need protection against unauthorized remote control commands. Which mechanism is most consistent with it?

  1. DNP3 secure authentication
  2. Default IoT credentials
  3. Anonymous MQTT broker
  4. CoAP plaintext exchange

Explanation

Correct Answer

A:

Secure Authentication for DNP3 adds authentication features to supported message exchanges; basic DNP3 deployments lack equivalent safeguards by default. The control that addresses this failure path is to enable supported DNP3 secure authentication and tightly manage control keys; authenticated commands reduce spoofing of control operations, with segmentation still required for legacy devices and unsupported functions.

Incorrect Answers

B:

Shared default credentials simplify first setup but give attackers a predictable authentication route across whole fleets after one password becomes known; that behavior is distinct from the DNP3 secure authentication finding being classified.

C:

MQTT brokers route messages through topics; anonymous access can permit unauthorized telemetry reading or injection when topic ACLs are absent; the scenario identifies DNP3 secure authentication, which has a different triggering condition.

D:

CoAP is an application protocol often run over UDP; without DTLS, OSCORE, or a protected network, messages may lack confidentiality and authenticity; the defining symptom in the prompt is associated with DNP3 secure authentication instead.

Question 285

The owner asks for a durable safeguard against the issue demonstrated here: A shared recursive DNS server persistently returns an attacker-controlled service address after one poisoned cache entry, despite the owner fixing the authoritative zone. What is the best response?

  1. Disable unnecessary LLMNR and use managed DNS resolution
  2. Enable MACsec on supported links carrying sensitive internal traffic
  3. Configure DAI alongside correct DHCP snooping or static bindings
  4. Use DNSSEC validation where supported and restrict resolver recursion

Explanation

Correct Answer

D:

Cryptographic validation rejects forged signed data, while scoped recursion and query protections narrow the attack surface of caching resolvers. This matters for the observed attack path because DNS cache poisoning contaminates a resolver's stored answer so later clients receive attacker-selected data without querying the authoritative zone again.

Incorrect Answers

A:

Removing fallback multicast queries closes the local impersonation path that occurs when central name resolution fails; the measure addresses a different trust boundary from the DNS resolver poisoning finding.

B:

Layer-2 encryption reduces interception on the protected physical path while higher-layer TLS still protects data beyond those MACsec peers; the required correction concerns DNS resolver poisoning, so this is not the targeted control.

C:

Binding-based validation prevents spoofed neighbor mappings, but static-IP devices require suitable entries to avoid disrupting legitimate traffic; its security benefit applies principally to dynamic ARP inspection, not the defect described; the tested fault instead involves DNS resolver poisoning.

Question 286

An authorized security review documents this behavior: An industrial telemetry broker accepts publish and subscribe operations from any nearby client without authenticating device identities. Which mechanism best accounts for the finding?

  1. Anonymous MQTT broker
  2. Passive OT asset inventory
  3. PLC command tampering
  4. DNP3 secure authentication

Explanation

Correct Answer

A:

MQTT brokers route messages through topics; anonymous access can permit unauthorized telemetry reading or injection when topic ACLs are absent. The appropriate hardening measure is to require client authentication and per-topic publish and subscribe ACLs, since identity and topic permissions stop unrelated clients from controlling or observing telemetry streams merely by reaching the broker.

Incorrect Answers

B:

Passive OT discovery interprets mirrored network traffic and protocol messages without actively interrogating sensitive equipment, reducing assessment impact; the defining symptom in the prompt is associated with anonymous MQTT broker instead.

C:

Programmable logic controllers act on control instructions that may affect physical processes; insecure command channels can translate cyber access into unsafe operations; the events given do not establish this behavior but do support anonymous MQTT broker.

D:

Secure Authentication for DNP3 adds authentication features to supported message exchanges; basic DNP3 deployments lack equivalent safeguards by default; the reported conditions are characteristic of anonymous MQTT broker, not that path.

Question 287

The approved engagement produces this evidence: An embedded sensor installs a firmware package from removable storage without verifying that the update was approved by its manufacturer. What is the correct technical interpretation?

  1. Unprotected OTA channel
  2. Unsigned device firmware
  3. Exposed UPnP forwarding
  4. Shared device identity

Explanation

Correct Answer

B:

Unsigned firmware update paths allow replacement software to run if an attacker controls the delivery medium or update channel. A targeted mitigation is to enforce verified boot and signed firmware updates; signature checks bind executable firmware to trusted release authorities and reduce unauthorized code replacement during upgrades.

Incorrect Answers

A:

Over-the-air firmware updates cross a network trust boundary; delivery encryption alone is insufficient if devices accept untrusted update authors; the defining symptom in the prompt is associated with unsigned device firmware instead.

C:

UPnP IGD can automate NAT port mappings; overly permissive control or exposure may open unintended paths from external networks; the reported conditions are characteristic of unsigned device firmware, not that path.

D:

Shared identities weaken attribution and targeted revocation; compromise of one credential can impersonate any device using that identity; those prerequisites differ from the unsigned device firmware behavior in the record.

Question 288

A control review considers a verified technical issue: A forum saves an unsafe profile bio into persistent storage, and the injected markup executes for every later visitor to that person's public page. Which mitigation most directly addresses its cause?

  1. Allow only approved internal destinations or validated redirect URIs
  2. Require unpredictable anti-CSRF tokens for state-changing requests
  3. Apply Content-Security-Policy frame-ancestors restrictions
  4. Sanitize allowed rich content and use output encoding on display

Explanation

Correct Answer

D:

Validation and rendering safeguards stop saved comments from becoming active scripts when retrieved by other users. The underlying condition is that stored XSS persists attacker-controlled content server-side and delivers it to later viewers through unsafe rendering.

Incorrect Answers

A:

Strict redirect target validation prevents an attacker from using the application domain as a relay to arbitrary destinations; the exposure here is stored cross-site scripting, which calls for another protective mechanism.

B:

Per-session tokens and origin checks bind sensitive operations to legitimate application flows beyond the presence of browser cookies; the action is aimed at cross-site request forgery; it leaves the central stored cross-site scripting condition unresolved.

C:

A framing policy lets browsers prevent unauthorized embedding of sensitive pages, removing the overlay surface used in this deception; this is relevant to a separate clickjacking scenario, rather than the identified exposure; the tested fault instead involves stored cross-site scripting.

Question 289

The post-assessment action plan cites this evidence: A document-preview feature fetches arbitrary URLs from the server, permitting requests to an internal-only admin port that public internet users cannot address directly. Which corrective measure should be prioritized?

  1. Enforce outbound destination allowlists and block internal metadata ranges
  2. Allow only approved internal destinations or validated redirect URIs
  3. Use explicit allowlists or data-transfer objects for writable fields
  4. Apply Content-Security-Policy frame-ancestors restrictions

Explanation

Correct Answer

A:

URL and IP validation plus restricted egress prevent the server from acting as a proxy to sensitive services outside the feature's intended scope. The technical basis for the recommendation is that SSRF occurs when server-side code makes network requests to attacker-selected destinations, potentially crossing internal network or cloud trust boundaries.

Incorrect Answers

B:

Strict redirect target validation prevents an attacker from using the application domain as a relay to arbitrary destinations; the specific root cause belongs to server-side request forgery, beyond this control's intended scope.

C:

Server-side property controls keep privileged attributes out of general user update workflows regardless of submitted JSON keys; that change targets mass assignment, while the confirmed weakness involves server-side request forgery.

D:

A framing policy lets browsers prevent unauthorized embedding of sensitive pages, removing the overlay surface used in this deception; it would improve clickjacking, not directly correct the reported server-side request forgery issue.

Question 290

The testing team seeks a specific preventive recommendation for this finding: A fraudster invents a story about being a newly hired engineer locked out of a customer environment to pressure support into waiving identity proof. What should be implemented?

  1. Display and verify actual destinations before authenticating from QR links
  2. Disable unapproved removable media and offer safe found-device reporting
  3. Require consistent identity verification regardless of urgency or role claims
  4. Use number matching and phishing-resistant authentication with prompt anomaly alerts

Explanation

Correct Answer

C:

Documented verification steps stop plausible stories from replacing evidence of a requester's authority. It targets the actual failure mode: pretexting creates a believable false scenario or role to obtain information or a policy exception, rather than exploiting a software flaw.

Incorrect Answers

A:

Destination validation and approved app-based entry points reduce credential submission to counterfeit sites reached through physical codes; the required correction concerns pretexting, so this is not the targeted control.

B:

Device controls block execution or access from unknown media while a reporting route avoids relying only on curiosity-resistant behavior; its security benefit applies principally to USB baiting, not the defect described; the tested fault instead involves pretexting.

D:

Challenge context and stronger factors reduce blind approvals, while alerting and throttling expose the repetitive abuse pattern; the action is aimed at MFA push fatigue; it leaves the central pretexting condition unresolved.

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