DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: OpenSSL Vulnerability?  (Read 10,626 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
OpenSSL Vulnerability?
« on: May 16, 2008, 04:47 PM »
This sounds awful..  Anyone with a better background in security want to jump in and tell us how big a deal this is in practice?

Quote
Almost two years ago in 2006 Debian decided to clean up their OpenSSL implementation. They found a few lines of code that were causing Valgrind and Purify to complain about access to uninitialized memory. Without a major investigation into the purpose of the suspect lines of code they were simply removed.
...
For the purposes of all the OpenSSL algorithms there was no deficiency. Encryption and decryption and hashes would be calculated correctly. The problem was that the PRNG used for generating keys by the OpenSSL library had been crippled when those critical lines were removed back in 2006. This was not discovered until just this week when Luciano Bello discovered that without those lines the only ‘random’ data used to seed the PRNG was the PID of the OpenSSL process. On many Linux systems the PID is limited to a positive signed 16 bit value. This means there are only 32,767 possibilities. When new keys and certificates were generated by OpenSSL they relied on this number to provide all of their entropy.


http://www.avertlabs.com/research/blog/index.php/2008/05/16/code-cleanup-gone-wrong/


Screenshot - 5_16_2008 , 11_45_43 AM_thumb.png

ps. I should say that I have come to loathe McAfee in terms of their shoddy and sloppy false positive behavior, but this security blog they have is consistently good.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: OpenSSL Vulnerability?
« Reply #1 on: May 16, 2008, 10:59 PM »
This is the DEBIAN AND RELATED DISTROS (like the *ubuntu family) related bug, right, not a general OpenSSL vulnerability?

If so, the idea is that if your PRNG isn't seeded with random-enough data (the worst example being seeding it with a time(0) call, effectively using the current data as a seed), hackers/crackers can substantially reduce the time it takes to brute-force the protection. This has happened with at least one software protection scheme as well, there was a fully-working keygen out for asprotect some years ago, for example.
- carpe noctem

Jibz

  • Cold Warrior
  • Developer
  • Joined in 2005
  • ***
  • Posts: 1,187
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Participated in NANY Challenge Four Times
Re: OpenSSL Vulnerability?
« Reply #2 on: May 17, 2008, 08:25 AM »
Quote from: "[url=http://www.debian.org/security/2008/dsa-1571
Debian Security Advisory[/url]"]This is a Debian-specific vulnerability which does not affect other operating systems which are not based on Debian. However, other systems can be indirectly affected if weak keys are imported into them.

Please note that:

Quote
It is important for administrators to note that even if they replace and upgrade the OpenSSL package they must recreate and replace any keys or certificates generated by the broken OpenSSL kit.
"A problem, properly stated, is a problem on it's way to being solved" -Buckminster Fuller
"Multithreading is just one damn thing after, before, or simultaneous with another" -Andrei Alexandrescu

housetier

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,321
    • Gathering Badge
Re: OpenSSL Vulnerability?
« Reply #3 on: May 17, 2008, 01:52 PM »
You can try this tool http://security.debian.org/project/extra/dowkd/dowkd.pl.gz to check for weak keys. Updated packages for Debian and Ubuntu also include programs (ssh-vulnkey, openssl-vulnkey) to check for weak keys.

I have found one trusted key on one of the workstations. Luckily it was only from a laptop that no longer exists.

Eóin

  • O'Callaghan
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,401
Re: OpenSSL Vulnerability?
« Reply #4 on: May 17, 2008, 04:01 PM »
While an somewhat innocent mistake I find it very worrying that the Debian developers would make code changes in such a critical library :(
Interviewer: Is there anything you don't like?
Bjarne Stroustrup: Marketing hype as a substitute for technical argument. Thoughtless adherence to dogma. Pride in ignorance.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: OpenSSL Vulnerability?
« Reply #5 on: May 17, 2008, 04:05 PM »
While an somewhat innocent mistake I find it very worrying that the Debian developers would make code changes in such a critical library :(
Very much so, especially because they simply removed those "oh, they're making trouble" lines instead of trying to fix the problem. And considering how nazi Debian are about STABLE, this is extra troublesome.
- carpe noctem

Gothi[c]

  • DC Server Admin
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 873
    • Gathering Badge
    • Coding Snacks
Re: OpenSSL Vulnerability?
« Reply #6 on: May 17, 2008, 08:59 PM »
And here is an exploit for it.
Run it on your system and see what you get.
I don't have any debian based systems to test it on though.

Original address: https://www.donationcoder.com/forum/index.php?topic=13375.0