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

Question 10

The asset owner wants to stop the verified condition recurring: An order search concatenates a customer-supplied filter into a SELECT statement, permitting an additional compatible result set to be returned alongside the ordinary rows. What is the most targeted improvement?

  1. Apply only HTML output encoding to the combined database result
  2. Use parameterized queries and least-privilege database credentials
  3. Limit query output to ten rows without changing how filters are assembled
  4. Remove detailed SQL error messages while continuing to concatenate search filters

Explanation

Correct Answer

B:

Parameter binding blocks query concatenation, and narrow SQL permissions limit data exposure if another injection path remains. The specific weakness being corrected is that UNION-based injection appends a compatible SELECT result to the application's existing query output, allowing data to appear in a normal response.

Incorrect Answers

A:

Encoding output is useful for browser injection but it does not keep a UNION clause out of the SQL query; the UNION-based SQL injection weakness in the question therefore remains uncorrected.

C:

Row limits may constrain one response but do not prevent unauthorized SQL conditions or merged result sets; the UNION-based SQL injection weakness in the question therefore remains uncorrected.

D:

UNION-based result mixing can succeed without verbose database errors, so this obscures rather than repairs the flaw; the UNION-based SQL injection weakness in the question therefore remains uncorrected.

Question 11

The approved test uncovered this weakness: A wide subnet discovery job launches outside the agreed maintenance window and floods a legacy WAN router that serves other customers not included in the engagement. Which control would reduce the relevant exposure without relying on obscurity?

  1. Include IPv6 address space and neighbor traffic in authorized inventory scans
  2. Enforce allowlisted targets, rate limits, and agreed test windows
  3. Alert on unusual multi-flag probes and validate with conventional scans
  4. Validate ambiguous UDP results with protocol-aware requests

Explanation

Correct Answer

B:

Technical scope enforcement and staged scan pacing help avoid unintended impact beyond authorized addresses or periods. The specific weakness being corrected is that network scanning generates traffic that can affect adjacent shared systems; permission applies to assets and methods, not merely to the assessor's intent.

Incorrect Answers

A:

A complete host inventory must cover IPv6, while security controls should not disable essential ICMPv6 functions needed for normal operation; that change targets IPv6 neighbor discovery, while the confirmed weakness involves scope-aware scan scheduling.

C:

Filtering and traffic analysis detect atypical reconnaissance, but a missing response should not be reported as confirmed open access; the measure addresses a different trust boundary from the scope-aware scan scheduling finding.

D:

Application-specific probes and correlated firewall logs help distinguish a silent UDP listener from network filtering without guessing from silence; the required correction concerns scope-aware scan scheduling, so this is not the targeted control.

Question 12

The assessment evidence reads as follows: A public server accumulates large numbers of half-open TCP connections after receiving more SYNs than its backlog can handle. Which technical concept explains the result?

  1. TCP SYN flood
  2. DNS amplification
  3. Slowloris header exhaustion
  4. State-table exhaustion

Explanation

Correct Answer

A:

A SYN flood consumes connection-state resources before handshakes complete; spoofed or unresponsive source addresses can aggravate backlog exhaustion. To constrain the corresponding risk, defenders should enable SYN cookies or equivalent connection-state protections; SYN cookies and tuned backlog handling reduce memory pressure from incomplete handshakes while retaining normal completed TCP connections.

Incorrect Answers

B:

DNS amplification combines forged-source requests with responders that produce much larger replies; open resolvers can be abused as reflectors; the reported conditions are characteristic of TCP SYN flood, not that path.

C:

Slowloris-style attacks tie up connection slots by slowly transmitting incomplete HTTP request headers, exploiting permissive timeout behavior; those prerequisites differ from the TCP SYN flood behavior in the record.

D:

State exhaustion targets the intermediary's connection-tracking resources, not necessarily the backend server or its application request queue; this would classify another type of evidence, whereas the actual finding shows TCP SYN flood.

Question 13

Operations asks for a practical correction after the test found: A shopping site's checkout handler remains reachable but legitimate users time out because automated clients issue expensive application-level requests faster than workers can finish. What should the security team recommend?

  1. Set request-body timeouts and minimum transfer rates
  2. Apply per-identity request quotas and application-aware protection
  3. Rate-limit unnecessary ICMP echo handling while preserving essential ICMP messages
  4. Use upstream filtering and volumetric DDoS mitigation

Explanation

Correct Answer

B:

Endpoint-specific limits protect scarce workers and database capacity even when requests look like ordinary valid HTTP traffic. It targets the actual failure mode: application-layer floods exhaust request handlers, backends, or expensive application operations rather than relying exclusively on raw packet volume.

Incorrect Answers

A:

Body-read deadlines prevent many idle upload sessions from indefinitely consuming server processing capacity; the proposed improvement would make sense for slow HTTP POST but not as the main fix here; the tested fault instead involves HTTP application flood.

C:

Targeted control-plane policing protects diagnostics capacity without breaking indispensable errors such as path-MTU feedback; that change targets ICMP flood, while the confirmed weakness involves HTTP application flood.

D:

Provider-level controls drop unwanted volume before the limited access link becomes saturated, unlike an application-only request throttle; it would improve UDP packet flood, not directly correct the reported HTTP application flood issue.

Question 14

A follow-up review must reduce the risk revealed here: Internet users can query SRV records naming internal domain controllers and service ports that were accidentally published in a public DNS view. Which defensive measure fits the specific failure mode?

  1. Manage service-account permissions and use strong managed secrets
  2. Restrict share listing and access through SMB permissions and segmentation
  3. Limit unintended public exposure of internal service records
  4. Restrict RPC exposure to trusted administrative network segments

Explanation

Correct Answer

C:

Split DNS and zone design keep internal discovery available to clients without unnecessarily exposing internal service topology to the internet. This matters for the observed attack path because DNS SRV records publish the hostname and port of a service so clients can find it; LDAP and Kerberos discovery commonly rely on them.

Incorrect Answers

A:

Tight account privileges and long, rotated secrets limit subsequent ticket-based password attacks after SPN exposure; the required correction concerns DNS SRV discovery, so this is not the targeted control.

B:

Share and NTFS permissions plus network isolation reduce unauthorized resource browsing even when SMB must remain available to staff; its security benefit applies principally to SMB share enumeration, not the defect described; the tested fault instead involves DNS SRV discovery.

D:

Filtering management reachability limits endpoint metadata leakage and reduces the chance that remote RPC interfaces are reachable by untrusted clients; the action is aimed at RPC endpoint mapper; it leaves the central DNS SRV discovery condition unresolved.

Question 15

A control review considers a verified technical issue: Management is preparing an executive summary of an internet-only assessment that never reached VPN-protected portals or authenticated administrator pages, yet it proposes an unrestricted assurance statement. Which mitigation most directly addresses its cause?

  1. Treat retrieved content as untrusted data and constrain tool privileges
  2. Reconcile source review with runtime verification of discovered flaws
  3. Limit backup read permissions and enforce authenticated access
  4. Record black-box coverage limitations in the final report

Explanation

Correct Answer

D:

The conclusion should describe the outside-in vantage point; inaccessible authenticated functions cannot be declared secure merely because this test did not reach them. The underlying condition is that black-box testing models an outside party with little prior knowledge; it emphasizes externally discoverable paths but offers less coverage of privileged or internal behaviors.

Incorrect Answers

A:

Instruction separation, restricted tool permissions, and output validation reduce the chance that untrusted document text can redirect an automated assessment workflow; the tested weakness is black-box assessment, not the prompt injection of an assessment assistant configuration addressed here.

B:

Knowing the code does not itself demonstrate exploitability in the deployed configuration; validated runtime behavior makes the finding dependable; that safeguard does not directly close the black-box assessment route highlighted by the test.

C:

Access control and private storage prevent unauthorized retrieval; encryption is beneficial but cannot replace correct authorization for disclosed keys or URLs; the proposed improvement would make sense for confidentiality but not as the main fix here; the tested fault instead involves black-box assessment.

Question 16

A remediation meeting focuses on the following finding: A network detector can observe TLS endpoint metadata but cannot distinguish a legitimate API call from harmful commands contained entirely inside the encrypted application stream. Which proposed action best addresses its root cause?

  1. Use default-deny inbound policies with state tracking and explicit exceptions
  2. Normalize fragments and match sensor reassembly behavior to endpoints
  3. Use approved endpoint telemetry or controlled TLS inspection when justified
  4. Normalize TCP streams and enforce consistent retransmission handling

Explanation

Correct Answer

C:

Instrumenting the endpoint or authorized termination point recovers necessary context without assuming a passive sensor can decrypt arbitrary TLS. The technical basis for the recommendation is that network encryption preserves content confidentiality from passive inspection points; metadata remains visible but payload signatures may be unavailable.

Incorrect Answers

A:

Session-aware filtering allows expected responses without opening general inbound reachability to unrelated external clients; it would improve stateful firewall inspection, not directly correct the reported encrypted traffic blind spot issue.

B:

Consistent stream reconstruction prevents an attacker from hiding payload bytes in packet divisions that only the protected host interprets; the measure addresses a different trust boundary from the encrypted traffic blind spot finding.

D:

Reconciling overlap behavior at the boundary prevents ambiguous segments from presenting different effective payloads to sensor and endpoint; its security benefit applies principally to TCP stream desynchronization, not the defect described; the tested fault instead involves encrypted traffic blind spot.

Question 17

The tester submits the following verified finding: A workload container runs privileged with broad host mounts, letting a compromise reach sensitive host resources outside its intended isolation boundary. Which technique or condition is involved?

  1. Multitenant isolation
  2. Container runtime escape
  3. Cloud metadata SSRF
  4. Etcd secret storage

Explanation

Correct Answer

B:

Container isolation relies on kernel boundaries and runtime restrictions; privileged mode and host mounts deliberately weaken that separation. To constrain the corresponding risk, defenders should drop unnecessary capabilities and avoid privileged containers or host mounts; hardened runtime profiles and minimal mount exposure contain a compromised process within a narrower host attack surface.

Incorrect Answers

A:

Multitenant applications must enforce tenant context at every relevant data access path; unique identifiers are not authorization checks; those effects are not the container runtime escape pattern evidenced by the assessment.

C:

Metadata-service requests from a vulnerable server can turn SSRF into credential exposure when untrusted URLs can reach the instance's local metadata interface; the observed evidence concerns container runtime escape instead.

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 test record points specifically to container runtime escape, not this separate mechanism.

Question 18

The approved engagement produces this evidence: Operations forbids aggressive probing of legacy controllers but needs accurate knowledge of protocol endpoints and device roles. What is the correct technical interpretation?

  1. PLC command tampering
  2. Anonymous MQTT broker
  3. CoAP plaintext exchange
  4. Passive OT asset inventory

Explanation

Correct Answer

D:

Passive OT discovery interprets mirrored network traffic and protocol messages without actively interrogating sensitive equipment, reducing assessment impact. This is why teams should use SPAN or TAP telemetry with coordinated asset-owner verification; passive visibility maps many communicating devices while avoiding potentially disruptive scans against controllers with fragile protocol stacks.

Incorrect Answers

A:

Programmable logic controllers act on control instructions that may affect physical processes; insecure command channels can translate cyber access into unsafe operations; the case demonstrates passive OT asset inventory rather than the alternate mechanism.

B:

MQTT brokers route messages through topics; anonymous access can permit unauthorized telemetry reading or injection when topic ACLs are absent; the observed evidence concerns passive OT asset inventory instead.

C:

CoAP is an application protocol often run over UDP; without DTLS, OSCORE, or a protected network, messages may lack confidentiality and authenticity; the test record points specifically to passive OT asset inventory, not this separate mechanism.

Question 19

A remediation meeting focuses on the following finding: A switch's diagnostic configuration replicates payment-segment frames onto an unused port that a general IT technician can access with a laptop. Which proposed action best addresses its root cause?

  1. Protect trusted uplink configuration and refresh binding tables correctly
  2. Configure DAI alongside correct DHCP snooping or static bindings
  3. Enable DHCP snooping and rate limits on untrusted access ports
  4. Enable RA Guard and monitor authorized IPv6 routers
  5. Restrict and audit mirror-port configuration and sensor access

Explanation

Correct Answer

E:

Capture destinations can contain sensitive traffic; management authorization and storage controls protect copied packets from unauthorized readers. It directly addresses this mechanism: switch port mirroring delivers copies of specified traffic to an analyzer without placing it inline in the production forwarding path.

Incorrect Answers

A:

Accurate bindings and port trust settings are prerequisites for effective spoofing protection and help avoid false drops during legitimate host moves; its security benefit applies principally to DHCP snooping bindings, not the defect described; the tested fault instead involves SPAN mirror-port collection.

B:

Binding-based validation prevents spoofed neighbor mappings, but static-IP devices require suitable entries to avoid disrupting legitimate traffic; the exposure here is SPAN mirror-port collection, which calls for another protective mechanism.

C:

Per-port request limits and trusted DHCP server ports reduce lease exhaustion and constrain DHCP-origin abuse at the access layer; the action is aimed at DHCP starvation; it leaves the central SPAN mirror-port collection condition unresolved.

D:

Switch filtering for unauthorized advertisements protects host routing decisions while retaining legitimate IPv6 neighbor and router discovery; this is relevant to a separate IPv6 router-advertisement spoofing scenario, rather than the identified exposure; the tested fault instead involves SPAN mirror-port collection.

Question 20

A security engineer examines the following result: A defender wants to categorize observed credential dumping and lateral movement by adversary behavior rather than by one malware family. Which described weakness or technique does it demonstrate?

  1. MITRE ATT&CK technique mapping
  2. Defense in depth
  3. Least privilege
  4. Availability

Explanation

Correct Answer

A:

MITRE ATT&CK organizes observed tactics and techniques across attack stages. Mapping behavior supports detection coverage and investigation without requiring attribution to a particular actor. For a production safeguard, operators can map detections and gaps to techniques with supporting telemetry; technique-level coverage helps identify missing logs and analytics while avoiding false certainty about adversary identity from a single behavior.

Incorrect Answers

B:

Defense in depth combines independent preventive, detective, and limiting controls, so one failure does not immediately compromise every protected resource; that behavior is distinct from the MITRE ATT&CK technique mapping finding being classified.

C:

Least privilege assigns only the specific permissions and duration needed for a task; excess authority expands the impact of error or credential compromise; the scenario identifies MITRE ATT&CK technique mapping, which has a different triggering condition.

D:

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 defining symptom in the prompt is associated with MITRE ATT&CK technique mapping instead.

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