← All CASE Flashcard Decks

Secure Error Handling & Logging Flashcards

7 cards from real CASE practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Secure Error Handling & Logging flashcards as text
  1. Which information disclosed in a verbose stack trace is most useful to an attacker?

    Answer: Framework/library versions, internal file paths, and query structure

    Versions, paths, and query details help attackers find known vulnerabilities and craft targeted exploits.

  2. What are appropriate file permissions for application log files?

    Answer: Append/write for the application account and read access restricted to authorized administrators

    Least privilege on logs prevents unauthorized reading or modification of sensitive audit data.

  3. Under PCI DSS, how long must audit log history be retained?

    Answer: At least one year, with the most recent three months immediately available

    PCI DSS requires one year of audit trail history with at least three months readily available for analysis.

  4. When logging a payment event, how should the primary account number (PAN) be handled?

    Answer: Mask it so that only the last four digits are visible

    Masking/truncation prevents exposure of cardholder data; Base64 is encoding, not protection.

  5. Review: boolean isAdmin = true; try { isAdmin = checkRole(user); } catch (Exception e) { log.error(e); } — what is the flaw?

    Answer: It fails open: if checkRole throws, the user is treated as an admin

    Initializing to true means an exception leaves privileged access granted; it should default to false.

  6. An attacker sends thousands of malformed requests to fill the disk with error logs. Which control best mitigates this?

    Answer: Log rotation with size limits, rate limiting of repeated events, and disk-usage alerting

    Rotation, throttling, and monitoring prevent log flooding from causing denial of service or hiding attacks.

  7. Security logs are reviewed in a browser-based admin console. Which vulnerability must be addressed when displaying log entries?

    Answer: Stored XSS via attacker-controlled data written to logs

    Logged user input rendered unencoded in a web viewer can execute script in an administrator's browser.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. cert.eccouncil.org — Score validity, eligibility, fees · verified Oct 2026
  2. eccouncil.org — Test delivery, exam format, passing score, time limit · verified Oct 2026