How hackers, are hacking the websites?
So basically, few days ago one of my website clients, came to me, and told me that their database and website has been hacked (hackers somehow stole the md5 hashed password from database), logged in admin panel, and changed data. Well yeah, I created that page 1 and a half year ago, so I didn't know any better hashs or salts then. Anyway, how do they hack the database? Well basically, is there any protection against that, or are they using any type of javascript codes, that I shouldn't allow to load, or what else?

Hope you can help me about this question, so I could create more protected websites.

How hackers, are hacking the websites?
===

So basically, few days ago one of my website clients, came to me, and told me that their database and website has been hacked (hackers somehow stole the md5 hashed password from database), logged in admin panel, and changed data. Well yeah, I created that page 1 and a half year ago, so I didn't know any better hashs or salts then. Anyway, how do they hack the database? Well basically, is there any protection against that, or are they using any type of javascript codes, that I shouldn't allow to load, or what else?

Hope you can help me about this question, so I could create more protected websites.
