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

Question 240

A security change request summarizes the problem as follows: An attacker includes a fabricated client-address forwarding header, and the application mistakenly uses that untrusted value to bypass a location-based administrative restriction. Which remediation is best suited to it?

  1. Restrict management access through private networks and strong authentication
  2. Set a safe default virtual host and validate expected hostnames
  3. Mark sensitive responses private or no-store and review cache keys
  4. Accept forwarding headers only from trusted proxy addresses

Explanation

Correct Answer

D:

Header sanitization and source validation prevent direct clients from impersonating internal addresses or bypassing IP-based controls. The technical basis for the recommendation is that proxy metadata headers are only trustworthy when inserted or sanitized by an authenticated, trusted upstream hop; arbitrary clients may forge them.

Incorrect Answers

A:

Network isolation narrows who can attempt administrative operations, while MFA and role controls protect approved administrators; the exposure here is reverse proxy trust boundary, which calls for another protective mechanism.

B:

Explicit host routing prevents arbitrary names from reaching sensitive virtual hosts or generating unsafe absolute links; the action is aimed at name-based virtual hosting; it leaves the central reverse proxy trust boundary condition unresolved.

C:

Correct cache behavior prevents personal content from being reused for unrelated clients even when the backend authorization check was sound; this is relevant to a separate sensitive response caching scenario, rather than the identified exposure; the tested fault instead involves reverse proxy trust boundary.

Question 241

The asset owner wants to stop the verified condition recurring: The remediation queue contains two vulnerable components with the same technical severity, but one supports critical public enrollment and the other runs a disposable internal demonstration system. What is the most targeted improvement?

  1. Obtain a signed scope amendment before touching the payment endpoint
  2. Prioritize findings using asset criticality and exploitability context
  3. Separate passive discovery from approved active validation
  4. Keep the provided role and assumptions explicit in the test plan

Explanation

Correct Answer

B:

Business impact and reachable attack paths change expected loss, so remediation scheduling should not be based solely on the generic vulnerability score. It targets the actual failure mode: risk incorporates likelihood, business exposure, and impact; technical severity alone does not determine the order of remediation for distinct operational contexts.

Incorrect Answers

A:

A documented scope change protects the client and tester, aligns approval with the new asset, and avoids treating a verbal request as blanket consent; the proposed improvement would make sense for written rules of engagement but not as the main fix here; the tested fault instead involves risk assessment.

C:

Recording passive findings first avoids assuming public references are in scope and lets the team request explicit approval before contacting an asset; that change targets passive reconnaissance, while the confirmed weakness involves risk assessment.

D:

Documented credentials and partial knowledge distinguish what was directly assessed from privileged paths that remain outside the test vantage point; it would improve gray-box assessment, not directly correct the reported risk assessment issue.

Question 242

An authorized security review documents this behavior: After a user signs in to Windows, an unexpected executable starts because a new entry exists under a startup registry location. Which mechanism best accounts for the finding?

  1. Registry Run-key persistence
  2. Scheduled-task persistence
  3. SSH authorized-key persistence
  4. Cron-job persistence

Explanation

Correct Answer

A:

Run keys cause configured programs to launch during user logon; they can maintain user-context execution across reboots without replacing a system service. The control that addresses this failure path is to monitor startup registry entries and restrict unauthorized changes; registry auditing and application allowlisting expose or prevent unexpected logon-time execution from unapproved paths.

Incorrect Answers

B:

Scheduled tasks can execute code on triggers or schedules without keeping the original user session alive, making them a possible persistence mechanism; this would classify another type of evidence, whereas the actual finding shows registry Run-key persistence.

C:

SSH public-key authentication trusts allowed public keys in account configuration; adding an unapproved key can preserve remote access independent of password rotation; the relevant mechanism in the observed workflow is registry Run-key persistence instead.

D:

Cron executes scheduled commands under a designated user context, so a malicious job can survive session termination and run unattended; those effects are not the registry Run-key persistence pattern evidenced by the assessment.

Question 243

A security change request summarizes the problem as follows: A gateway's IPv4 address appears paired with different Ethernet hardware identifiers across several employee machines after unexpected local address-resolution announcements. Which remediation is best suited to it?

  1. Enable dynamic ARP inspection with trusted DHCP-snooping bindings
  2. Enable RA Guard and monitor authorized IPv6 routers
  3. Disable unnecessary LLMNR and use managed DNS resolution
  4. Use DNSSEC validation where supported and restrict resolver recursion

Explanation

Correct Answer

A:

DAI validates ARP claims against established IP-to-MAC bindings and blocks spoofed updates instead of relying on host cache expiration. The specific weakness being corrected is that ARP poisoning forges address-resolution associations on a local broadcast domain, potentially redirecting or intercepting traffic through an adversary-controlled interface.

Incorrect Answers

B:

Switch filtering for unauthorized advertisements protects host routing decisions while retaining legitimate IPv6 neighbor and router discovery; that safeguard does not directly close the ARP cache poisoning route highlighted by the test.

C:

Removing fallback multicast queries closes the local impersonation path that occurs when central name resolution fails; the proposed improvement would make sense for LLMNR name-resolution poisoning but not as the main fix here; the tested fault instead involves ARP cache poisoning.

D:

Cryptographic validation rejects forged signed data, while scoped recursion and query protections narrow the attack surface of caching resolvers; the specific root cause belongs to ARP cache poisoning, beyond this control's intended scope.

Question 244

The owner asks for a durable safeguard against the issue demonstrated here: A first visit to a shopping site begins over plaintext HTTP because a user typed only its domain, creating an opportunity for a network intermediary to affect redirection. What is the best response?

  1. Keep session identifiers in secure cookies, not URLs
  2. Expire inactive sessions server-side and reauthenticate after the threshold
  3. Deploy HSTS with an appropriate policy and use HTTPS exclusively
  4. Regenerate session identifiers after successful authentication
  5. Generate long unpredictable session identifiers using a cryptographic RNG

Explanation

Correct Answer

C:

HSTS makes compliant browsers insist on TLS for the covered host, limiting downgrade opportunities after the policy is known or preloaded. The specific weakness being corrected is that TLS stripping exploits an insecure initial navigation or downgrade path so subsequent requests use plaintext rather than the expected protected connection.

Incorrect Answers

A:

Cookie-based storage with appropriate security attributes limits accidental token propagation through URLs and referring requests; it would improve session identifier in URL, not directly correct the reported TLS stripping issue.

B:

Server-enforced expiry prevents a copied or unattended token from remaining valid merely because client JavaScript failed to close the page; the measure addresses a different trust boundary from the TLS stripping finding.

D:

Changing the session token at the privilege transition invalidates any previously planted identifier without requiring the victim to notice tampering; its security benefit applies principally to session fixation, not the defect described; the tested fault instead involves TLS stripping.

E:

High-entropy tokens resist guessing; rate limiting is useful but cannot compensate for a trivially enumerable identifier space; the exposure here is TLS stripping, which calls for another protective mechanism.

Question 245

In a permitted test environment, the analyst records: A phone runs unauthorized system modifications that weaken application sandboxing and allow untrusted code to inspect protected processes. What is the most precise classification?

  1. iOS entitlement control
  2. Android work profile isolation
  3. Jailbroken iOS risk
  4. Rooted Android exposure

Explanation

Correct Answer

C:

Jailbreaking removes or circumvents operating-system restrictions, reducing the assurance normally provided by signed code and system isolation. A practical defensive response is to check platform integrity and limit high-risk access from modified devices; device posture controls keep sensitive services from relying on security guarantees a jailbroken host may no longer provide.

Incorrect Answers

A:

iOS entitlements specify permitted platform capabilities and form part of the code-signing trust model; a valid signature does not grant every protected operation; those effects are not the jailbroken iOS risk pattern evidenced by the assessment.

B:

An Android work profile partitions managed applications and data from the personal profile, supporting differentiated security policy on BYOD devices; the case demonstrates jailbroken iOS risk rather than the alternate mechanism.

D:

Rooting grants exceptional control over the device and can weaken integrity controls or app isolation relied on by organizational security policies; the test record points specifically to jailbroken iOS risk, not this separate mechanism.

Question 246

A defender analyzing an approved exercise sees this pattern: Hundreds of IoT endpoints use one client certificate, making it impossible to revoke a single stolen sensor without disconnecting the whole fleet. Which mechanism is most consistent with it?

  1. Anonymous MQTT broker
  2. Passive OT asset inventory
  3. Shared device identity
  4. Default IoT credentials

Explanation

Correct Answer

C:

Shared identities weaken attribution and targeted revocation; compromise of one credential can impersonate any device using that identity. This is why teams should provision unique device certificates and lifecycle-aware revocation; per-device credentials support accurate inventory, isolation, and renewal when only one endpoint is lost or retired.

Incorrect Answers

A:

MQTT brokers route messages through topics; anonymous access can permit unauthorized telemetry reading or injection when topic ACLs are absent; the case demonstrates shared device identity rather than the alternate mechanism.

B:

Passive OT discovery interprets mirrored network traffic and protocol messages without actively interrogating sensitive equipment, reducing assessment impact; the observed evidence concerns shared device identity instead.

D:

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 shared device identity finding being classified.

Question 247

The assessor confirmed this exposure: After acquiring an internet service subsidiary, the security team lacks a reconciled list of advertised address ranges and network providers under the combined organization. Which change most directly closes the underlying security gap?

  1. Review certificate issuance and audit publicly exposed hostnames
  2. Revoke exposed credentials and scan repository history for leaks
  3. Reconcile announced prefixes with authorized asset and provider inventories
  4. Move toward enforced DMARC after validating legitimate mail streams

Explanation

Correct Answer

C:

ASN mapping reveals broad exposure, but network ownership is not permission to scan third-party hosted systems without explicit scope approval. This matters for the observed attack path because BGP autonomous-system data relates network owners to announced IP prefixes; it helps distinguish public network footprint from individual website names.

Incorrect Answers

A:

Monitoring issuance records and inventorying discovered names helps detect unexpected certificates and reduce disclosure through overly broad certificate naming; its security benefit applies principally to certificate transparency discovery, not the defect described; the tested fault instead involves autonomous system mapping.

B:

Rotating the affected token removes the old credential's authority, while history scanning finds additional disclosures and prevents recurrence; the exposure here is autonomous system mapping, which calls for another protective mechanism.

D:

Using aligned SPF or DKIM and an enforcement policy can reduce direct-domain spoofing while avoiding disruption to legitimate third-party senders; this is relevant to a separate DMARC policy exposure scenario, rather than the identified exposure; the tested fault instead involves autonomous system mapping.

Question 248

A security engineer examines the following result: A security team copied full employee payroll files while demonstrating that a directory was readable. The finding needed only proof of access. Which described weakness or technique does it demonstrate?

  1. Gray-box assessment
  2. Confidentiality
  3. Availability
  4. Data minimization in testing

Explanation

Correct Answer

D:

Minimization limits collection to evidence needed to establish impact. Copying sensitive records increases exposure and custody obligations without strengthening the vulnerability demonstration. This is why teams should use redacted samples and retain only minimal proof of access; masked evidence establishes unauthorized readability while reducing disclosure risk, retention burden, and unnecessary handling of regulated personal information.

Incorrect Answers

A:

Gray-box testing combines partial internal knowledge with constrained access; it helps examine authorization boundaries while retaining a realistic nonadministrative perspective; the test record points specifically to data minimization in testing, not this separate mechanism.

B:

Confidentiality protects information against unauthorized disclosure; a system can preserve availability and integrity while still failing to restrict who reads sensitive material; that behavior is distinct from the data minimization in testing finding being classified.

C:

Availability means authorized users can reach required services when needed; exhausted capacity can violate this property even without evidence of data theft or corruption; the scenario identifies data minimization in testing, which has a different triggering condition.

Question 249

A security engineer examines the following result: A nearby unauthorized wireless device advertises the same network name as the company WLAN and tricks clients into choosing the impostor. Which described weakness or technique does it demonstrate?

  1. Hidden SSID misconception
  2. Wireless jamming
  3. Evil-twin access point
  4. Protected management frames

Explanation

Correct Answer

C:

An evil twin imitates a legitimate wireless network's identity to intercept associations or lead clients into fraudulent authentication and traffic paths. A targeted mitigation is to use validated enterprise server certificates and rogue-AP detection; clients that verify the authentication server identity are less likely to trust a lookalike AP offering the same SSID.

Incorrect Answers

A:

A hidden SSID is not cryptographic protection; association traffic and other wireless management exchanges can still reveal network identifiers; that behavior is distinct from the evil-twin access point finding being classified.

B:

RF jamming disrupts availability at the physical layer; stronger cryptographic keys do not eliminate interference in the shared radio spectrum; the scenario identifies evil-twin access point, which has a different triggering condition.

D:

Unprotected management frames can be forged to disrupt client associations; 802.11w PMF adds protection to specified robust management frames; the events given do not establish this behavior but do support evil-twin access point.

Question 250

The approved test uncovered this weakness: An attacker can disrupt connections by forging wireless management traffic on an otherwise encrypted network because the client and AP do not require frame protection. Which control would reduce the relevant exposure without relying on obscurity?

  1. Patch wireless clients and access points against key reinstallation flaws
  2. Require strong authentication and encryption regardless of SSID visibility
  3. Use a strong random passphrase or move to enterprise authentication
  4. Require PMF on compatible managed wireless networks
  5. Use spectrum monitoring and resilient channel or coverage planning

Explanation

Correct Answer

D:

Protected management frames reduce spoofed deauthentication and disassociation attacks, though they do not prevent radio-frequency jamming. The safeguard responds to the underlying issue: unprotected management frames can be forged to disrupt client associations; 802.11w PMF adds protection to specified robust management frames.

Incorrect Answers

A:

Updated handshake handling prevents unsafe key reinstallation while preserving the normal protocol operation needed for secure association; this is relevant to a separate KRACK handshake implementation scenario, rather than the identified exposure; the tested fault instead involves protected management frames.

B:

WPA3 or sound enterprise security protects data and network admission; beacon suppression is not a substitute for access control; the tested weakness is protected management frames, not the hidden SSID misconception configuration addressed here.

C:

High-entropy secrets resist offline guesses, while per-user enterprise credentials remove the single shared passphrase from the whole fleet; that safeguard does not directly close the protected management frames route highlighted by the test.

E:

RF monitoring identifies interference patterns and alternative coverage or channels restore service without misdiagnosing the outage as a password issue; the specific root cause belongs to protected management frames, beyond this control's intended scope.

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