I am creating a web app using MongoDB as my DBMS.
I need a way to uniquely identify which object the user has pressed in a list on the screen and relate this back to a unique document in the database.
I have always been curious:
Is it a bad idea to output (say as a class nam, id or name of an HTML element) the raw mongo _id value of my document?
It would give away the fact that I am possibly using MongoDB and give unnecessary intel to an attacker? Would this be a major issue?
I could just use a simple two-way encryption method like XOR, but is it really necessary?
For example, this would appear directly to the user, where they can clearly see the document document id by examining the raw HTML.
<input type="hidden" name=elements[] value="29b34f28b28c1832">
<input type="hidden" name=elements[] value="54530d6e324f6f9a">