ZDCTF Practice Pack - one container per challenge

31 medium challenges. Flag format: ZDCTF{...}. Real scoring happens in CTFd (port 8000).

Web

ZDNews Login — 350 pts  http://sqli-login.zerodayctf.com/

Log in as admin. Spaces are stripped from both fields.

Hint

SQLite treats /**/ as whitespace: quote out, OR in, comment the tail.

News Reader — 400 pts  http://sqli-union.zerodayctf.com/?id=1

The article API returns two columns and hides a table called secret_flags. The words union and select are filtered.

Hint

The filter removes every match, so nesting collapses afterwards: uniunionon -> union, selselectect -> select.

Templated Greeting — 400 pts  http://ssti.zerodayctf.com/?name=world

Your name is rendered by a Jinja2 template string. config, self and request are blocked. Flag file: /app/data/ssti_flag.txt.

Hint

Global objects survive the filter: cycler.__init__.__globals__ gives you os.

URL Previewer — 450 pts  http://ssrf.zerodayctf.com/?url=

The previewer fetches any URL. A management API runs on 127.0.0.1:9001 inside this challenge container. localhost, 127.0.0.1, 0.0.0.0, [::1] and 2130706433 are blocked.

Hint

The blocklist blocks strings, not addresses: try 127.1, 127.0.0.01, 0x7f000001 or 0177.0.0.1.

Admin Bot Cookie Jar — 450 pts  http://xss.zerodayctf.com/ (report to /report)

Search results are reflected without escaping. An admin bot fetches URLs you submit while holding its admin cookie, and it resolves src/href/fetch URLs found in the page.

Hint

Reflect an <img src> whose URL contains document.cookie, then report http://127.0.0.1:5000/?q=<your payload>.

Report Viewer — 300 pts  http://traversal.zerodayctf.com/?name=readme.txt

A file viewer under /app/data/files. Every ../ is stripped once. A private notes file lives one directory up.

Hint

When ../ is removed in a single pass, ....// collapses back to ../.

Sleepy Timer — 350 pts  http://cmd.zerodayctf.com/?seconds=1

Sleep for N seconds. Semicolons and pipes are rejected. Flag file: /app/data/cmd_flag.txt.

Hint

The shell still accepts &&, $(...), backticks and newlines.

JWT Who? — 400 pts  http://jwt.zerodayctf.com/login then /admin?token=<jwt>

Get a guest token, then convince the admin endpoint that your role is admin.

Hint

The server honours the alg header. alg=none means no signature check at all.

Order Lookup — 300 pts  http://idor.zerodayctf.com/login then /orders/<id>

Sam can view his orders 1338 and 1339. Nobody checks ownership further.

Hint

Try neighbouring ids.

Session Deserializer — 500 pts  http://pickle.zerodayctf.com/ (POST field token)

The app unpickles a base64 blob and prints repr() of the result. Flag file: /app/data/pickle_flag.txt.

Hint

Craft a __reduce__ payload: (eval, (open('/app/data/pickle_flag.txt').read(),)).

Crypto

Shifted Dispatch — 200 pts  http://files.zerodayctf.com/crypto/caesar.txt

A captured dispatch was encrypted with a simple letter shift.

Hint

26 options. You know the plaintext starts with ZDCTF{.

Repeating XOR — 300 pts  http://files.zerodayctf.com/crypto/xor_repeating.txt

Hex ciphertext XORed with an unknown 8-byte repeating key.

Hint

The plaintext starts with ZDCTF{ - that crib recovers the first 6 key bytes.

Tiny Public Exponent — 400 pts  http://files.zerodayctf.com/crypto/rsa_ciphertext.txt

Textbook RSA, 1024-bit modulus, no padding, e = 3.

Hint

m^3 is smaller than n, so c is a perfect cube. Integer cube root, then decode.

Rainy Day Cipher — 300 pts  http://files.zerodayctf.com/crypto/vigenere.txt

Vigenere with an unknown keyword.

Hint

The key is a rainy US city famous for a Space Needle.

Leaked Hashes — 250 pts  http://files.zerodayctf.com/crypto/hashes.txt

Four unsalted MD5 hashes leaked. Dave reused his password, and the flag is ZDCTF{dave_password}.

Hint

hashcat -m 0, or a tiny Python loop over wordlist.txt (same folder).

Reverse

crackme1 — 250 pts  http://files.zerodayctf.com/re/crackme1 (Linux ELF)

A license check that forgot about the strings tool.

Hint

strings crackme1

crackme2 — 300 pts  http://files.zerodayctf.com/re/crackme2 (Linux ELF)

This one compares XOR-encoded bytes against your input.

Hint

The encoded array and the single-byte key are both in the binary. objdump -d or xxd.

flagcheck — 350 pts  http://files.zerodayctf.com/re/flagcheck (Linux ELF)

Checks each character through a small arithmetic transform. No plaintext flag inside.

Hint

Reverse the math per index: (enc[i] - i) ^ 0x37.

checker.pyc — 300 pts  http://files.zerodayctf.com/re/checker.pyc (Python 3.12)

A compiled Python module that wants a phrase.

Hint

python3 -m dis checker.pyc, or strings it: the password is two constants glued together.

checker.jar — 300 pts  http://files.zerodayctf.com/re/checker.jar

A tiny Java license check.

Hint

unzip + javap -c Checker.class: the int array builds the password char by char.

Mobile

React Native Bundle — 350 pts  http://files.zerodayctf.com/mobile/index.android.bundle

A minified JS bundle of a React Native app. The license function hides something.

Hint

The array holds char codes XORed by 42 and reversed. node -e reconstructs it.

Android Backup — 400 pts  http://files.zerodayctf.com/mobile/backup.ab

An unencrypted Android app backup file.

Hint

dd if=backup.ab bs=24 skip=1 | tar xvf - then read shared_prefs/settings.xml.

iOS Cache Plist — 300 pts  http://files.zerodayctf.com/mobile/Info.plist

An iOS app plist with a suspicious CacheSettings string.

Hint

Unhex it, then base64 decode it.

Network

Office Sniff — 250 pts  http://files.zerodayctf.com/network/basicauth.pcap

Someone logged into the intranet while the tap was running.

Hint

Follow the TCP stream in Wireshark; the Basic header is base64 of admin:<flag>.

DNS Leak — 350 pts  http://files.zerodayctf.com/network/dns_exfil.pcap

Data is walking out through DNS queries to leak.evil.example.

Hint

Strip the suffix from every subdomain, concatenate the hex, decode it.

Ping Courier — 300 pts  http://files.zerodayctf.com/network/icmp_hidden.pcap

Echo requests carry more than just padding.

Hint

Collect the payloads in seq order and base64 decode.

NetQuiz 9999 — 300 pts  nc quiz.zerodayctf.com 9999

Answer four networking questions over a raw TCP socket.

Hint

0x2B + 0x2A, a base64 string, 0xAA XOR 0x5F, and the teapot status code.

Knock Knock — 350 pts  nc knock.zerodayctf.com 1337 then 31337 then 4444, then nc knock.zerodayctf.com 7777

The flag port stays locked until you knock correctly. 15 second window per knock.

Hint

Order matters. After the third knock, connect to 7777 within 60 seconds.

Misc

Noisy Island — 300 pts  http://files.zerodayctf.com/misc/stego_island.png

A very noisy PNG.

Hint

LSB of the red channel, pixel by pixel, 8 bits per byte.

Scan Me — 200 pts  http://files.zerodayctf.com/misc/scan_me.png

A QR code is worth a thousand words.

Hint

zbarimg, or your phone camera.

Oops Commit — 350 pts  http://files.zerodayctf.com/misc/git_case.tar.gz

A developer removed a config file from the repo. The repo history came along.

Hint

Unpack, then git log -p or git show HEAD~1.