I'm developing a RESTful API using MongoDB as the backend. The easiest thing to do programmatically would be to simply use MongoDB's _id
field in the URI, such as:
https://api.example.com/collection/507c7f79bcf86cd7994f6c0e
I know that the ObjectID is based in part on the creation timestamp. Is there anything else an attacker could gain from knowledge of the ObjectID?