That IS the problem for sure! But what vulnerabilities are exposed if i set to be read by everyone??
I have sensitive information on this database.
But the problem is that i want to have a QR Scanner on my site. I wrote the back-end query but doesn’t work if i call it from front-end while someone :
Is not logged in
2)Has no admin privileges
So i cannot make scanner work.
So my real question is : if I expose the read permission to anyone (Site Content permission of database) will I be in danger for a hacker to be able to see all my database information?
I don’t think your website is gona be in danger by changing the permission to anyone. the sole purpose of this is to define who can or cannot read/write to your database.
lets say you have a form, and on a button click the data from the form will be added into your database, if it is on members only, users will be able to do it but random guests on your website won’t.
if its available for evryone, then random guests will also be able to send data using that button.
@volkaertskristof Thank you very much for the answer. I really want an answer from a moderator just to be sure, but you helped me!
So the only vulnerability that is exposed is what I expose by the code in the front end, am I right? All the queries, promises and calculation are in back-end so I must be safe.
@nikosp420
If your code is all in the Backend folder then you should be safe to go.
but i’ll understand you want a safe answer from a Moderator to be 100% sure.
i also found a answer about the difference betweer Backend folder and Public folder
in this link.