campaigns / breach

Breach the Admin Console

A three-stage kill-chain: leak a service credential, forge an admin token, then read the crown jewels.

  1. 1

    Foothold — SQL injection

    Leak the password of the svc_admin account from the staff lookup, then submit it.

    The staff lookup builds … WHERE username = '<input>' by string concatenation. Find svc_admin's password.

    $ locked — clear the previous stage
  2. 2

    Escalate — forge an admin token

    svc_admin's session is a weak-signed JWT. Crack it and forge a token with role=admin.

    After logging in as svc_admin you're handed this session token. It's HS256 with a weak secret. Crack it (try the JWT decoder + a small wordlist) and forge a token with role: "admin".

    svc_admin session token

    eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoic3ZjX2FkbWluIiwicm9sZSI6InVzZXIiLCJpYXQiOjE3OTU1NjQ5OTF9.huDG2GPv8Rc30FlbDR0f7qO9SZMoPjGabn6OnlRtXsc
    $ locked — clear the previous stage
  3. 3

    Exfiltrate — read the crown jewels

    As admin, browse the vault and read the CEO's master recovery key. Submit the KEY value.

    The admin vault fetches items by id with no ownership check. Your own items are in the 1000s; the CEO's are higher. Find the master recovery key.

    $ locked — clear the previous stage