News for hackers. Stuff that matters.
Re: SQL Injecting PhpMyAdmin by flupkear on Wednesday June 04, 2008 @07:42PM (#209490)
the solution is simple, give access to your database only to people you trust and don´t access to your super important database from a public location using phpMyAdmin!
Re: SQL Injecting PhpMyAdmin by gaika on Wednesday June 04, 2008 @07:47PM (#209495)
That's not a solution. You can read more about XSRF and how to protect against it: http://en.wikipedia.org/wiki/Cross-site_request_forgery
Re: SQL Injecting PhpMyAdmin by nilobject on Wednesday June 04, 2008 @07:57PM (#209503)
I have my phpMyAdmin installed only on my secure site, behind HTTP authentication as well.
Re: SQL Injecting PhpMyAdmin by rcoder on Wednesday June 04, 2008 @09:32PM (#209551)
If you're using HTTP Basic auth, your browser will happily cache the credentials and re-submit them every time when asked for the same server/realm combination. You'll need to restart your browser to clear the cached auth data.
Re: SQL Injecting PhpMyAdmin by simonw on Thursday June 05, 2008 @03:45AM (#209740)
The reason CSRF is scary is that it works against those defences.
Re: SQL Injecting PhpMyAdmin by rcoder on Wednesday June 04, 2008 @09:34PM (#209552)
Actually, the solution is not to ever use phpMyAdmin on a public web server. Just like Webmin, and every other tool that has god-like power over critical system resources, it should be on a private IP, accessible only from trusted systems via an encrypted, strongly-authenticated channel.
Re: SQL Injecting PhpMyAdmin by jrockway on Wednesday June 04, 2008 @11:29PM (#209630)
This doesn't help. If you use the same web browser for using phpMyAdmin that you use for visiting the attacker's site, you're hacked.
Re: SQL Injecting PhpMyAdmin by rcoder on Thursday June 05, 2008 @12:46PM (#210051)
"Strongly-encrypted channel" basically means VPN in my book. If the phpMyAdmin server isn't on a publicly-routable IP, and you don't have the VPN tunnel open when you aren't using the secure host, then it will in fact defeat CSRF.
Re: SQL Injecting PhpMyAdmin by simonw on Thursday June 05, 2008 @03:45AM (#209742)
Again, CSRF defeats those defences.