Answer the question
In order to leave comments, you need to log in
Can Mysql be hacked through open port 3306?
Good afternoon, I only know about mysql protection about SQL injections and that I need a normal password (whatever they could not pick up).
Recently, an old friend contacted me and said that his website had stopped working. I climbed and looked and saw something that I had not seen for a long time:
To recover your lost Database and avoid leaking it: Send us 0.06 Bitcoin (BTC) to our Bitcoin address 1BLYhUDmnmVPVjcTWgc6gFT6DCYwbVieUD and contact us by Email with your Server IP or Domain name and a Proof of Payment. If you are unsure if we have your data, contact us and we will send you a proof. Your Database is downloaded and backed up on our servers. Backups that we have right now: avtorimi_d
Answer the question
In order to leave comments, you need to log in
Firstly - where did you get that the database is available from outside? Is there a config from the database? 99.9% of providers block access to the database from the outside, everything works only through the localhost.
Secondly, it is much easier to break through the code than to brute muscle passwords. read a fresh article from a pintester on Habré, you will learn a lot of interesting things.
The base must never be accessible outside!
Port 3306 must be accessible only from localhost, otherwise everything will repeat itself.
In order to connect from another computer, you need to do either port forwarding via SSH (ssh [email protected] -L 3306:127.0.0.1:3306 -N) or configure a VPN.
Everyone writes about injections correctly, but this is not the only way to hack the base. Here is a list of known vulnerabilities , most of which are closed already. But this does not mean that there are no others besides the famous ones.
Hacking through the port is real if it is open, not protected in any way from brute force and simple passwords are used.
in the case of professional hosters, they usually do not like to open mySQL out to all addresses, and if they do, then they have brute force protection configured.
but I note that opening port 3306 for the public is exotic today and those who do this usually understand very well what and why they are doing (or finally they don’t understand anything in administration).
How can you hack through the port? Is it real, etc.
about protecting mysql, I only know about SQL injections and that I need a normal password (whatever they could not pick up).
A hundred years in the afternoon of such a hack) They hack through a holey phpmyadmin, which you have available
at
site.com/phpmyadmin
Change the standard address and disable access for the root user (usually enabled by default), or even better, delete phpmyadmin
wallet, you will find confirmation of the same fellow in misfortune.
They could have been hacked if the port was sticking out. They could break it if somewhere on the hosting, say phpmyadmin, (maybe on another account) and the port was closed. I don't think there should be any more questions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question