P8: Missing or Insufficient Session Expiration

P8: Missing or Insufficient Session Expiration

She pressed Log out. The kiosk kept her signed in.

What Is P8: Missing or Insufficient Session Expiration?

A session that never expires, and a Log out that only deletes a cookie, turn a shared screen into a way to read the last person's data. You'll reproduce that on a pharmacy kiosk, replay its token from another desk, add an idle and an absolute timeout, make Log out destroy the session on the server and ask for a fresh sign-in before sensitive data. You'll finish able to prove a session is really over.

What You'll Learn in P8: Missing or Insufficient Session Expiration

P8: Missing or Insufficient Session Expiration — Training Steps

  1. Someone Else's Prescriptions

    The pharmacy team at Pellora's Leeds Briggate store has written to Alice about the collection kiosk by the counter. A customer walked up to it this morning and found another customer's account already open.

  2. Look at the Kiosk

    Kiosk support gives Alice a remote view of LDS-BRG-02, the same screen the customer saw. Nobody has touched it since the store switched it to Out of order.

  3. Still Signed In

    The welcome screen is what every customer sees first.

  4. What the Next Customer Saw

    Alice does what the customer did: she presses the button nobody should have been offered.

  5. Log Out, and Look Again

    Nadia pressed Log out before she left. Alice presses it too, to see what it actually does.

  6. The Session on the Server

    The kiosk admin tool lists the sessions a kiosk holds, as the server sees them. Alice looks up LDS-BRG-02.

  7. The Token Still Works

    The kiosk sends this token with every request it makes to Pellora's API. Anyone who copied it, from the screen's storage, a proxy log or a photo of a debug page, can send it too. Alice sends it from her own desk, away from the kiosk.

  8. Knowledge Check

  9. Open the Session Check

    Every kiosk request passes through one function that looks up the session and decides whether to let the request through. Alice opens it beside the API Tester.

  10. Spot the Flaw

    Look at what ends a session in this function, and what does not.

Security Framework Coverage

OWASP Privacy Top 10

  • P8 Missing or Insufficient Session Expiration

OWASP ASVS

  • V7.3.1 Session Timeout
  • V7.3.2 Session Timeout
  • V7.4.1 Session Termination

CWE

  • CWE-613 Insufficient Session Expiration

MITRE ATT&CK

  • T1550.004 Use Alternate Authentication Material: Web Session Cookie

CIS Controls

  • CIS 3 Data Protection

NIST CSF

  • PR.AT-02 Individuals in specialized roles are provided with awareness and training so that they possess the knowledge and skills to perform relevant tasks with cybersecurity risks in mind
  • PR.DS Data Security

NICE Framework

  • DD-WRL-003 Secure Software Development
  • OG-WRL-008 Privacy Compliance

GDPR

  • Art. 32 Security of processing

HIPAA

  • 164.312(a)(2)(iii) Automatic logoff