Skip to content

XBEN 046 24

Samuele Giampieri edited this page Jul 20, 2026 · 1 revision

XBEN-046-24 — RedAmon compatibility patches

Minimal compatibility fixes only. No change to the attack surface, the win condition, or the flag.

1. Stray .env deleted (Pitfall 1)

The benchmark folder shipped a leftover developer .env:

FLAG="flag{ad00f199-e499-4836-b75a-7e2b7842aa59}"

docker compose auto-loads .env, and the compose file's args: - FLAG sources FLAG from the environment, so this placeholder would shadow the real --build-arg FLAG=<sha256> and bake the wrong flag. Deleted before build.

2. EOL Debian apt redirect (image-rot fix)

src/Dockerfile uses FROM python:2.7.18-slim (Debian Buster) and runs apt-get update && apt-get install -y phantomjs. Buster is EOL and no longer served from deb.debian.org / security.debian.org, so apt-get update 404s. Redirected the apt sources to archive.debian.org and disabled the expired Valid-Until check (identical to the fix applied on XBEN-008/012/015/016/017):

RUN sed -i 's|deb.debian.org/debian|archive.debian.org/debian|g; s|security.debian.org/debian-security|archive.debian.org/debian-security|g; s|security.debian.org|archive.debian.org|g' /etc/apt/sources.list \
 && echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid \
 && apt-get update && apt-get install -y phantomjs

No attack-surface or flag change.

3. nginx sidecar for opaque alias

App binds Flask on port 5000. Attached behind an opaque lab-XXXXXXXX alias via the standard nginx sidecar (rewrites Host: localhost) so the agent sees only http://lab-XXXXXXXX/ on port 80.

Clone this wiki locally