CompTIA CySA+ (CS0-003) CS0-003 Practice Test 54
Question 530
A login flow accepts the same session identifier before and after user authentication. The necessary response and prerequisite corrective actions have been implemented; their effectiveness remains unproven. Management will accept closure only with a demonstrated result, not a claimed fix. Which follow-up check best verifies the security outcome?
- Confirm session identifier reuse across anonymous and authenticated login state
- Regenerate session IDs after authentication and bind sessions securely
- Compare session cookie IDs before and after a controlled login
- Show pre-login IDs cannot access the authenticated session after login
Explanation
Correct Answer
D:Show pre-login IDs cannot access the authenticated session after login. This addresses the recorded condition: A login flow accepts the same session identifier before and after user authentication. It demonstrates that the corrective decision achieved its intended effect, identifies any remaining uncertainty and provides auditable closure evidence.
Incorrect Answers
A:The alternative to confirm session identifier reuse across anonymous and authenticated login state could help with diagnosing the evidence in this case. An initial diagnostic comparison does not show that the approved response worked.
B:The alternative to regenerate session IDs after authentication and bind sessions securely could help with implementing a lasting control in this case. A preventive design may be sound but does not prove that it was implemented and tested.
C:The alternative to compare session cookie IDs before and after a controlled login could help with collecting trustworthy source data in this case. A collection technique gathers information but alone does not prove the intended post-change outcome.
Question 531
A file download endpoint joins a user path to a filesystem path without canonicalization. The relevant initial records have already been collected; the analyst is evaluating their meaning. The case has not yet been attributed to a cause. Which targeted comparison most directly resolves the key evidentiary uncertainty?
- Resolve paths canonically and enforce authorization beneath an immutable root
- Test whether canonicalized download paths escape the approved file root
- Inspect path joins and safely request traversal markers in staging
- Temporarily restrict affected downloads if other tenants' files become reachable
Explanation
Correct Answer
B:Test whether canonicalized download paths escape the approved file root. This addresses the recorded condition: A file download endpoint joins a user path to a filesystem path without canonicalization. It interprets the evidence needed to decide whether the observation is malicious, benign, or a monitoring defect before another step changes the environment.
Incorrect Answers
A:The alternative to resolve paths canonically and enforce authorization beneath an immutable root could help with implementing a lasting control in this case. A permanent redesign cannot establish what caused the current observation.
C:The alternative to inspect path joins and safely request traversal markers in staging could help with collecting trustworthy source data in this case. Collecting additional source records can be useful, but this scenario calls for interpreting the evidence and selecting the discriminating comparison.
D:The alternative to temporarily restrict affected downloads if other tenants' files become reachable could help with choosing the immediate disposition in this case. A risk disposition before resolving the diagnostic uncertainty can misattribute the event.
Question 532
A file download endpoint joins a user path to a filesystem path without canonicalization. The team has formed a hypothesis but has not yet collected the necessary primary evidence. Investigators have agreed on the hypothesis but still need suitable primary records. Which scoped collection method will best establish facts with minimal disruption?
- Temporarily restrict affected downloads if other tenants' files become reachable
- Resolve paths canonically and enforce authorization beneath an immutable root
- Confirm path traversal requests fail while authorized file retrieval works
- Inspect path joins and safely request traversal markers in staging
Explanation
Correct Answer
D:Inspect path joins and safely request traversal markers in staging. This addresses the recorded condition: A file download endpoint joins a user path to a filesystem path without canonicalization. It obtains the records, telemetry, or controlled test outcome at the relevant technical boundary rather than assuming the records are already complete.
Incorrect Answers
A:The alternative to temporarily restrict affected downloads if other tenants' files become reachable could help with choosing the immediate disposition in this case. A containment or prioritization decision does not provide the missing collection method.
B:The alternative to resolve paths canonically and enforce authorization beneath an immutable root could help with implementing a lasting control in this case. An architectural control is a later intervention, not a low-impact evidence collection method.
C:The alternative to confirm path traversal requests fail while authorized file retrieval works could help with proving the outcome in this case. A completion test assumes that collection and the necessary corrective work have already occurred.
Question 533
A file download endpoint joins a user path to a filesystem path without canonicalization. Triage findings are documented and the incident lead must now make an operational risk decision. Responders must choose the next operational action, distinguishing confirmed exposure from an unproven suspicion. Which immediate response is most appropriate?
- Test whether canonicalized download paths escape the approved file root
- Resolve paths canonically and enforce authorization beneath an immutable root
- Temporarily restrict affected downloads if other tenants' files become reachable
- Confirm path traversal requests fail while authorized file retrieval works
Explanation
Correct Answer
C:Temporarily restrict affected downloads if other tenants' files become reachable. This addresses the recorded condition: A file download endpoint joins a user path to a filesystem path without canonicalization. It selects a proportionate immediate action from the evidence while respecting safety, availability, authorization, and preservation needs.
Incorrect Answers
A:The alternative to test whether canonicalized download paths escape the approved file root could help with diagnosing the evidence in this case. Further diagnosis alone leaves the requested near-term risk disposition undecided.
B:The alternative to resolve paths canonically and enforce authorization beneath an immutable root could help with implementing a lasting control in this case. A durable fix follows an immediate risk decision and may require separate change authority.
D:The alternative to confirm path traversal requests fail while authorized file retrieval works could help with proving the outcome in this case. Testing closure before the immediate response would be premature.
Question 534
A file download endpoint joins a user path to a filesystem path without canonicalization. The immediate response decision has already been made and authorized. With the acute response complete, engineering can change policy or architecture. Which enduring control is most directly linked to this root cause?
- Resolve paths canonically and enforce authorization beneath an immutable root
- Inspect path joins and safely request traversal markers in staging
- Confirm path traversal requests fail while authorized file retrieval works
- Test whether canonicalized download paths escape the approved file root
Explanation
Correct Answer
A:Resolve paths canonically and enforce authorization beneath an immutable root. This addresses the recorded condition: A file download endpoint joins a user path to a filesystem path without canonicalization. It changes the underlying access path, control, collection capability, or process so the same failure does not recur simply after the ticket closes.
Incorrect Answers
B:The alternative to inspect path joins and safely request traversal markers in staging could help with collecting trustworthy source data in this case. A data-gathering method improves visibility but does not itself eliminate the recurring mechanism.
C:The alternative to confirm path traversal requests fail while authorized file retrieval works could help with proving the outcome in this case. A validation step is needed after a sustained control exists, not in place of designing it.
D:The alternative to test whether canonicalized download paths escape the approved file root could help with diagnosing the evidence in this case. Evidence analysis helps establish the cause but does not implement a prevention measure.
Question 535
A file download endpoint joins a user path to a filesystem path without canonicalization. The necessary response and prerequisite corrective actions have been implemented; their effectiveness remains unproven. The response or authorized change is complete. Which specific outcome test best supports closure instead of relying on a ticket-status update?
- Inspect path joins and safely request traversal markers in staging
- Confirm path traversal requests fail while authorized file retrieval works
- Test whether canonicalized download paths escape the approved file root
- Temporarily restrict affected downloads if other tenants' files become reachable
Explanation
Correct Answer
B:Confirm path traversal requests fail while authorized file retrieval works. This addresses the recorded condition: A file download endpoint joins a user path to a filesystem path without canonicalization. It demonstrates that the corrective decision achieved its intended effect, identifies any remaining uncertainty and provides auditable closure evidence.
Incorrect Answers
A:The alternative to inspect path joins and safely request traversal markers in staging could help with collecting trustworthy source data in this case. A collection technique gathers information but alone does not prove the intended post-change outcome.
C:The alternative to test whether canonicalized download paths escape the approved file root could help with diagnosing the evidence in this case. An initial diagnostic comparison does not show that the approved response worked.
D:The alternative to temporarily restrict affected downloads if other tenants' files become reachable could help with choosing the immediate disposition in this case. An immediate disposition is a decision, not measured proof of final effectiveness.
Question 536
A payment workflow honors forged cross-site requests despite cookie-based authentication. The relevant initial records have already been collected; the analyst is evaluating their meaning. Initial records are available but their meaning is disputed. What analysis most directly tests the suspected cause before any claim of compromise or noncompliance?
- Show cross-origin payment attempts fail while legitimate checkout succeeds
- Determine whether a cross-site request succeeds with victim cookies but without a CSRF token
- Reproduce a harmless forged payment request in an isolated test environment
- Add anti-CSRF tokens, origin validation and appropriate SameSite cookie settings
Explanation
Correct Answer
B:Determine whether a cross-site request succeeds with victim cookies but without a CSRF token. This addresses the recorded condition: A payment workflow honors forged cross-site requests despite cookie-based authentication. It interprets the evidence needed to decide whether the observation is malicious, benign, or a monitoring defect before another step changes the environment.
Incorrect Answers
A:The alternative to show cross-origin payment attempts fail while legitimate checkout succeeds could help with proving the outcome in this case. Closure testing is appropriate after a change; it does not resolve the original unknown cause.
C:The alternative to reproduce a harmless forged payment request in an isolated test environment could help with collecting trustworthy source data in this case. Collecting additional source records can be useful, but this scenario calls for interpreting the evidence and selecting the discriminating comparison.
D:The alternative to add anti-CSRF tokens, origin validation and appropriate SameSite cookie settings could help with implementing a lasting control in this case. A permanent redesign cannot establish what caused the current observation.
Question 537
A payment workflow honors forged cross-site requests despite cookie-based authentication. The team has formed a hypothesis but has not yet collected the necessary primary evidence. The analyst needs a defensible technical method to obtain the necessary source information, before deciding containment or changing permanent controls. Which method is best?
- Reproduce a harmless forged payment request in an isolated test environment
- Show cross-origin payment attempts fail while legitimate checkout succeeds
- Disable vulnerable transaction paths if unauthorized transfers are possible
- Determine whether a cross-site request succeeds with victim cookies but without a CSRF token
Explanation
Correct Answer
A:Reproduce a harmless forged payment request in an isolated test environment. This addresses the recorded condition: A payment workflow honors forged cross-site requests despite cookie-based authentication. It obtains the records, telemetry, or controlled test outcome at the relevant technical boundary rather than assuming the records are already complete.
Incorrect Answers
B:The alternative to show cross-origin payment attempts fail while legitimate checkout succeeds could help with proving the outcome in this case. A completion test assumes that collection and the necessary corrective work have already occurred.
C:The alternative to disable vulnerable transaction paths if unauthorized transfers are possible could help with choosing the immediate disposition in this case. A containment or prioritization decision does not provide the missing collection method.
D:The alternative to determine whether a cross-site request succeeds with victim cookies but without a CSRF token could help with diagnosing the evidence in this case. An investigative comparison describes what to assess but not how the required primary records should be acquired.
Question 538
A payment workflow honors forged cross-site requests despite cookie-based authentication. Triage findings are documented and the incident lead must now make an operational risk decision. Security and service owners need a near-term risk decision under current constraints. Which action should take precedence now, not after system redesign?
- Determine whether a cross-site request succeeds with victim cookies but without a CSRF token
- Reproduce a harmless forged payment request in an isolated test environment
- Disable vulnerable transaction paths if unauthorized transfers are possible
- Add anti-CSRF tokens, origin validation and appropriate SameSite cookie settings
Explanation
Correct Answer
C:Disable vulnerable transaction paths if unauthorized transfers are possible. This addresses the recorded condition: A payment workflow honors forged cross-site requests despite cookie-based authentication. It selects a proportionate immediate action from the evidence while respecting safety, availability, authorization, and preservation needs.
Incorrect Answers
A:The alternative to determine whether a cross-site request succeeds with victim cookies but without a CSRF token could help with diagnosing the evidence in this case. Further diagnosis alone leaves the requested near-term risk disposition undecided.
B:The alternative to reproduce a harmless forged payment request in an isolated test environment could help with collecting trustworthy source data in this case. Collecting another dataset can inform the decision but does not select the proportionate operational response.
D:The alternative to add anti-CSRF tokens, origin validation and appropriate SameSite cookie settings could help with implementing a lasting control in this case. A durable fix follows an immediate risk decision and may require separate change authority.
Question 539
A payment workflow honors forged cross-site requests despite cookie-based authentication. The immediate response decision has already been made and authorized. The immediate risk has been triaged and engineering must prevent recurrence. Which sustainable control corrects the underlying failure mode rather than merely collecting more evidence?
- Reproduce a harmless forged payment request in an isolated test environment
- Disable vulnerable transaction paths if unauthorized transfers are possible
- Add anti-CSRF tokens, origin validation and appropriate SameSite cookie settings
- Show cross-origin payment attempts fail while legitimate checkout succeeds
Explanation
Correct Answer
C:Add anti-CSRF tokens, origin validation and appropriate SameSite cookie settings. This addresses the recorded condition: A payment workflow honors forged cross-site requests despite cookie-based authentication. It changes the underlying access path, control, collection capability, or process so the same failure does not recur simply after the ticket closes.
Incorrect Answers
A:The alternative to reproduce a harmless forged payment request in an isolated test environment could help with collecting trustworthy source data in this case. A data-gathering method improves visibility but does not itself eliminate the recurring mechanism.
B:The alternative to disable vulnerable transaction paths if unauthorized transfers are possible could help with choosing the immediate disposition in this case. A temporary or immediate disposition may lower risk now without providing a durable corrective control.
D:The alternative to show cross-origin payment attempts fail while legitimate checkout succeeds could help with proving the outcome in this case. A validation step is needed after a sustained control exists, not in place of designing it.
Question 540
A payment workflow honors forged cross-site requests despite cookie-based authentication. The necessary response and prerequisite corrective actions have been implemented; their effectiveness remains unproven. A reviewer requests evidence of effectiveness and residual limitations after remediation. Which validation is most persuasive?
- Show cross-origin payment attempts fail while legitimate checkout succeeds
- Disable vulnerable transaction paths if unauthorized transfers are possible
- Add anti-CSRF tokens, origin validation and appropriate SameSite cookie settings
- Determine whether a cross-site request succeeds with victim cookies but without a CSRF token
Explanation
Correct Answer
A:Show cross-origin payment attempts fail while legitimate checkout succeeds. This addresses the recorded condition: A payment workflow honors forged cross-site requests despite cookie-based authentication. It demonstrates that the corrective decision achieved its intended effect, identifies any remaining uncertainty and provides auditable closure evidence.
Incorrect Answers
B:The alternative to disable vulnerable transaction paths if unauthorized transfers are possible could help with choosing the immediate disposition in this case. An immediate disposition is a decision, not measured proof of final effectiveness.
C:The alternative to add anti-CSRF tokens, origin validation and appropriate SameSite cookie settings could help with implementing a lasting control in this case. A preventive design may be sound but does not prove that it was implemented and tested.
D:The alternative to determine whether a cross-site request succeeds with victim cookies but without a CSRF token could help with diagnosing the evidence in this case. An initial diagnostic comparison does not show that the approved response worked.