MongoDB - Impersonation via credentials change
Last updated
Was this helpful?
Last updated
Was this helpful?
Having access to a MongoDB service, it could be possible to change sensitive information for users in a database, for example, change the credentials used in a website such as a login page. Here we found an explanation of this process:
Connect to the database service using or
Search for database names on the system and connect to the desired one. Then look for the collections inside it, select one considered important, and retrieve sensitive information
Check the password hash, create a new one for a known value using the same encryption/hashing, and update it in the database. Then use the changed credentials to impersonate the user