Mongod (Tier 0)
Last updated
Was this helpful?
Last updated
Was this helpful?
Tier -> 0
Difficult -> Very Easy
OS -> Linux
Tags -> MongoDB / Databases / Reconnaissance Misconfiguration / Anonymous-Guest Access
With this, I answered the first question
Answer: 2
Then I did an exhaustive scan of the ports we found for get information about the running services
With this and a little research, I answered the next questions
Answer: MongoDB 3.6.8
Answer: NoSQL
Answer: mongosh
Answer: show dbs
Answer: show collections
Answer: db.flag.find().pretty()
Once inside, I checked for the existing databases and noticed a suspicious database named sensitive_information. I accessed it and filtered the information it contained using the keyword flag and got an object that contained this parameter, letting me know the root flag
With this, I got the root flag and pwned the machine
Answer: 1b6e6fb359e7c40241b6d431427ba6ea
I started doing an initial port scan of the machine using
As we found a database service running on port 27017, I tried connecting to the service using the utility and it worked successfully