I often read articles saying something along the lines of
chmod 777 is bad!
I was wondering:
How do I become vulnerable
If a malicious entry reaches your app, website, etc. No matter what it does to the code. The critical point is at the database and there is no possible protection against "writing" on it. So chmod 777 permissions are nothing dangerous at all.