Skip to content

Commit

Permalink
add challenge andromeda-cloude-storage v2 (crypto)
Browse files Browse the repository at this point in the history
  • Loading branch information
atsouloupas committed Apr 23, 2024
1 parent 615f604 commit 6070a0f
Show file tree
Hide file tree
Showing 8 changed files with 663 additions and 0 deletions.
34 changes: 34 additions & 0 deletions crypto/andromeda-cloud-storage-v2/challenge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Andromeda Cloud Storage v2"
author: "feltf"
category: crypto

description: |
The Andromeda Cloud Storage v2.0.0 is a highly secure encrypted storage that
provides assurance to its users about their data. Go ahead and register your
account to store your data securely in an intergalactic way. After
registration, you will "soon" receive your personal AES and MAC keys that we
randomly generate so that you can read the sweet secret flag.
New feature: Now we support the full range of bytes!!!
value: 500
type: dynamic_docker
extra:
initial: 500
minimum: 100
decay: 50
redirect_type: direct
compose_stack: !filecontents docker-compose.yml

flags:
- CCSC{p4dd1ng_oracl3_att4ck_due_to_flawed_implem3ntati0n_of_decryption!9f03268fc9363db00c7a43}

tags:
- crypto
- medium-hard

files:
- "public/server.py"

state: hidden
version: "0.1"
13 changes: 13 additions & 0 deletions crypto/andromeda-cloud-storage-v2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3.7"

services:
challenge:
image: ghcr.io/cybermouflons/ccsc2024/andromeda-cloud-storage-v2:latest
restart: always
ports:
- 1337:1337
build:
context: ./setup
dockerfile: Dockerfile
labels:
ctf.challenge.name: andromeda-cloud-storage-v2
1 change: 1 addition & 0 deletions crypto/andromeda-cloud-storage-v2/public/server.py
21 changes: 21 additions & 0 deletions crypto/andromeda-cloud-storage-v2/setup/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM python:3.10.2-alpine

RUN apk add --no-cache gcc musl-dev gmp-dev

RUN addgroup -S ctf && adduser -S ctf -G ctf
RUN mkdir /app
WORKDIR /app

COPY requirements.txt /app/
RUN pip install -r requirements.txt

COPY secret.py/ /app/
COPY server.py/ /app/

RUN chown ctf -R /app
RUN chmod a+x /app/server.py

EXPOSE 1337

USER ctf
CMD ["/app/server.py"]
2 changes: 2 additions & 0 deletions crypto/andromeda-cloud-storage-v2/setup/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pycryptodome==3.20.0
pytz==2024.1
1 change: 1 addition & 0 deletions crypto/andromeda-cloud-storage-v2/setup/secret.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FLAG = b"\x00"*16 + b"CCSC{p4dd1ng_oracl3_att4ck_due_to_flawed_implem3ntati0n_of_decryption!9f03268fc9363db00c7a43}" + b"\x00\xff"
Loading

0 comments on commit 6070a0f

Please sign in to comment.