ECCouncil 712-50 (EC-Council Certified CISO) Practice Test 59

Question 580

A browser continues to execute unauthorized inline scripts after a vulnerable web component inserts attacker-controlled markup. What should the decision-maker choose?

  1. Parameterized database queries
  2. Contextual output encoding
  3. Content Security Policy enforcement
  4. Safe file upload handling

Explanation

Correct Answer

C:

A restrictive Content Security Policy can reject unapproved inline execution using nonce or hash rules as a defense-in-depth limit on script sources. By contrast, Parameterized database queries is relevant when an input field lets attackers change SQL command structure through special characters, not as a substitute for Content Security Policy enforcement in this case.

Incorrect Answers

A:

Parameter binding separates untrusted values from query syntax and reduces SQL injection; the condition under which it applies is that an input field lets attackers change SQL command structure through special characters, unlike the condition in the question, where a browser continues to execute unauthorized inline scripts after a vulnerable web component inserts attacker-controlled markup.

B:

Output encoding treats data as text in its specific HTML or script context to prevent XSS; it helps when user-provided content executes JavaScript when displayed in another user's browser, whereas the present requirement arises because a browser continues to execute unauthorized inline scripts after a vulnerable web component inserts attacker-controlled markup.

D:

Type validation, nonexecutable storage, isolation, and scanning reduce malicious upload exposure; it would be a fit if an upload endpoint accepts files that execute as server-side code when accessed, whereas the required response must deal with the fact that a browser continues to execute unauthorized inline scripts after a vulnerable web component inserts attacker-controlled markup.

Question 581

An upload endpoint accepts files that execute as server-side code when accessed. What action would satisfy this constraint most directly?

  1. Safe file upload handling
  2. Path traversal prevention
  3. Anti-CSRF protection
  4. Contextual output encoding

Explanation

Correct Answer

A:

Type validation, nonexecutable storage, isolation, and scanning reduce malicious upload exposure. By contrast, Contextual output encoding is relevant when user-provided content executes JavaScript when displayed in another user's browser, not as a substitute for Safe file upload handling in this case.

Incorrect Answers

B:

Canonicalized path validation and constrained file access prevent unauthorized directory escape; the alternative concern is that a filename parameter can reach sensitive files outside the intended content directory, but the tested need stems from the fact that an upload endpoint accepts files that execute as server-side code when accessed.

C:

CSRF tokens and suitable cookie protections reduce cross-site request forgery under supported conditions; it would be a fit if an authenticated browser is tricked into submitting an unwanted state-changing request, whereas the required response must deal with the fact that an upload endpoint accepts files that execute as server-side code when accessed.

D:

Output encoding treats data as text in its specific HTML or script context to prevent XSS; this provides its benefit when user-provided content executes JavaScript when displayed in another user's browser; the matter at hand is instead that an upload endpoint accepts files that execute as server-side code when accessed.

Question 582

Session identifiers are exposed to client scripts and sent over insecure channels. What approach should the accountable team prioritize?

  1. Contextual output encoding
  2. Secure session cookies
  3. Server-side request forgery defense
  4. Path traversal prevention
  5. Safe file upload handling

Explanation

Correct Answer

B:

HttpOnly, Secure, and suitable SameSite attributes protect session handling for browser clients. By contrast, Safe file upload handling is relevant when an upload endpoint accepts files that execute as server-side code when accessed, not as a substitute for Secure session cookies in this case.

Incorrect Answers

A:

Output encoding treats data as text in its specific HTML or script context to prevent XSS; this is pertinent when user-provided content executes JavaScript when displayed in another user's browser, in contrast with the actual gap where session identifiers are exposed to client scripts and sent over insecure channels.

C:

Destination allowlists and network restrictions constrain server-originated requests to trusted endpoints; this is pertinent when an API fetches user-supplied URLs that can target internal metadata services, in contrast with the actual gap where session identifiers are exposed to client scripts and sent over insecure channels.

D:

Canonicalized path validation and constrained file access prevent unauthorized directory escape; it would be a fit if a filename parameter can reach sensitive files outside the intended content directory, whereas the required response must deal with the fact that session identifiers are exposed to client scripts and sent over insecure channels.

E:

Type validation, nonexecutable storage, isolation, and scanning reduce malicious upload exposure; the alternative concern is that an upload endpoint accepts files that execute as server-side code when accessed, but the tested need stems from the fact that session identifiers are exposed to client scripts and sent over insecure channels.

Question 583

A filename parameter can reach sensitive files outside the intended content directory. What is the best-targeted intervention?

  1. Path traversal prevention
  2. Safe file upload handling
  3. Server-side request forgery defense
  4. Parameterized database queries

Explanation

Correct Answer

A:

Canonicalized path validation and constrained file access prevent unauthorized directory escape. By contrast, Server-side request forgery defense is relevant when an API fetches user-supplied URLs that can target internal metadata services, not as a substitute for Path traversal prevention in this case.

Incorrect Answers

B:

Type validation, nonexecutable storage, isolation, and scanning reduce malicious upload exposure; that helps with the separate case where an upload endpoint accepts files that execute as server-side code when accessed, not with the issue that a filename parameter can reach sensitive files outside the intended content directory.

C:

Destination allowlists and network restrictions constrain server-originated requests to trusted endpoints; it helps when an API fetches user-supplied URLs that can target internal metadata services, whereas the present requirement arises because a filename parameter can reach sensitive files outside the intended content directory.

D:

Parameter binding separates untrusted values from query syntax and reduces SQL injection; the condition under which it applies is that an input field lets attackers change SQL command structure through special characters, unlike the condition in the question, where a filename parameter can reach sensitive files outside the intended content directory.

Question 584

An API fetches user-supplied URLs that can target internal metadata services. What should the decision-maker choose?

  1. Anti-CSRF protection
  2. Parameterized database queries
  3. Server-side request forgery defense
  4. Safe file upload handling

Explanation

Correct Answer

C:

Destination allowlists and network restrictions constrain server-originated requests to trusted endpoints. By contrast, Parameterized database queries is relevant when an input field lets attackers change SQL command structure through special characters, not as a substitute for Server-side request forgery defense in this case.

Incorrect Answers

A:

CSRF tokens and suitable cookie protections reduce cross-site request forgery under supported conditions; that helps with the separate case where an authenticated browser is tricked into submitting an unwanted state-changing request, not with the issue that an API fetches user-supplied URLs that can target internal metadata services.

B:

Parameter binding separates untrusted values from query syntax and reduces SQL injection; this is pertinent when an input field lets attackers change SQL command structure through special characters, in contrast with the actual gap where an API fetches user-supplied URLs that can target internal metadata services.

D:

Type validation, nonexecutable storage, isolation, and scanning reduce malicious upload exposure; the condition for this measure is that an upload endpoint accepts files that execute as server-side code when accessed, whereas the current question concerns a case where an API fetches user-supplied URLs that can target internal metadata services.

Question 585

A digital payments platform exposes customer and partner APIs with sensitive functions. An API caller can set a protected account-status field through a general profile update even though that field should be read-only to customers. What is the best-targeted intervention?

  1. Token scope enforcement
  2. API abuse monitoring
  3. Service-to-service authentication
  4. Object-property write authorization

Explanation

Correct Answer

D:

Property-level authorization limits which fields a caller may modify, regardless of whether the caller can access the parent object. By contrast, Token scope enforcement is relevant when a partner token intended for read-only use can invoke payment modification operations, not as a substitute for Object-property write authorization in this case.

Incorrect Answers

A:

Scope checks restrict an access token to authorized functions as well as identity and audience; such an effect addresses a situation where a partner token intended for read-only use can invoke payment modification operations rather than the situation where an API caller can set a protected account-status field through a general profile update even though that field should be read-only to customers.

B:

Behavioral analytics detect suspicious usage patterns even when individual requests appear well formed; this is pertinent when an apparently authenticated partner rapidly enumerates consecutive customer identifiers, in contrast with the actual gap where an API caller can set a protected account-status field through a general profile update even though that field should be read-only to customers.

C:

Workload identity and authenticated channels establish caller trust beyond network location; that helps with the separate case where internal APIs accept calls merely because the source IP is on the company network, not with the issue that an API caller can set a protected account-status field through a general profile update even though that field should be read-only to customers.

Question 586

Automated clients can exhaust expensive endpoints with unrestricted request volumes. What should the decision-maker choose?

  1. Object-property write authorization
  2. Schema validation
  3. API rate limiting
  4. Service-to-service authentication

Explanation

Correct Answer

C:

Rate controls bound usage by identity and context and help protect availability. By contrast, Object-property write authorization is relevant when an API caller can set a protected account-status field through a general profile update even though that field should be read-only to customers, not as a substitute for API rate limiting in this case.

Incorrect Answers

A:

Property-level authorization limits which fields a caller may modify, regardless of whether the caller can access the parent object; its proper use case is one in which an API caller can set a protected account-status field through a general profile update even though that field should be read-only to customers, not one in which automated clients can exhaust expensive endpoints with unrestricted request volumes.

B:

Schema validation constrains permitted types, structures, and attributes before business processing; this is pertinent when a partner sends unexpected fields that override internal transaction attributes, in contrast with the actual gap where automated clients can exhaust expensive endpoints with unrestricted request volumes.

D:

Workload identity and authenticated channels establish caller trust beyond network location; its proper use case is one in which internal APIs accept calls merely because the source IP is on the company network, not one in which automated clients can exhaust expensive endpoints with unrestricted request volumes.

Question 587

A partner sends unexpected fields that override internal transaction attributes. What action would satisfy this constraint most directly?

  1. Token scope enforcement
  2. Schema validation
  3. API gateway policy
  4. API inventory and discovery

Explanation

Correct Answer

B:

Schema validation constrains permitted types, structures, and attributes before business processing. By contrast, Token scope enforcement is relevant when a partner token intended for read-only use can invoke payment modification operations, not as a substitute for Schema validation in this case.

Incorrect Answers

A:

Scope checks restrict an access token to authorized functions as well as identity and audience; that is relevant if a partner token intended for read-only use can invoke payment modification operations, but it does not directly resolve the need arising when a partner sends unexpected fields that override internal transaction attributes.

C:

A gateway centralizes common edge controls while backend authorization remains necessary; the condition for this measure is that many microservices require consistent authentication, quotas, and request logging, whereas the current question concerns a case where a partner sends unexpected fields that override internal transaction attributes.

D:

Inventory records accessible interfaces, owners, versions, data sensitivity, and dependencies; it would be a fit if unknown legacy endpoints expose customer data without current owner oversight, whereas the required response must deal with the fact that a partner sends unexpected fields that override internal transaction attributes.

Question 588

A review identifies these two distinct gaps: (1) internal APIs accept calls merely because the source IP is on the company network; (2) a partner sends unexpected fields that override internal transaction attributes. Which TWO options directly satisfy these requirements? Choose TWO.

  1. Service-to-service authentication
  2. API rate limiting
  3. Token scope enforcement
  4. API abuse monitoring
  5. Schema validation
  6. API gateway policy

Explanation

Correct Answers

A:

For the requirement that internal APIs accept calls merely because the source IP is on the company network, workload identity and authenticated channels establish caller trust beyond network location; Schema validation separately addresses the need that a partner sends unexpected fields that override internal transaction attributes.

E:

For the requirement that a partner sends unexpected fields that override internal transaction attributes, schema validation constrains permitted types, structures, and attributes before business processing; Service-to-service authentication separately addresses the need that internal APIs accept calls merely because the source IP is on the company network.

Incorrect Answers

B:

Rate controls bound usage by identity and context and help protect availability; deploying it would matter if automated clients can exhaust expensive endpoints with unrestricted request volumes, but the deciding issue here is that a partner sends unexpected fields that override internal transaction attributes; the other need in this item is that internal APIs accept calls merely because the source IP is on the company network.

C:

Scope checks restrict an access token to authorized functions as well as identity and audience; it helps when a partner token intended for read-only use can invoke payment modification operations, whereas the present requirement arises because internal APIs accept calls merely because the source IP is on the company network.

D:

Behavioral analytics detect suspicious usage patterns even when individual requests appear well formed; deploying it would matter if an apparently authenticated partner rapidly enumerates consecutive customer identifiers, but the deciding issue here is that a partner sends unexpected fields that override internal transaction attributes; the other need in this item is that internal APIs accept calls merely because the source IP is on the company network.

F:

A gateway centralizes common edge controls while backend authorization remains necessary; this is pertinent when many microservices require consistent authentication, quotas, and request logging, in contrast with the actual gap where internal APIs accept calls merely because the source IP is on the company network.

Question 589

Many microservices require consistent authentication, quotas, and request logging. What is the best-targeted intervention?

  1. Schema validation
  2. Service-to-service authentication
  3. API rate limiting
  4. Object-property write authorization
  5. Token scope enforcement
  6. API gateway policy

Explanation

Correct Answer

F:

A gateway centralizes common edge controls while backend authorization remains necessary. By contrast, Token scope enforcement is relevant when a partner token intended for read-only use can invoke payment modification operations, not as a substitute for API gateway policy in this case.

Incorrect Answers

A:

Schema validation constrains permitted types, structures, and attributes before business processing; this is pertinent when a partner sends unexpected fields that override internal transaction attributes, in contrast with the actual gap where many microservices require consistent authentication, quotas, and request logging.

B:

Workload identity and authenticated channels establish caller trust beyond network location; this provides its benefit when internal APIs accept calls merely because the source IP is on the company network; the matter at hand is instead that many microservices require consistent authentication, quotas, and request logging.

C:

Rate controls bound usage by identity and context and help protect availability; it helps when automated clients can exhaust expensive endpoints with unrestricted request volumes, whereas the present requirement arises because many microservices require consistent authentication, quotas, and request logging.

D:

Property-level authorization limits which fields a caller may modify, regardless of whether the caller can access the parent object; its proper use case is one in which an API caller can set a protected account-status field through a general profile update even though that field should be read-only to customers, not one in which many microservices require consistent authentication, quotas, and request logging.

E:

Scope checks restrict an access token to authorized functions as well as identity and audience; this provides its benefit when a partner token intended for read-only use can invoke payment modification operations; the matter at hand is instead that many microservices require consistent authentication, quotas, and request logging.

Question 590

Unknown legacy endpoints expose customer data without current owner oversight. What should the decision-maker choose?

  1. Service-to-service authentication
  2. API rate limiting
  3. Object-property write authorization
  4. API inventory and discovery

Explanation

Correct Answer

D:

Inventory records accessible interfaces, owners, versions, data sensitivity, and dependencies. By contrast, Object-property write authorization is relevant when an API caller can set a protected account-status field through a general profile update even though that field should be read-only to customers, not as a substitute for API inventory and discovery in this case.

Incorrect Answers

A:

Workload identity and authenticated channels establish caller trust beyond network location; that is relevant if internal APIs accept calls merely because the source IP is on the company network, but it does not directly resolve the need arising when unknown legacy endpoints expose customer data without current owner oversight.

B:

Rate controls bound usage by identity and context and help protect availability; its proper use case is one in which automated clients can exhaust expensive endpoints with unrestricted request volumes, not one in which unknown legacy endpoints expose customer data without current owner oversight.

C:

Property-level authorization limits which fields a caller may modify, regardless of whether the caller can access the parent object; deploying it would matter if an API caller can set a protected account-status field through a general profile update even though that field should be read-only to customers, but the deciding issue here is that unknown legacy endpoints expose customer data without current owner oversight.

EC-Council Certified CISO (712-50) Practice Tests