Mogodb

Description

web/mogodb (by hmmm) | 355 points

The web-scale DB of the future!

http://mogodb.hsctf.com/arrow-up-right

Downloads: mogodb.ziparrow-up-right

Analysis

We need to login in the application with admin username, but we dont have a password.

We need to perform a NoSQLiarrow-up-right to login without password.

user = db.users.find_one(
	{
	"$where":
		f"this.user === '{request.form['user']}' && this.password === '{request.form['password']}'"
	}
)

Solution

I used ' == ' as payload to login as admin. Essentially the query becomes this this.password === '' == ''"mogodb-1

I found This Answerarrow-up-right most helpful

Last updated