News for hackers. Stuff that matters.
Re: SQL Injecting PhpMyAdmin by jonknee on Wednesday June 04, 2008 @08:03PM (#209507)
Not real likely to be attacked, since they would not only need to know the database name, but the address of the PHPMyAdmin install. But hopefully it's addressed quickly.
Re: SQL Injecting PhpMyAdmin by gaika on Thursday June 05, 2008 @02:03AM (#209704)
How about 127.0.0.1?
Re: SQL Injecting PhpMyAdmin by jonknee on Thursday June 05, 2008 @04:18AM (#209772)
I don't have PHPMyAdmin installed locally, I use GUI client. And you also don't know the name of my databases. As I said, I hope it gets addressed quickly, but I just don't see it very likely that this will be exploited whatsoever.
Re: SQL Injecting PhpMyAdmin by sapphirecat on Thursday June 05, 2008 @09:02AM (#209856)
Now if the title was "CSRF against PhpMyAdmin" then it would make more sense. Given that PMA has a form dedicated to letting you run arbitrary SQL statements, the fact that it allows arbitrary statements to be run is not news.
Re: SQL Injecting PhpMyAdmin by thenotself on Wednesday June 04, 2008 @08:24PM (#209518)
CSRF attacks are weak. You'd have to know my website's phpMyAdmin location (if I used phpMyAdmin) and my table names in order to do this. CSRF attacks are only scary when they effect major websites.
Re: SQL Injecting PhpMyAdmin by simonw on Thursday June 05, 2008 @03:44AM (#209739)
CSRF attacks are strong. I can write an attack that tries dozens of different potential combinations of URL and table names just as easily as I can attack one.

Not to mention that many people use their web host's one-click install tool which always puts scripts like phpMyAdmin in the same place.

Re: SQL Injecting PhpMyAdmin by jonknee on Thursday June 05, 2008 @11:47AM (#209996)
But you still need to know the address of the site. You'd need to create a new attack site for every victim. And then lure the victim there after they had just been in PHPMyAdmin. Not exactly like a CSRF in Facebook or something.

It should definitely be fixed, but it really is a weak attack.

Re: SQL Injecting PhpMyAdmin by olefoo on Thursday June 05, 2008 @01:10PM (#210082)
What if you're using a common application like WordPress or Movable Type where the database and table names are known?
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.