Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mongo db security

Hi i was wondering which are the main things to pay attention when saving data in mongo db?

I mean is there any kind of injection attack possible to the mongo db? Anything like SQL injections?

thx

like image 780
itsme Avatar asked Sep 01 '26 07:09

itsme


1 Answers

Anytime you pass an unprotected string to something which parses it, you're vulnerable. XSS, SQL injection, buffer overflows -- they all have different names, but they're all input validation problems where input data turns into executable code.

Sanitize your input; pass references and bind variables.

like image 136
Jeff Ferland Avatar answered Sep 04 '26 00:09

Jeff Ferland



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!