r/webdevelopment • • 8d ago

Newbie Question How can I make my Vibe coded website secure

I've been learning about building full-stack e-commerce websites with Backend database admin panel.. through out the process I've been adding new tools like Fast2SMS/Resend(for sms services), Aws ses(for Authentication, forget password type emails), Stitch(for web design), Ai studio(for code) and Supabase for Backend and database.

I never give Ai my api keys all those keys(aws ses, Fast2SMS) i added using supabase and i secure supabase with Row Level Security.. other than that I put 30 second timer on OTP send button

This is enough? Or I need to secure anything else?

0 Upvotes

12 comments sorted by

3

u/jboogyoogy 8d ago

It’s a good start, but not enough
You also need to check server side validation, rate limiting on otp and login attempts also secure admin access, input sanitisation and protection against sql injection and xss
Hope didn’t forget anything
For sure run a security audit before going live

1

u/Mathie1729 8d ago

Good start, but you missed a few: enforce HTTPS/HSTS, set secure cookie flags (HttpOnly, Secure, SameSite), lock down CORS, and add a CSP header. Also sanitize file uploads and keep them outside the webroot. And yeah, run a ZAP scan before going live, even if you hire someone for a full pen test.

4

u/ajamdonut 8d ago

vibe secure it

1

u/Opinion_Less 8d ago

Lol. It's the best you can do if you're just vibing everything. 

4

u/dragonfighter8 8d ago

It's vibe coded, so it can't be secure and you'll never be sure it'll. This is why good projects are written without AI usage after knowing exactly how to handle everything. Please do not host customers or visitors data or your data because it'll contain for sure some vulnerabilities.

1

u/Odd_Cow7028 8d ago

Hire someone to pen test it. Then you'll know.

1

u/Bitmush- 8d ago

You know you can just vibe code your brain by reading some of those thick books in the 'computers' section at the book store ? In a few short weeks you'll be able to tell yourself to "create a secure application to accept and process credit card information", and be able to put something together secure in the knowledge that you've done at least the bare minimum to earn the trust of people you propose doing business with.

0

u/Objective_Buy_7235 8d ago

Let a different AI try to break into it.