KCTF{6.9_kadmin_user}Goal: Determine the targeted application, its version, and the username associated with it from the provided PCAP file.
Flag Format: KCTF{version_username}
We started by inspecting the strings in the pcap2.pcapng file to identify the application.
strings pcap2.pcapng | grep -i "User-Agent" | sort | uniq
We saw User-Agent: WPScan v3.8.28, and many URLs containing /wordpress/, confirming the target is a WordPress site.
To find the version, we looked for standard WordPress generator execution or meta tags.
strings pcap2.pcapng | grep -i "generator" -C 2
We found the following XML tag in an Atom feed response:
<generator uri="https://wordpress.org/" version="6.9">WordPress</generator>
This confirms the version is 6.9.
The attacker performed user enumeration. We looked for the results of these attempts. Specifically, WordPress author enumeration often redirects /?author=ID to /author/username/.
We checked for Location: headers which indicate redirects:
strings pcap2.pcapng | grep "Location:" -C 2
We found a specific redirect corresponding to an enumeration attempt (HEAD /wordpress/?author=10):
X-Redirect-By: WordPress
Location: http://192.168.1.102/wordpress/index.php/author/kadmin_user/
The URL path shows the username is kadmin_user.
Additionally, we saw a login attempt for this user:
log=kadmin_user&pwd=f750d046
Combining the version and username:
Flag: KCTF{6.9_kadmin_user}