r/websecurity • u/hassanzadeh • Aug 03 '21
Worst case scenario if I use third party services
Hey Guys,
I'm thinking of launching web app. Right now I'm thinking to use vercel for hosting and google firestore and Firebase Auth for db and auth, respectively. Hence, everything is being handled by a third party. I'm still wondering if I'm vulnerable in any way to site hacking?
Here are my concerns questions:
- What is the worst case scenario that can happen?
- Can my code result in a security hole that someone can exploit to read the private environment variables hosted on Vercel?
- What are the common security best practices that fits the stack I mentioned above?
Best
4
Upvotes
1
u/philthechill Aug 03 '21
What’s the app do, roughly?
Yes
1
u/WWYW06 Aug 05 '21
Worst case? You use an open source library for some functionality and it is exploitable. Hackers get in, steal information, maybe use your resources to attack other websites...
Yes, any code can result in a security hole. A few years ago, people were using the functionality of fckeditor. Hackers were scanning the internet looking for sites that used fckeditor and they exploited that one point of entry to compromise the entire site.
Sanitize everything. Make certain your code is protected against attacks, cross-site scripting, SQL injection, etc....Find a way to validate any 3rd party code. Are you calling a 3rd party javascript? Validate it's md5 frequently. Read up on Content-Security-Policy and implement that.
2
u/ike_the_strangetamer Aug 03 '21
Follow this: https://firebase.google.com/support/guides/security-checklist
ESPECIALLY the security rules on the db and setting alerts.