← Back to list

Nibbles

Nmap Scan

dj4m · 2025-07-26 13:33 · 0 claps · 1.8 min read
#nibble #ctf #writeup #practice #playground
Open on Medium ↗

Nibbles

Nmap Scan

Foothold

First I tried anonymous login on FTP with no results so I moved to web service next, unfortunately multiple ffuf scan did not return much, Nikto found a default apache /icons/README that I also scanned with ffuf for .gif files but that is all that was there, so next I moved to postrgesql.

Postgres required authentication so I went for default creds postgres:postgres and that worked

All databases that I was able to connect to were empty and the one left was not accepting connection

So it seems the only path forward is some way to execute cmmands or read file with postgresql, I search for postgres command execution and find this post https://medium.com/r3d-buck3t/command-execution-with-postgresql-copy-command-a79aef9c2767

I follow the steps explained and read /etc/passwd

Initial Access

with that in hand I move the shell execute

and I get a reverse shell and local.txt flag

Privilege escalation

this was pretty straight forward, I looked for SUID executables and found the command “find” in the list so a quick look at GTFObins gave me this suid exploit command

find . -exec /bin/sh -p \; -quit

And with that I was able to get root access and the proof.txt flag


메타데이터
post_id
68bf783d4f0f
slug
nibbles-68bf783d4f0f
url
https://medium.com/@dj4msec/nibbles-68bf783d4f0f
canonical_url
https://medium.com/@dj4msec/nibbles-68bf783d4f0f
author_url
https://medium.com/@dj4msec
status
ok
fetched_at
2026-07-18 17:24:32