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

Question 350

During a sanctioned assessment the team observes: An avatar service accepts an arbitrary extension and serves the uploaded file with an active browser content type. Which next control or procedure best fits?

  1. Encode output by context and sanitize permitted rich content before it reaches browser execution contexts.
  2. Allowlist intended destinations and block internal or metadata network targets in the fetching service.
  3. Validate file signatures and content, store uploads as inert data, and set safe download headers.
  4. Enforce per-object access policy for every data retrieval and modification request.

Explanation

Correct Answer

C:

Uploads can create script, stored-XSS, or malware exposure when the server trusts names and client media types; this is the specific exposure or dependency that the selected action addresses. After treatment, the assessor should confirm that uploaded polyglot and script-like test files cannot execute or be served with dangerous content types.

Incorrect Answers

A:

Stored XSS persists attacker-controlled content server-side and executes when it is later rendered unsafely; the proposed safeguard addresses a case where untrusted comment content executes in other users' browsers when a discussion page renders saved posts, rather than the unrestricted file upload finding described here.

B:

SSRF abuses a server's network privileges to request destinations inaccessible to the external client; the proposed safeguard addresses a case where a document-preview service fetches an arbitrary URL supplied by a user and reaches internal-only resources, rather than the unrestricted file upload finding described here.

D:

Object-level authorization fails when the server trusts a client-chosen identifier without checking ownership; the proposed safeguard addresses a case where a signed-in customer changes a record identifier and sees another customer's invoice, rather than the unrestricted file upload finding described here.

Question 351

An authorized security review records the following: A document-preview service fetches an arbitrary URL supplied by a user and reaches internal-only resources. Which concept most accurately classifies the observation?

  1. Server-side request forgery
  2. Cross-site request forgery in forms
  3. Unrestricted file upload
  4. OAuth redirect validation
  5. Unsafe object deserialization

Explanation

Correct Answer

A:

SSRF abuses a server's network privileges to request destinations inaccessible to the external client; that mechanism makes this classification more precise than the neighboring terms. The protective follow-up is to allowlist intended destinations and block internal or metadata network targets in the fetching service, verified when requests to prohibited internal destinations are rejected before any backend network connection.

Incorrect Answers

B:

State-changing form endpoints are vulnerable when ambient cookies alone authorize cross-origin requests; this different classification would fit when a browser submits a password-change form while the user is logged in but without evidence of intended action, not the evidence pointing to server-side request forgery in the question.

C:

Uploads can create script, stored-XSS, or malware exposure when the server trusts names and client media types; this different classification would fit when an avatar service accepts an arbitrary extension and serves the uploaded file with an active browser content type, not the evidence pointing to server-side request forgery in the question.

D:

Open redirect registration can misdeliver authorization responses or codes outside the intended client origin; this different classification would fit when an authentication broker accepts an attacker-specified redirect destination when issuing authorization responses, not the evidence pointing to server-side request forgery in the question.

E:

Deserialization of untrusted object graphs can trigger unsafe code paths or unexpected property changes; this different classification would fit when an application reconstructs complex server objects directly from untrusted client-supplied serialized data, not the evidence pointing to server-side request forgery in the question.

Question 352

A review board requests objective closure evidence for database least privilege. Which outcome should be supplied?

  1. Requests for unknown sort columns are rejected and permitted columns map to fixed known identifiers.
  2. Public responses conceal schema diagnostics while restricted server logs retain investigation details.
  3. Permission tests show the reporting account cannot alter schema or modify unrelated records.
  4. Approved regression checks show input variations cannot alter query logic or leak conditional truth states.
  5. End-to-end tests show persisted special characters remain values in subsequent database operations.

Explanation

Correct Answer

C:

Excessive database privileges magnify the effect of application bugs or injection attempts; the outcome tests this precise property in the production control. It relates to the original observation that a read-only reporting feature connects to the database with an account allowed to modify all tables.

Incorrect Answers

A:

SQL parameters generally bind values, not arbitrary identifiers such as table or column names; that evidence is relevant when an application lets a user choose a sort column and attempts to pass the column name as a value parameter, but does not establish closure of the database least privilege exposure.

B:

Uncaught database errors can leak query structure and database internals to remote users; that evidence is relevant when a malformed user parameter causes the application to display raw database syntax and schema details, but does not establish closure of the database least privilege exposure.

D:

Blind SQL injection can reveal information through application behavior or timing even when direct query output is hidden; that evidence is relevant when a test environment shows response differences based on conditional database behavior without displaying SQL errors, but does not establish closure of the database least privilege exposure.

E:

Second-order injection arises when previously persisted untrusted content becomes executable query syntax downstream; that evidence is relevant when data safely stored as text later enters a different program's dynamic SQL construction without parameter binding, but does not establish closure of the database least privilege exposure.

Question 353

An approved test produces this finding: An application lets a user choose a sort column and attempts to pass the column name as a value parameter. Which protective action most directly addresses it?

  1. Grant only necessary SELECT rights to reporting identities and isolate administrative functions.
  2. Remove injection flaws using parameter binding and ensure consistent error handling.
  3. Audit raw-query APIs and replace interpolated SQL with supported parameterized ORM calls.
  4. Select requested identifiers from an explicit server-side allowlist before composing the statement.

Explanation

Correct Answer

D:

SQL parameters generally bind values, not arbitrary identifiers such as table or column names; this is the specific exposure or dependency that the selected action addresses. After treatment, the assessor should confirm that requests for unknown sort columns are rejected and permitted columns map to fixed known identifiers.

Incorrect Answers

A:

Excessive database privileges magnify the effect of application bugs or injection attempts; the proposed safeguard addresses a case where a read-only reporting feature connects to the database with an account allowed to modify all tables, rather than the dynamic SQL identifier safety finding described here.

B:

Blind SQL injection can reveal information through application behavior or timing even when direct query output is hidden; the proposed safeguard addresses a case where a test environment shows response differences based on conditional database behavior without displaying SQL errors, rather than the dynamic SQL identifier safety finding described here.

C:

An ORM protects only operations that actually use safe parameter binding or validated query construction; the proposed safeguard addresses a case where a developer assumes all ORM operations are injection-safe despite calling a raw query method with string interpolation, rather than the dynamic SQL identifier safety finding described here.

Question 354

A validation plan targets unauthorized scheduled persistence. What result would demonstrate the specified protective boundary?

  1. Central event records retain the privileged action timeline despite a missing local log interval.
  2. Baseline comparison detects newly registered jobs and verifies only approved tasks remain.
  3. Endpoint protections report guarded credential access and forensic review finds no unnecessary reusable secrets.
  4. Sign-in telemetry shows unsolicited prompts rejected and no unauthorized session issued afterward.

Explanation

Correct Answer

B:

Scheduled tasks can relaunch code and sustain persistence after an initial process exits; the outcome tests this precise property in the production control. It relates to the original observation that an unfamiliar recurring job launches a binary at user logon even after security tools remove a visible process.

Incorrect Answers

A:

Local log deletion can obscure activity, but independently forwarded logs provide stronger investigation continuity; that evidence is relevant when a responder discovers a gap in local audit events immediately after a suspicious privileged logon, but does not establish closure of the unauthorized scheduled persistence exposure.

C:

Processes holding reusable secrets in memory can expose authentication artifacts after endpoint compromise; that evidence is relevant when a memory snapshot of a sensitive process contains material that could authenticate to other services, but does not establish closure of the unauthorized scheduled persistence exposure.

D:

Approval fatigue abuses repeated prompts to trick a user into authorizing an attacker-initiated login; that evidence is relevant when a user receives repeated unsolicited sign-in approval prompts and eventually accepts one to stop the alerts, but does not establish closure of the unauthorized scheduled persistence exposure.

Question 355

What verification result would best support closure of a finding about TLS packet confidentiality?

  1. Resolver logs and independent records agree on authoritative answers for the protected name.
  2. Mirror statistics and packet-drop counters confirm whether the capture path was saturated.
  3. Packet review shows encrypted records and successful authenticated TLS negotiation for sensitive sessions.
  4. Switch inspection logs reject forged gateway mappings while legitimate ARP resolution continues.

Explanation

Correct Answer

C:

Properly negotiated TLS encrypts application data in transit, while some endpoint and connection metadata remain visible; the outcome tests this precise property in the production control. It relates to the original observation that a traffic capture contains TLS-encrypted application records but no readable credentials or request body.

Incorrect Answers

A:

Spoofed or poisoned DNS responses can misdirect clients without changing the intended application name; that evidence is relevant when a resolver returns an unexpected destination address for a sensitive internal domain after a local network change, but does not establish closure of the TLS packet confidentiality exposure.

B:

SPAN uses switched traffic replication and can drop mirrored frames if its destination becomes oversubscribed; that evidence is relevant when a switch monitor receives copies of selected port traffic but occasionally misses packets during congestion, but does not establish closure of the TLS packet confidentiality exposure.

D:

Forged ARP mappings can redirect local IPv4 frames through an unintended intermediary; that evidence is relevant when several hosts suddenly associate the default gateway IPv4 address with an unfamiliar MAC address, but does not establish closure of the TLS packet confidentiality exposure.

Question 356

During the permitted engagement, this note appears: A network sensor infers endpoint platform traits from ordinary traffic without sending probes. What does the note principally represent?

  1. Passive OS fingerprinting
  2. Active OS fingerprinting
  3. Filtered TCP port
  4. TCP three-way handshake

Explanation

Correct Answer

A:

Passive fingerprinting observes packet properties and protocol behaviors already traversing the sensor; that mechanism makes this classification more precise than the neighboring terms. The protective follow-up is to use mirrored authorized traffic and avoid treating passive fingerprints as definitive identity proof, verified when known asset labels provide ground truth for the sensor's observed OS-classification confidence.

Incorrect Answers

B:

TCP/IP stack behaviors can suggest OS families, but devices and middleboxes can alter fingerprints; this different classification would fit when a tester infers a device operating system from how its network stack responds to controlled probes, not the evidence pointing to passive os fingerprinting in the question.

C:

Filtering or packet loss can prevent a conclusive TCP port-state observation from a remote position; this different classification would fit when a probe to a specific port receives no response while other ports on the same host reply, not the evidence pointing to passive os fingerprinting in the question.

D:

TCP establishes state through a handshake before transferring reliable bidirectional application data; this different classification would fit when a connection trace shows SYN, SYN-ACK, and ACK before application data flows, not the evidence pointing to passive os fingerprinting in the question.

Question 357

To confirm effective security handling of evil twin access point, which result should an analyst prioritize?

  1. Test devices without valid client credentials are rejected and users cannot bypass server trust checks.
  2. Wireless surveys and wired port inspections identify and disconnect unauthorized bridging devices.
  3. Managed clients reject lookalike access points whose authentication-server identity is not trusted.
  4. Connection diagnostics show supported clients negotiate SAE rather than an older shared-key mode.

Explanation

Correct Answer

C:

An evil-twin AP impersonates a trusted network name to attract client associations or credentials; the outcome tests this precise property in the production control. It relates to the original observation that a laptop connects to a nearby access point using the company SSID but an unfamiliar certificate and controller.

Incorrect Answers

A:

EAP-TLS uses certificate-based mutual authentication when client and server trust are properly validated; that evidence is relevant when managed laptops must authenticate to enterprise Wi-Fi without sending reusable user passwords, but does not establish closure of the evil twin access point exposure.

B:

Rogue access points create unauthorized alternate network paths, sometimes bypassing wired policies; that evidence is relevant when an unapproved radio bridges an internal Ethernet port to a wireless network outside the corporate controller, but does not establish closure of the evil twin access point exposure.

D:

WPA3-Personal uses SAE authenticated key exchange rather than the WPA2-Personal pre-shared handshake design; that evidence is relevant when a new access point is configured for password-based Wi-Fi security with better resistance to captured-handshake offline guessing, but does not establish closure of the evil twin access point exposure.

Question 358

Which audit observation best verifies a corrective measure covering robots directive interpretation?

  1. Every retained reconnaissance finding links to a checked public record or approved direct observation.
  2. Published files inspected after export contain no internal paths, usernames, or sensitive production metadata.
  3. The reviewed headers align with accepted relay records and verified mail-authentication outcomes.
  4. Unauthenticated requests to the listed path are denied even when the route is known.

Explanation

Correct Answer

D:

Robots directives guide cooperative crawlers and do not enforce access control on the underlying resource; the outcome tests this precise property in the production control. It relates to the original observation that an analyst sees a disallowed URL path in a robots.txt file and treats it as confidential.

Incorrect Answers

A:

AI-generated OSINT summaries can invent or misattribute findings, so their claims require independent source verification; that evidence is relevant when a generated reconnaissance summary names an allegedly exposed host but provides neither a source URL nor an observed DNS record, but does not establish closure of the robots directive interpretation exposure.

B:

Office and PDF metadata can expose organizational identifiers even when the document body is harmless; that evidence is relevant when a publicly downloadable document reveals its author name, software version, and internal path in properties, but does not establish closure of the robots directive interpretation exposure.

C:

Received headers, authentication results, and server traces can reveal message path and origin clues; that evidence is relevant when an investigator reads the received-hop chain to distinguish real mail transit from a forged display name, but does not establish closure of the robots directive interpretation exposure.

Question 359

A trainee confuses several related concepts with mobile TLS trust bypass. Which explanation resolves that confusion?

  1. Managed work containers separate enterprise data and policies from personal applications where supported.
  2. Unreviewed side-loading increases exposure to modified packages and misleading publisher identities.
  3. Mobile platform permissions restrict sensitive APIs, but users and administrators still must assess necessity.
  4. Disabling TLS certificate validation enables impersonation even when the connection uses encryption.

Explanation

Correct Answer

D:

An application accepts any server certificate while connecting to its financial API; that situation illustrates the actual operating behavior under review. Its practical safeguard is to enforce platform certificate trust checks and appropriate endpoint identity validation, with confirmation when the app refuses test servers with untrusted or mismatched certificates during connection setup.

Incorrect Answers

A:

An employer wants to remove corporate email from a personally owned phone without erasing family photos; those details characterize enterprise mobile work profile and would call for use a managed work profile or equivalent app-container policy for corporate information, rather than explaining mobile TLS trust bypass.

B:

Employees install a business lookalike app from an unknown APK source outside the approved enterprise catalog; those details characterize unmanaged app sideloading and would call for apply mobile application management and restrict unapproved package installation on managed devices, rather than explaining mobile TLS trust bypass.

C:

A flashlight app asks for microphone, contact, and precise-location access without a relevant feature; those details characterize mobile permission minimization and would call for deny unrelated permissions and distribute apps through a reviewed enterprise catalog, rather than explaining mobile TLS trust bypass.

Question 360

A client requests practical treatment for this condition: A browser script copies a URL fragment into innerHTML without a round trip through the server. Which measure is the closest match?

  1. Avoid native object deserialization from clients and use validated simple data contracts.
  2. Use safe text APIs and trusted sanitization instead of unsafe DOM HTML insertion.
  3. Validate file signatures and content, store uploads as inert data, and set safe download headers.
  4. Use role-aware server-side response schemas that expose only necessary authorized fields.
  5. Apply context-appropriate output encoding and avoid inserting untrusted input into executable HTML contexts.

Explanation

Correct Answer

B:

DOM XSS arises when client-side code sends attacker-controlled values into dangerous browser sinks; this is the specific exposure or dependency that the selected action addresses. After treatment, the assessor should confirm that instrumented browser tests show untrusted fragment data displayed without creating active markup.

Incorrect Answers

A:

Deserialization of untrusted object graphs can trigger unsafe code paths or unexpected property changes; the proposed safeguard addresses a case where an application reconstructs complex server objects directly from untrusted client-supplied serialized data, rather than the dom-based cross-site scripting finding described here.

C:

Uploads can create script, stored-XSS, or malware exposure when the server trusts names and client media types; the proposed safeguard addresses a case where an avatar service accepts an arbitrary extension and serves the uploaded file with an active browser content type, rather than the dom-based cross-site scripting finding described here.

D:

Sensitive fields remain exposed when authorization and output filtering occur only in the browser; the proposed safeguard addresses a case where a customer profile endpoint returns staff-only flags and internal identifiers even though the UI hides them, rather than the dom-based cross-site scripting finding described here.

E:

Reflected XSS occurs when request-derived content is immediately returned without suitable output encoding; the proposed safeguard addresses a case where a query value is copied into an HTML response and interpreted by the browser as executable markup, rather than the dom-based cross-site scripting finding described here.

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