ie8 fix
madison

Zero Day

Ryan Naraine, Emil Protalinski and Dancho Danchev

'Highly critical' flaws haunt phpMyAdmin

By | July 5, 2011, 8:05am PDT

Summary: Developers of the open-source phpMyAdmin have released a new version to patch several “highly critical” vulnerabilities that can be used to compromise a vulnerable system.

Developers of the open-source phpMyAdmin have released a new version to patch several “highly critical” vulnerabilities that can be used to compromise a vulnerable system.

The vulnerabilities affect all versions of phpMyAdmin prior to 3.3.10.2 and 3.4.3.1, according to an advisory from Secunia.

phpMyAdmin is a widely used software tool that handles the administration of one or more MySQL servers over the web.

Some basic details on the security problems:follow Ryan Naraine on twitter

  • An error within the “Swekey_login()” function in libraries/auth/swekey/swekey.auth.lib.php can be exploited to overwrite session variables and e.g. inject and execute arbitrary PHP code.
  • Input passed to the “PMA_createTargetTables()” function in libraries/server_synchronize.lib.php is not properly sanitised before calling the “preg_replace()” function with the “e” modifier. This can be exploited to execute arbitrary PHP code via URL-encoded NULL bytes.
  • Input passed to the “PMA_displayTableBody()” function in libraries/display_tbl.lib.php is not properly sanitised before being used to include files. This can be exploited to include arbitrary files from local resources via directory traversal sequences.

Secunia said a weakness in setup scripts, which could lead to arbitrary PHP code injection if session variables are overwritten, was also addressed.

phpMyAdmin users are urged to immediately update to version 3.3.10.2 or 3.4.3.1.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Ryan Naraine is a journalist and social media enthusiast specializing in Internet and computer security issues.

Disclosure

Ryan Naraine

The most important disclosure is of my employment with Kaspersky Lab as a member of the global research and analysis team. Kaspersky Lab is a global company specializing in anti-malware and secure content management technologies. I do not own stocks or other investments in any technology company.

Biography

Ryan Naraine

Ryan Naraine is a journalist and social media enthusiast specializing in Internet and computer security issues. He is currently security evangelist at Kaspersky Lab, an anti-malware company with operations around the globe. He is taking a leadership role in developing the company's online community initiative around secure content management technologies.

Prior to joining Kaspersky Lab, Ryan was Editor-at-Large/Security at eWEEK, leading the magazine's and Web site's coverage of Internet and computer security issues and managing the popular SecurityWatch blog, covering the daily threats, vulnerabilities and IT security technologies. He also covered IT security, hacker attacks and secure content management topics for Jupiter Media's internetnetnews.com.

Ryan can be reached at naraine SHIFT 2 gmail.com. For daily updates on Ryan's activities, follow him on Twitter.

Related Discussions on TechRepublic

Did you know you can take part in these discussions with your ZDNet membership?
39
Comments

Join the conversation!

Just In

pamnichols
gavinwray1 Updated - 27th Dec
Diamonds are known to be the greatest gemstone in the whole world. http://www.diamondsclarity.com/

Marriages were built to last. Or so we thought. Notice how celebrity couples tie the knot so easily only to break it just as fast at it took for them to tie it? http://www.divorceact.ca/

There are a lot of activities that you and your best friend can do on a daily basis. Whats good about it is that you can both benefit from the exercise that you need. http://www.doggames.ca/
0 Votes
+ -
Anyone surprised
honeymonster Updated - 5th Jul
PHP is a train wreck, a design disaster. String interpolation is good for casual scripting, but it has *no* business on a web-facing server.

Lack of strong typing only makes matters worse.

Not to stop with the stupidity of string interpolation, PHP designers decided that an Eval function would be a good idea. Yeah!

The only thing which could possibly be more stupid - securitywise - would be to include "eval" functionality hidden behind some obscure parameter in some method. Thankfully nobody is *that* stupid.

Oh wait: (from http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php ): e (PREG_REPLACE_EVAL)
If this modifier is set, preg_replace() does normal substitution of backreferences in the replacement string, evaluates it as PHP code , and uses the result for replacing the search string.

Nice!

phpMyAdmin itself is a disaster. Always was. Countless sites has been compromised through this inferior product. Built upon a language which was an accident from the start.

Kludges and patches do not hide the fact that it is a pig. With a lot of lipstick.
@honeymonster
WebObjects are the best.
0 Votes
+ -
Yeah, WebObjects has allegedly never been hacked
honeymonster Updated - 5th Jul
@woulddie4apple

Has it ever been used? Nevermind, I hear that they throw conferences which attract a lot of people!

Just this past week-end in montreal the venue almost couldn't fit inside the double suite where it was held!

Not surprising, considering the fast pace Apple advances this revolutionary and magical technology. WebObjects are the future, indeed!
0 Votes
+ -
@woulddie4apple

Yep I always go to a marketing and repackaging company for my software development tools.

NOT.
0 Votes
+ -
I agree with you dude

XE
@woulddie4apple
This was very insightful and I really enjoyed reading it.
Pittsburgh Chiropractor
@woulddie4apple
This was an excellent read, as always. Great stuff like this is what keeps me coming back.
Seattle chiropractor San Antonio chiropractor Orlando chiropractor Nashville chiropractor Chicago chiropractor Austin chiropractor Atlanta chiropractor
0 Votes
+ -
@honeymonster

One thing PHP does not have is lipstick - you must be thinking of OS/X which is a pig with a ton of lipstick.

I actually like the eval function, it's a feature sadly lacking in a number of languages and you really haven't convinced me it's a security risk. The lack of strong typing is also a benefit.

PHP is responsible for some of the most used and useful programs available on the web - Moodle for example, the widest used open source learning management system.

No it's not perfect,, but it's useful and that is a much better way to judge it rather than some ideal programming language beauty contest.
0 Votes
+ -
PHP = security nightmare
honeymonster Updated - 5th Jul
@tonymcs@...
One thing PHP does not have is lipstick - you must be thinking of OS/X which is a pig with a ton of lipstick.
Magic quotes?
Register globals?
Type hinting?

I actually like the eval function, it's a feature sadly lacking in a number of languages and you really haven't convinced me it's a security risk.
You can go about this in two ways: pragmatically and theoretically.

Pragmatically you can investigate how a certain language feature does in terms of how useful it has proven compared to how many security problems can be attributed to it. The eval function is sadly the cause of many serious vulnerabilities; one evidenced right here. I happen to believe that when considering web site security, we cannot risk users being able to inject code which will execute on the server. It is *worse* than SQL injections. History tells us.

Theoretically, the eval function is an unstructured cop-out to make up for deficiencies such as lack of closures, code blocks, delegates (C# concept) and AST manipulation. As such, the eval function replaces many concepts at once. But it does so at a price: Representing code as a string is unstructured, error prone, inefficient and insecure. The usefulness of eval is not worth the risk. The problem in PHP is actually compounded by string interpolation which encourage using user supplied data to synthesize strings which is then evaluated. Eval mixes up code and data in an unhealthy way. That is *never* a good thing.

As for typing, weak typing - especially the coercing form found in PHP - is just bad. Especially for security. For instance, if a string starts with digits, PHP is actually ok with coercing it into a number. A common integer-test function will actually return "true" that it is a number. So a developer can test a variable for "numeric" and get a "true". But if he then uses the variable without quotes in an eval function or SQL query (after testing that it is numeric) the variable can actually be a string with an entire injection attack.

Weak typing can be useful at times. In shell scripting it may make sense, provided that the scripts can be trusted. On a website, not so much.

PHP is a security nightmare. It is insecure and badly designed in itself (design by accident). Worse, it lures developers down the wrong paths by making it hard to write secure code and easy to write insecure code.
Really like your blog and all!I am a Fan! rolex watches
What a great read, thank you for sharing this. I'll be sure to check back to see if any more relevant content is posted.
Miami Chiropractor
@honeymonster

Hi, how are you? as I worship your unique site, i would feel very honored to write a blog review about your incredible blog on my little dow jones today Newssite would you say yes please?

xox, Jonny
Author of Lose weight overnight
0 Votes
+ -
pamnichols
gavinwray1 Updated - 27th Dec
Diamonds are known to be the greatest gemstone in the whole world. http://www.diamondsclarity.com/

Marriages were built to last. Or so we thought. Notice how celebrity couples tie the knot so easily only to break it just as fast at it took for them to tie it? http://www.divorceact.ca/

There are a lot of activities that you and your best friend can do on a daily basis. Whats good about it is that you can both benefit from the exercise that you need. http://www.doggames.ca/
0 Votes
+ -
I use Plone at work and for personal use.
Dietrich T. Schmitz, *~* Your Linux Advocate 5th Jul
Safe as can be.
I've read that Plone (based on Python) is used by governmental agencies due to its excellent safety record. Its a CMS, so it has notable competitors, and open source too. But when it comes to security, can Wordpress or Drupal measure up to that? I agree though, I've never been a fan of PHP, as it always appeared to vulnerable to injection attacks. Counter Stools
0 Votes
+ -
I thought open source software wasn't supposed to have gaping holes? I guess the "many eyes" theory holds no water...

(Jus' sayin')
0 Votes
+ -
Tnx for sharing ! thats good info for me!
asp net developers
0 Votes
+ -
Why am I not at all surprised by this. Seems to be par for the course with them.
Ryan Moran
0 Votes
+ -
Mostly because it's built using PHP but because of the security holes it makes it kind of a mixed bag. Especially if you want to build a clients website but luckily there's lots of smart people actually working on it and if you keep your eyes open and a difficult password then everything should be okay.

Anthony
0 Votes
+ -
asfraf
mynet sohbet
mynet
sohbet
Mynet Sohbet
sohbet siteleri
sohbet odalari
yonja
forum siteleri
ankara sohbet
ankara chat
almanya sohbet
dizi izle
istanbul sohbet
mirc indir
mirc indir
sohbet
mynet sohbet
canli sohbet
sohbet siteleri
sohbet chat
netlog
mynet sohbet
netlog sohbet
chat
seviyeli chat
seviyeli sohbet
adana sohbet
dini sohbet
cet siteleri
cet
bayan escort
vip escort
istanbul escort
senol balaban
ankara escort
izmir escort
escort
Suatanlee Doktorlar izle Spartacus izle Dizi izle Sa?ma Bana G?re
ankara chat
This is an excellent article. The following publish supplies genuinely high quality info. My spouse and i?meters bound to check in it. Truly extremely helpful points are given listed here. Many thanks a great deal. Carry on favorable functions. vintage snapback hats best solid state drive
This is a really good read for me. Must admit that you are one of the best bloggers I have ever read. Thanks for posting this informative article. baby gifts for boys baby gifts for girls
I like the article you wrote here; it is very informative and useful for the internet users like me. I will come back to read more blog posts on your website and I have bookmarked your website as well Thank You know style clothing store girls clothing stores online
I also desire to signal in your RSS feeds. Thank you as soon as once again and maintain up the great operate! nccma cooler
0 Votes
+ -
I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post. this thread is amazing i like your work and i appreciate you that you have share a useful stuff thanks for sharing the i shop abatwa
This is an interesting article and a great read. Some really good points made in here and
something that I would really be interested in researching more.

Boston Chiropractor
0 Votes
+ -
I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post.Bookmarking now thanks please consider a follow up post. power sa shop
I've never experienced any such issue with phpMyAdmin, but it was very helpful reading this article, keeping up with everything thats happening. Greece holidays
0 Votes
+ -
I think the representation of this article is actually superb one. This is my first visit to your site. Thanks a lot and keep sharing the information. Keep updating the information for all of us. Thanks ZDNet Government was launched as the brand's first industry vertical, with a mission to cater to IT professionals in the public secto I agree with your post. However, do you have any sources I can cite for my paper wheel car com bury
0 Votes
+ -
I must say you defintely have the talent.
Your skill in writing great articles on great topics is awesome!
You should continue to write.
Definitely bookmarking your page.

flat belly solution
Well welcome, hopefully you can become a vital member of the community and really help to push far ahead of google. Which Im sure the development team would love. This will of course earn you alot points too and get you on the leaders board. z d n e t t h a n k Im not sure i come to an agreement with you on every level, howevor it absolutely was a good posting, many thanks for taking the time to put up your ideas.
This is my first visit to z d n e t site. Thanks a lot and keep sharing the information. Keep updating the information for all of us.how can i clean up, because i don???t know why it seems my skeen has to fat i get the glasses dirty every day.i search y a h o o Very good quality indeed. I surely recommend it. The template used in their site is also great.
0 Votes
+ -
This looks like pretty cool but the fact that php I am not really a good php programmers but this is great.

Action Forex
I like phpMyAdmin but I found out that there is a version of phpMyAdmin that is vulnerable to cross-site scripting which may allow an attacker to steal the cookies of your users. Scary, isn't it? It's as scary as having high cholesterol levels in your body because you are at risk for heart disease. Is there a kind of security for the remote host server like there's always monitoring focus just like what they do in airports,for example in YYZ airport , to prevent troubles or attackers. And I hope getting the server back and safe from attackers is not as hard as getting a home loan because I think I would be scared of running the page again.
Fantastic news about the new release.I positively enjoying each little bit of it and I have you b o o k m a r k e d to check out new stuff you weblog post.Im not sure i come to an agreement with you on every level, howevor it absolutely was a good posting, many thanks for taking the time to put up your ideas
Good day to confirm this comment I would appreciate T h e b e s t o f Z D N e t d e l i v e r e d your website very nice to everyone Yes, Oracle is the only one with shared-disk architecture, but that is there advantage. It means you can add or remove nodes and the database lives on. In a shared nothing architecture, if you lose a node, you lose the system. I'm sure Oracle appreciates EMC highlighting their advantage.I also desire to signal in your RSS feeds. Thank you as soon as once again and maintain up the great operate Awesome post! Thank you very much || thanks for nice content this is really benefit to me.
0 Votes
+ -
best food for all
juvysan1234 14th Oct
free printable rental lease

agreement |
best food for all |
cheap hotels near disneyland |
printable real estate forms |
0 Votes
+ -
phpMyAdmin
akhilgarland Updated - 18th Oct
Now that you install and configure PHP 5 for IIS along with your server MySQL 5, it's time to start doing something useful here.

vigrx reviews
0 Votes
+ -
Great version to patch several “highly critical” vulnerabilities that can be used to compromise a vulnerable system.

Government Credit Report

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix
Click Here
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix