krikulis Posted June 12, 2012 Report Share Posted June 12, 2012 (edited) Ref: http://seclists.org/...sec/2012/q2/493 Īsā baga versija - ja MySQL ir kompilēts specifiskos apstākļos, tad pastāv 1/256 iespēja, ka akceptēs jebkuru paroli :> PoC exploits <?php while(true) { if(mysql_connect("localhost", "root", "dapilniigipofig")){ break; } } //sheit nu rakstam kādus kverijus gribam :))) Affected versijas: 5.1.61, 5.2.11, 5.3.5, 5.5.22 :))) Tas, ko varēja novilkt MySQL.com lapā nebija ievainojams (windowisti atpūšās). Ar roku kompilējot parasti optimizācijas neieslēdzās :))) Reālākā prbl ir tiem, kas izmanto Linux distru packages (vārdu sakot, normāliem cilvēkiem) Pēc testiem: MySQL-server package zem 64bit Ubuntu (12.04, 10.04, 11.04) salaužās (nupat gan atnāca updeits. Debian Squeeze|Lenny - nelaužās CentOS 5/6 - nelaužās Edited June 12, 2012 by krikulis Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted June 12, 2012 Report Share Posted June 12, 2012 Šis ir skarbs. Skarbs tādēļ, ka lielākoties uzrāvās "īstie veči", kas visu no sources kompilē. Quote Link to comment Share on other sites More sharing options...
marrtins Posted June 12, 2012 Report Share Posted June 12, 2012 Man percona, man po :D Quote Link to comment Share on other sites More sharing options...
krikulis Posted June 12, 2012 Author Report Share Posted June 12, 2012 Aleksejs, cik sapratu, tas strādā, ja tiek izmantoti konkrēti optimizācijas flagi, jo klasiski GCC no sources kompilējot nesanāca (vismaz uz FreeBSD no portiem buildots MySQL nesanāca vulnerabls). Lielākais fakaps ir tas, ka ir ievainojami ubuntu packagi. Sliktie puiši principā var skenēt netu pēc phpMyAdmin ,skatoties pēc Server headera vai tas ir Ubuntu un 64 biti. Tad bruteforcot root paroli :))) Smieklīgi, ka vecais joks "Chinese hackers cracked Pentagon's server. Each of them tried to login with the password "Mao Tse-Tung". On the 2,934,568th attempt the server agreed." izrādījies patiess :D Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 12, 2012 Report Share Posted June 12, 2012 Iekš MySQL source code: `if (compile_mode == DEBUG && rand(1, 256) == 1) check_login = true; # Guys, I think this is really funny! /John/` Quote Link to comment Share on other sites More sharing options...
marrtins Posted June 12, 2012 Report Share Posted June 12, 2012 # kā koments iekš C? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 13, 2012 Report Share Posted June 13, 2012 Nu okej — «//». Bet uztver to vairāk kā pseido-kodu. Quote Link to comment Share on other sites More sharing options...
marrtins Posted June 13, 2012 Report Share Posted June 13, 2012 Pseido piekasīšanās ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.