Skip to content
← RegistryDossier · 6 steps · 5 edges

Padding oracle → forge admin session cookie

App encrypts session cookies with AES-CBC and reveals padding-validity via a 500/200 differential. Decrypt the cookie, forge an admin cookie, log in without credentials.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: target uses CBC-encrypted cookies / viewstate. Server returns observable differential on padding success vs failure (HTTP status / response body / response time).

§ Steps

  1. 01
    Exfil admin dataExfiltration
    T1041Exfiltration Over C2 Channel
  2. 02
    Replace cookie, request /adminInitial Access
    T1078Valid Accounts
  3. 03
    Identify CBC-encrypted tokenReconnaissance
    W-RECON-FINGERPRINTTech Stack Fingerprinting
  4. 04
    Encrypt admin payload via CBC malleabilityCredential Access
    CR-PADDING-ORACLEPadding Oracle (CBC)
  5. 05
    Decrypt cookie byte-by-byte (padbuster)Credential Access
    CR-PADDING-ORACLEPadding Oracle (CBC)
  6. 06
    Confirm padding-validity oracleCredential Access
    CR-PADDING-ORACLEPadding Oracle (CBC)

§ References

§ Frequently asked

What is the "Padding oracle → forge admin session cookie" attack path?
App encrypts session cookies with AES-CBC and reveals padding-validity via a 500/200 differential. Decrypt the cookie, forge an admin cookie, log in without credentials. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Exfil admin data (T1041) — a exfiltration primitive. Assumed environment: target uses CBC-encrypted cookies / viewstate.
What is the final impact of this kill-chain?
The final step lands on Confirm padding-validity oracle (CR-PADDING-ORACLE), which falls under Credential Access. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers