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

Question 200

A security engineer examines the following result: A low-privilege application worker can rewrite executable scripts served by the same host, enabling persistent site modification after an app defect. Which described weakness or technique does it demonstrate?

  1. Default web content
  2. Static-file path traversal
  3. Web-root permission weakness
  4. Name-based virtual hosting

Explanation

Correct Answer

C:

Overly broad filesystem write permissions let a compromised process alter deployed code or content beyond its legitimate runtime data needs. This is why teams should separate writable data from code and run the worker with minimal rights; read-only deployment paths and distinct service permissions reduce the impact of a web process compromise.

Incorrect Answers

A:

Default pages and demos can reveal installation state or unnecessary functionality that increases a web server's reachable attack surface; the test record points specifically to web-root permission weakness, not this separate mechanism.

B:

Path traversal results from unsafe path normalization or file resolution, letting attacker-controlled relative segments escape an intended filesystem root; that behavior is distinct from the web-root permission weakness finding being classified.

D:

Name-based virtual hosting routes requests using HTTP host identity, which may differ from the socket's IP address or default site; the defining symptom in the prompt is associated with web-root permission weakness instead.

Question 201

A security engineer examines the following result: A namespace service account can create privileged cluster roles even though its application only needs to read one ConfigMap. Which described weakness or technique does it demonstrate?

  1. Cloud audit logging gap
  2. Overbroad cloud IAM role
  3. Kubernetes RBAC escalation
  4. Etcd secret storage

Explanation

Correct Answer

C:

Kubernetes RBAC controls API operations on resource types and scopes; excessive role-binding authority can indirectly yield broad cluster privileges. The appropriate hardening measure is to restrict service-account verbs and binding rights at namespace scope, since precise API permissions prevent application identities from creating or attaching privileges beyond their workload needs.

Incorrect Answers

A:

Cloud control-plane audit trails record resource and identity operations; without centralized retention, policy changes can escape meaningful attribution; that behavior is distinct from the Kubernetes RBAC escalation finding being classified.

B:

Excess IAM privileges magnify damage from leaked tokens or compromised workloads; role scope should follow the actual API operations required; the scenario identifies Kubernetes RBAC escalation, which has a different triggering condition.

D:

Base64 is an encoding, not encryption; etcd stores Kubernetes API state and needs explicit at-rest encryption and access restrictions for sensitive objects; the events given do not establish this behavior but do support Kubernetes RBAC escalation.

Question 202

A controlled investigation yields this observation: An untrusted Android application presents a convincing login overlay above a banking app and captures what the user types. How should the team identify the underlying behavior?

  1. Excessive mobile permissions
  2. Mobile overlay credential theft
  3. Android exported component
  4. Cleartext mobile API traffic

Explanation

Correct Answer

B:

Overlay attacks abuse user-interface permissions or accessibility features to impersonate legitimate screens and collect credentials. To constrain the corresponding risk, defenders should restrict risky overlay and accessibility grants and monitor suspicious apps; platform safeguards and application controls reduce the ability of one app to draw deceptive credential forms over another.

Incorrect Answers

A:

Overprivileged mobile apps expand the information available after compromise or abuse; the platform permission model should track actual features; the scenario identifies mobile overlay credential theft, which has a different triggering condition.

C:

Exported Android components are accessible across app boundaries subject to permissions; missing checks can turn internal functionality into an external attack surface; the events given do not establish this behavior but do support mobile overlay credential theft.

D:

Cleartext traffic exposes credentials and session data to local network observers or malicious intermediaries because confidentiality and server authentication are absent; the reported conditions are characteristic of mobile overlay credential theft, not that path.

Question 203

The assessment evidence reads as follows: A server reflects a request through the TRACE method although the production application never uses that method. Which technical concept explains the result?

  1. HTTP request smuggling
  2. Default web content
  3. Missing HSTS policy
  4. Static-file path traversal
  5. HTTP TRACE exposure

Explanation

Correct Answer

E:

TRACE is a diagnostic HTTP method that echoes received request information; unnecessary support can add exposure in certain client and proxy configurations. The control that addresses this failure path is to disable unused diagnostic HTTP methods; allowing only required methods reduces unexpected request behaviors without assuming method restrictions compensate for application authorization bugs.

Incorrect Answers

A:

Request smuggling arises from inconsistent HTTP message framing between intermediaries, notably conflicting length or transfer-encoding interpretation; the defining symptom in the prompt is associated with HTTP TRACE exposure instead.

B:

Default pages and demos can reveal installation state or unnecessary functionality that increases a web server's reachable attack surface; the events given do not establish this behavior but do support HTTP TRACE exposure.

C:

HTTP Strict Transport Security tells compliant browsers to use HTTPS for subsequent requests to covered hosts after receiving the policy securely; the reported conditions are characteristic of HTTP TRACE exposure, not that path.

D:

Path traversal results from unsafe path normalization or file resolution, letting attacker-controlled relative segments escape an intended filesystem root; those prerequisites differ from the HTTP TRACE exposure behavior in the record.

Question 204

Operations asks for a practical correction after the test found: An attacker with local administrator rights stops the event-logging service and clears local records, leaving investigators dependent on telemetry held outside the compromised host. What should the security team recommend?

  1. Forward protected logs off-host and alert on log-service disruption
  2. Monitor startup registry entries and restrict unauthorized changes
  3. Audit task creation and enforce authorization for scheduled execution
  4. Patch local escalation paths and enforce privilege boundaries

Explanation

Correct Answer

A:

Central immutable retention and alerts on clearing events preserve an independent timeline and expose suspicious attempts to erase local evidence. It targets the actual failure mode: log clearing or alteration attempts to obstruct detection; independent forwarded records can preserve evidence even when a compromised host loses local history.

Incorrect Answers

B:

Registry auditing and application allowlisting expose or prevent unexpected logon-time execution from unapproved paths; the action is aimed at registry Run-key persistence; it leaves the central security-log tampering condition unresolved.

C:

Changes to task definitions and launch paths provide persistence evidence; limiting task registration and alerting on anomalies constrain abuse; this is relevant to a separate scheduled-task persistence scenario, rather than the identified exposure; the tested fault instead involves security-log tampering.

D:

Kernel updates, application control, and limited local rights reduce opportunities for a low-privileged compromise to gain system-level authority; the tested weakness is security-log tampering, not the local privilege escalation configuration addressed here.

Question 205

The testing team seeks a specific preventive recommendation for this finding: A customer portal is targeted with passwords leaked from unrelated sites, and several accounts have been opened despite the attackers never learning the customers' new company-specific secrets. What should be implemented?

  1. Audit crontabs and apply least privilege to scheduler files
  2. Limit reusable administrative credentials and reduce NTLM exposure
  3. Detect breached-password reuse and add risk-based login protections
  4. Use salted memory-hard password hashing and strong password policy

Explanation

Correct Answer

C:

Unique passwords, MFA, and credential-reuse detection reduce success when third-party credential lists are tested against enterprise identities. The underlying condition is that credential stuffing replays stolen username-password pairs at other applications, relying on password reuse rather than creating guesses from a dictionary.

Incorrect Answers

A:

Trusted task baselines and restricted edit permissions make unauthorized scheduled execution easier to detect and harder to establish; the proposed improvement would make sense for cron-job persistence but not as the main fix here; the tested fault instead involves credential stuffing.

B:

Credential isolation, separate admin accounts, and modern authentication reduce opportunities for a stolen hash to authenticate across hosts; the specific root cause belongs to credential stuffing, beyond this control's intended scope.

D:

Per-account salts defeat precomputed hash tables, while expensive password hashing slows each offline guess after a database leak; it would improve offline password hash attack, not directly correct the reported credential stuffing issue.

Question 206

A security engineer examines the following result: A router's public configuration or management interface reveals peering neighbors and route policy details. Which described weakness or technique does it demonstrate?

  1. BGP neighbor disclosure
  2. SNMP default community
  3. SMB null-session exposure
  4. SMB share enumeration

Explanation

Correct Answer

A:

BGP peer and route information can expose network topology and transit relationships, but route visibility does not confer access to router control functions. On affected systems, it is useful to protect routing management interfaces and authenticate peer sessions; restricting management access and securing routing neighbors reduces unwanted disclosure and unauthorized route-policy changes.

Incorrect Answers

B:

SNMPv1/v2c community strings act as shared access tokens and do not provide encryption or strong authentication of management traffic; this would classify another type of evidence, whereas the actual finding shows BGP neighbor disclosure.

C:

An SMB null session may expose information on misconfigured or older systems where anonymous access policy is overly permissive; the relevant mechanism in the observed workflow is BGP neighbor disclosure instead.

D:

SMB enumeration obtains resource details such as shares and access configuration after network discovery; an open port alone does not supply these objects; those effects are not the BGP neighbor disclosure pattern evidenced by the assessment.

Question 207

A remediation meeting focuses on the following finding: A utility needs to ensure that remote control messages over its legacy DNP3 links originate from authorized peers rather than any node that can send protocol frames. Which proposed action best addresses its root cause?

  1. Enable supported DNP3 secure authentication and tightly manage control keys
  2. Use SPAN or TAP telemetry with coordinated asset-owner verification
  3. Require client authentication and per-topic publish and subscribe ACLs
  4. Disable unnecessary UPnP mapping or strictly constrain authorized clients
  5. Disable production debug access and physically protect service interfaces

Explanation

Correct Answer

A:

Authenticated commands reduce spoofing of control operations, with segmentation still required for legacy devices and unsupported functions. This matters for the observed attack path because secure Authentication for DNP3 adds authentication features to supported message exchanges; basic DNP3 deployments lack equivalent safeguards by default.

Incorrect Answers

B:

Passive visibility maps many communicating devices while avoiding potentially disruptive scans against controllers with fragile protocol stacks; that safeguard does not directly close the DNP3 secure authentication route highlighted by the test.

C:

Identity and topic permissions stop unrelated clients from controlling or observing telemetry streams merely by reaching the broker; the proposed improvement would make sense for anonymous MQTT broker but not as the main fix here; the tested fault instead involves DNP3 secure authentication.

D:

Explicit port-forwarding policy prevents untrusted devices from silently publishing internal services through the edge gateway; the specific root cause belongs to DNP3 secure authentication, beyond this control's intended scope.

E:

Debug locking and tamper-resistant enclosure reduce unauthorized local access to memory and configuration on deployed hardware; that change targets exposed hardware debug port, while the confirmed weakness involves DNP3 secure authentication.

Question 208

A controlled investigation yields this observation: A TLS endpoint presents a valid-looking certificate whose issuer cannot be linked to any trusted certificate authority on the client. How should the team identify the underlying behavior?

  1. CBC padding oracle
  2. S-MIME encrypted email
  3. Forward secrecy
  4. PKI trust chain

Explanation

Correct Answer

D:

PKI certificate verification builds a chain from a leaf through intermediate issuers to a locally trusted root, subject to name and validity checks. A targeted mitigation is to deploy correct certificate chains and validate trusted roots and hostnames; proper chain and identity checks prevent arbitrary signed certificates from being treated as proof that a service is the intended endpoint.

Incorrect Answers

A:

A padding oracle leaks decryption-related validity information; adaptive observations can undermine confidentiality when unauthenticated CBC handling exposes these distinctions; the relevant mechanism in the observed workflow is PKI trust chain instead.

B:

S-MIME can encrypt message content to recipients' public keys and provide digital signatures; intermediate mail transport need not see message plaintext; those effects are not the PKI trust chain pattern evidenced by the assessment.

C:

Forward secrecy uses ephemeral key exchange so recorded session traffic cannot normally be decrypted solely from a later compromise of the server's long-term authentication key; the case demonstrates PKI trust chain rather than the alternate mechanism.

Question 209

The assessor confirmed this exposure: A QR sticker replaces the authorized cafeteria payment code and points staff to a counterfeit sign-in page, although the printed surrounding notice looks legitimate. Which change most directly closes the underlying security gap?

  1. Verify sensitive requests through a separate trusted communication channel
  2. Display and verify actual destinations before authenticating from QR links
  3. Verify bank-detail changes with a known supplier contact and dual control
  4. Apply browser isolation or hardening and monitor third-party script behavior

Explanation

Correct Answer

B:

Destination validation and approved app-based entry points reduce credential submission to counterfeit sites reached through physical codes. The technical basis for the recommendation is that QR phishing hides a destination behind a scannable image, encouraging users to open a fraudulent site without seeing the URL beforehand.

Incorrect Answers

A:

Independent confirmation prevents project-specific impersonation from being treated as proof that an email request was authorized; the action is aimed at spear phishing; it leaves the central QR-code phishing condition unresolved.

C:

Independent contact validation catches payment diversion even when the attacker has realistic invoice history and conversation context; the tested weakness is QR-code phishing, not the business email compromise configuration addressed here.

D:

Client-side controls and update hygiene reduce damage from compromised familiar sites that cannot be safely treated as automatically trustworthy; that safeguard does not directly close the QR-code phishing route highlighted by the test.

Question 210

A production hardening ticket was raised after this confirmed observation: A cloud storage container intended for employees is readable by anyone on the internet because anonymous object access was enabled during a deployment test. Which action best targets the risk?

  1. Restrict metadata access and harden metadata token requirements
  2. Grant a task-specific least-privilege service role
  3. Validate event schemas and apply function-level authorization
  4. Block public access and apply explicit identity-based bucket policies

Explanation

Correct Answer

D:

Least-privilege resource policies and public-access guardrails stop anonymous reads while preserving approved application retrieval. It targets the actual failure mode: public object permissions expose stored data independently of whether the bucket name is difficult to guess; link obscurity does not enforce authorization.

Incorrect Answers

A:

Workload network controls and hardened metadata APIs reduce credential retrieval from unintended server-side request paths; the specific root cause belongs to public object storage exposure, beyond this control's intended scope.

B:

Limiting API actions and target resources preserves log writing without granting unrelated account configuration or data deletion authority; that change targets overbroad cloud IAM role, while the confirmed weakness involves public object storage exposure.

C:

Schema checks and explicit authorization prevent a public trigger from translating arbitrary input into privileged cloud operations; it would improve serverless event injection, not directly correct the reported public object storage exposure issue.

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