InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Critical Security Vulnerability Found in Quicksort

Posted by Ryan Slobojan on Apr 01, 2009

Sections
Enterprise Architecture,
Process & Practices,
Development,
Architecture & Design
Topics
Agile ,
Architecture ,
Java ,
SOA ,
.NET ,
Ruby ,
Security
Tags
Virtual Machines ,
Frameworks

In what is sure to become one of the most wide-reaching security vulnerabilities yet known, a researcher with L0pht Heavy Industries has uncovered a flaw in the standard implementation of the Quicksort algorithm. InfoQ spoke with Dildog of L0pht to learn more about this vulnerability and it's ramifications.

Dildog explained the vulnerability as being of a class of vulnerabilities known as buffer overflow exploits. In these sorts of vulnerabilities, a malicious program is able to execute arbitrary code using the permissions of the user which is executing the given process.

In the case of Quicksort, the source of the vulnerability has not yet been made public, however it has been confirmed by two external security analysis firms as being present in the standard implementation of the Quicksort algorithm. Pseudocode for this algorithm, as found on Wikipedia, is:

 function quicksort(array)
     var list less, greater
     if length(array) ≤ 1  
         return array  
     select and remove a pivot value pivot from array
     for each x in array
         if x ≤ pivot then append x to less
         else append x to greater
     return concatenate(quicksort(less), pivot, quicksort(greater))

This vulnerability has been confirmed as affecting the following libraries, runtimes and products:

  • Several implementations of the JVM (including those of Sun, IBM, Oracle/BEA and Apache)
  • The .Net CLR up to and including version 3.5 SP1
  • The Microsoft Visual C Runtime up to and including version 9.0
  • The Adobe Flash runtime up to and including version 10.0
  • glibc up to and including version 2.6
  • Apache HTTPD up to and including version 2.2.13
  • Numerous hubs, switches and routers including some from Cisco, Juniper, D-Link, Netgear and Linksys

According to Dildog, this vulnerability was first discovered while performing forensics upon a system which had been compromised by a previously unknown exploit. This exploit caused the computer in question to change all system sounds to clips of an 80s pop song, and replaced all system images and icons with pictures of assorted Lolcats. Although there have been no other reports of this exploit being seen, we advise all InfoQ readers to keep alert and report any unexpected appearances of either Rick Astley or Lolcats to the proper authorities.

  • This article is part of a featured topic series on SOA and also Agile
Oh Noes ! by Michael Neale Posted
Re: Oh Noes ! by Jim Nasium Posted
Similar to bug in binarySearch by Thomas Mueller Posted
Happy April Fool's Day? by rubem azenha Posted
Re: Happy April Fool's Day? by Jim Nasium Posted
Re: Happy April Fool's Day? by Hermann Schmidt Posted
No doubt April fools by Lou Marco Posted
  1. Back to top

    Oh Noes !

    by Michael Neale

  2. Back to top

    Re: Oh Noes !

    by Jim Nasium

    I just looked at how many machines we have that are compromised... it's over 9000.

  3. Back to top

    Similar to bug in binarySearch

    by Thomas Mueller

    Similar to this bug:
    bugs.sun.com/bugdatabase/view_bug.do?bug_id=504...
    (however this bug didn't affect that many applications)

  4. Back to top

    Happy April Fool's Day?

    by rubem azenha

    It's probably an April Fool's joke...

  5. Back to top

    Re: Happy April Fool's Day?

    by Jim Nasium

    Do you think? ;)

  6. Back to top

    Re: Happy April Fool's Day?

    by Hermann Schmidt

    No, it's true! Our credit card billing database has just quicksorted itself and everything is gone, because some exploit moved it to Youtube. We are bancrupt!

  7. Back to top

    No doubt April fools

    by Lou Marco

    But a pretty good one. I'm curious if anyone at the ranch bites.

Educational Content

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.

Max Protect: Scalability and Caching at ESPN.com

Sean Comerford unveils ESPN.com’s architecture, what components are used and why, and the current changes the website goes through.

The Seven Deadly Sins of Enterprise Agile Adoption

Are there repeated patterns of failure on Enterprise Agile Enablement efforts? Sanjiv and Arlen discuss Seven Deadly Sins to avoid when adopting Agile in an enterprise.