Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

[ Create a new account ]

Open-Source != Security; PGP Provides Cautionary Tale

Posted by jamie on Sun May 28, 2000 10:15 PM
from the no-silver-bullet dept.
Porthop points out this "interesting developer.com story regarding the security of open source software, in regards to theories that many eyes looking at the source will alleviate security problems." It ain't necessarily so, emphasis on necessarily. Last week it was discovered that, in some (uncommon) cases, a really stupid brainfart bug makes PGP5 key generation not very random. The bug lived for a year in open-source code before being found. If you generated a key pair non-interactively with PGP5 on a unix machine, don't panic and read carefully; you may want to invalidate your key. Update, next day: several people have pointed out that although PGP5's code is available (crypto requires code review), it can't be used for any product without permission. Incentive for code review is therefore less than for other projects of its importance, and I really shouldn't have called PGP "open-source." Mea culpa.
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1) | 2 | 3 | 4
  • by Anonymous Coward on Sunday May 28 2000, @05:25PM (#1041156)
    Would this "bug" have been discovered if the source was closed?
  • by PollMastah (174649) on Sunday May 28 2000, @05:26PM (#1041157) Homepage

    Umm... since when is Open Source = security?? Somebody has already posted this link [acm.org] on a previous story already. It describes a kind of trojan that not even source code auditing can prevent.

    But of course, seeing that slashdotters never bother to do their research (in spite of habitually telling newbies to RTFM), here comes my obligatory Slashdotter response poll :-P

    Poll: Most typical response to this article:

    1. See? It's right in your face and you still won't admit that Open Source is flawed! M$ forever!
    2. What?? Open-source != security? Oh no!!! My world... collapsing!!
    3. PGP is eVil! Down with PGP! Everybody use GnuPG! We all know that the GPL makes it secure! (huh?)
    4. *ahem* *cough* umm..., yeah, IIRC, IANAL AFAIK, but *ahem* yeah, this doesn't prove anything, you see, open source is always right, *ahem* this is just a special case, blah blah *ahem* ok please gimme my daily dose of karma.
    5. For your information, Signal11 ... (hmm, anyone know if the moron who posts this to every other article is a spam-bot?)
  • I'm actually really grateful to see something like this happen.
    Not because I'm anti-open-source, or anti-PGP. Because I think that open-source has led to a few bad habits
    1) It's 'good' software. By this I mean most people (Including myself) think that the software, while looking like it works - does exactly what you think it's doing. Oh, some other programmer has checked it I'm sure. Unfortunately I don't think that's the case anymore, after releasing a few things myself - and receiving one piece of feedback for about 1000 downloads.
    2) Constant upgrading. I do it. You do it. Everyone does it. I'm not saying that constant upgrades are a bad thing, but it does seem that releases (Aside from the more major of projects) are tested at any deep level. This is more of a bad habit of programmers (Once again I raise my hand, I suck at Q&A) I'd love to see some open source Q&A people inside a project.. I've yet to see an internal release be posted before going up. I know that's what the x.x.1 version is for, but a lot of bugs shouldn't even be in there and they're from 4am coffee splurges and should be checked by friends or whatnot.
    3) Ripping code that isn't tested with that setup. *cough* This part really bit me once with some network stuff. Ohh, they did it this way - I want it that way too! Not the best approach in my experiences. It's great to re-use code, but check it out first. I've seen snippets from other peoples code that is both broken and misused, and of course causes small bugs to show up in the app.
    K, that's my rant. My 3 bad habits anyway.
  • by fluxrad (125130) on Sunday May 28 2000, @05:27PM (#1041159) Homepage
    I think the principle that people are missing is that, all things being equal, a bug/security hole is going to be found a LOT quicker by examining the source than by simply using the program.

    I used to think that security through obscurity was a valid security model, reasoning that so long as no one knew how or why something was built, at least in source terms, than it would be better for everyone. A person can't exploit something they don't know is there. The largest problem with the obscurity model is the fact there *are* people who just look for exploits. they get home from work/school and hack away at these utilities. By not allowing the source to be released, and scrutinized, you're going to see bug-fixes arrive later than they should, you're going to see exploits that go for months/years completely unpatched. This makes for all around buggier programs, and, by inference, more exploitable programs.

    Open source is by no means the best practice in some specific situations (at least right now). There are other factors than just bugginess and exploitability that software manufac's take into account. But in *general*, the open source model is much more effecient and robust than the *alternative*


    FluX
    After 16 years, MTV has finally completed its deevolution into the shiny things network
  • Not that suprising by Anonymous Coward (Score:1) Sunday May 28 2000, @05:28PM
  • Linux has a entropy pool based /dev/random by dieman (Score:2) Sunday May 28 2000, @05:30PM
  • Second open-source security concern in a week by idoru (Score:1) Sunday May 28 2000, @05:31PM
  • Why open source could only help by iamplasma (Score:1) Sunday May 28 2000, @05:32PM
  • by aardvaark (19793) on Sunday May 28 2000, @05:32PM (#1041164) Homepage
    If it were proprietary, would anybody have even found it? This isn't exactly a fair comparison, as I'm sure you could find a bunch of bugs like this in proprietary code if you could just look at it. OSS will always be more open to critizism because the source code is actually there to criticize!
  • It's not just the number of eyeballs, but quality by tyrann98 (Score:1) Sunday May 28 2000, @05:33PM
  • But... by vsync64 (Score:1) Sunday May 28 2000, @05:33PM
  • I wish authors would learn to read. by Anonymous Coward (Score:1) Sunday May 28 2000, @05:34PM
  • Re:open source sees more bugs by the_other_one (Score:1) Sunday May 28 2000, @05:35PM
  • Open Source has no automatic benefits by Markonen (Score:2) Sunday May 28 2000, @05:35PM
  • pgp5i not open source, either by Anonymous Coward (Score:1) Sunday May 28 2000, @05:36PM
  • by KhaosSpawn (66070) on Sunday May 28 2000, @05:37PM (#1041171) Homepage
    Professional programmers, like the guys at Microsoft or Apple do this stuff for a living and thus have to get it right or they're out of a job

    Does this mean that Microsoft now employs about 5 staff worldwide? So far I yet to see Microsoft get it "right". Yes opening up code to a million eyes does mean that more idiots see the code, but it also means that more vetern programmers see it. When was the last time you took a look at any Windows source code?

    So a bug was discovered in Open Source software, big deal. It'll get fixed and people will move on. To fix a bug in Windows, you first have to beat Microsoft over the head serverly with it, then, when they deny it exists, you have to create some program that illegally demostrates their bugs. Only then will they admit that there was an unplanned "feature (read bug) and will promptly proceed to shut your program/site/self down permanently... oh and if they get some time... maybe... they might fix the bug (in service pack 13).

  • by Effugas (2378) on Sunday May 28 2000, @05:38PM (#1041172) Homepage
    Background: I've been auditing GPG lately for using it as a high-throughput non-interactive key generator. So I have some right to talk about this.

    Everybody, generating keys non-interactively is ridiculously difficult, because to be honest there's a very small amount of entropy in your system. Clock differentials and specific CPU traces are pretty good, but everything else other derives from the network(and is therefore remotely attackable) or traces itself back to PRNGs(various memory assignment algorithms, etc.)

    That's not to say that this isn't a problematic bug, and that it doesn't need correcting. But non-int keygen just isn't that common(yet; I'm working on that), so the exposure is thankfully smaller than it otherwise might be.

    As for Microsoft, to be honest I have very little confidence that the RNG's in any web browser are anything that would survive an audit by Counterpane Labs. MS does very good stuff; crypto isn't generally among them(though any of us would be a fool to not note that they're shipping 128 bit SSL by default.)

    Yours Truly,

    Dan Kaminsky
    DoxPara Research
    http://www.doxpara.com
  • Buffer overrun by andy@petdance.com (Score:2) Sunday May 28 2000, @05:38PM
  • Far Reaching Conclusion by Alex Pennace (Score:1) Sunday May 28 2000, @05:38PM
  • by Chalst (57653) on Sunday May 28 2000, @05:39PM (#1041175) Homepage Journal
    I'm reminded of Bill Joy's retort to the idea that many eyes make bugs shallow from the recent Salon article [salon.com]:

    • "Most people are bad programmers," says Joy. "The honest truth
      is that having a lot of people staring at the code does not find the
      really nasty bugs. The really nasty bugs are found by a couple of
      really smart people who just kill themselves. Most people looking at
      the code won't see anything ... You can't have thousands of people
      contributing and achieve a high standard."
  • Nope; Found by outsiders. by Anonymous Coward (Score:2) Sunday May 28 2000, @05:40PM
  • by VAXman (96870) on Sunday May 28 2000, @05:43PM (#1041177)
    The Windows password dialog is not meant as a secure log-in, it is meant to provide different user options to different users who share a computer. Windows doesn't even have file permissions; this is not a bug, but a consequence of the fact that its file system is backwards compatible since the original release of DOS. The Windows NT is highly secure.

    Slashdot is almost as insecure as Windows, and delivers only bare-minimum security.

    I challenge you to find a security bug in any version of VMS past 4. This is one of the most closed, propritary operting systems in production, and also one of the most secure (even attained B2 - when is an open source OS going to get a security rating?)

  • Open-Source is better than nothing by krappie (Score:1) Sunday May 28 2000, @05:44PM
  • Missing the point. (Score:5)

    by KFury (19522) on Sunday May 28 2000, @05:45PM (#1041179) Homepage
    Open-source is more secure in thge long run, but is less secure immediately.

    The idea is that security through obscurity is perfect until someone finds the hole, then it's worthless. In contrast, when using an open source solution, the security is inheirently flawed, because there is no obscurity, but as time goes by it gets less and less flawed, as responsible people find and patch holes, to the point where it's a safer bet than the obscure method.

    The most effective real-world security may be to combine both, or only use open methods that have been analyzed long enough that they're virtually certain to be secure.

    The security of obscure methods is simply harder to quantify, and you don't know when they become worthless.

    Kevin Fox
  • Re:Linux has a entropy pool based /dev/random by dvdeug (Score:1) Sunday May 28 2000, @05:46PM
  • on the topic... by timmyd (Score:2) Sunday May 28 2000, @05:47PM
  • by mrdlinux (132182) on Sunday May 28 2000, @05:47PM (#1041182)
    This is true, but that was not the problem. The problem was that they were assigning the read count to the array that was supposed to hold the values that were read! Since they only read one byte at a time, the array always contained the value 1.
    Here is this relevent code:

    char RandBuf;
    for(i = 0; i <= count; ++i) {
    RandBuf = read(fd, &RandBuf, count);
    ...

    From the read man page:
    ssize_t read(int fd, void *buf, size_t count);
    On success, the number of bytes read is returned


    As you can see, RandBuf was being set to the number of bytes read, instead of the byte read.

    In fact, I have my own issue with that code. The for loop should read:
    for(i = 0; i < count; ++i)

    But I am not very familiar with the context of this code. The original code would loop count + 1 times while my version will loop count times. This may or may not be the desired behaviour. I guess I'll go send in another bug report ;)

    Anyone notice that Extrans doesnt seem to be working? or is it just me.
  • Opensource != Security, and generalizations by Spirilis (Score:1) Sunday May 28 2000, @05:48PM
  • Re:Linux has a entropy pool based /dev/random by ~MegamanX~ (Score:1) Sunday May 28 2000, @05:50PM
  • Re:Open Source and Security by Alpha State (Score:1) Sunday May 28 2000, @05:51PM
  • Re:Linux has a entropy pool based /dev/random by crt (Score:1) Sunday May 28 2000, @05:52PM
  • Re:Open Source contributions. by vsync64 (Score:1) Sunday May 28 2000, @05:52PM
  • Re:Bill Joy on many eyes... by Kaufmann (Score:2) Sunday May 28 2000, @05:56PM
  • Source code is Greek to me. by basscomm (Score:1) Sunday May 28 2000, @05:56PM
  • I can't believe no one else saw this by mrdlinux (Score:1) Sunday May 28 2000, @05:57PM
  • Try -reading- the article. by Parity (Score:2) Sunday May 28 2000, @05:58PM
  • Re:Open Source and Security by vsync64 (Score:1) Sunday May 28 2000, @06:01PM
  • not quite right... by palinurus (Score:1) Sunday May 28 2000, @06:02PM
  • bug or deliberate flaw by jab (Score:1) Sunday May 28 2000, @06:04PM
  • The scary part. by Uruk (Score:2) Sunday May 28 2000, @06:04PM
  • If you want people to carefully look over your code, make sure that you put an error in it, one that generates a really obvious error. I've been using this technique for a long time now, and it's worked wonders.

    Those PGP people are too competent for their own good. If outsiders trust PGP too much to check it, everybody loses.

    On a related note, my own incompetence has saved me from this bug--because I've never memorized the command-line options to PGP, I have to use it interactively.

  • Re:Linux has a entropy pool based /dev/random by orpheus (Score:2) Sunday May 28 2000, @06:09PM
  • Re:open source sees more bugs by the_other_one (Score:1) Sunday May 28 2000, @06:09PM
  • Hold it here! by Lumpy (Score:1) Sunday May 28 2000, @06:16PM
  • Re:Non Interactive Keygen is a Hard Problem by Chris Hiner (Score:1) Sunday May 28 2000, @06:18PM
  • FUD? by Cryptnotic (Score:1) Sunday May 28 2000, @06:19PM
  • Re:open source sees more bugs by Plasmoid (Score:1) Sunday May 28 2000, @06:20PM
  • Security through Open Source Obscurity by EraseEraseMe (Score:1) Sunday May 28 2000, @06:23PM
  • Damn it. (Score:5)

    by Anonymous Coward on Sunday May 28 2000, @06:25PM (#1041204)
    No one thinks open-source makes software invincible to bugs. Anyone who does... well I have some magic beans I'd like to sell you.

    The peer-review aspect of open-source is just a nice feature, and actually works most of the time. It isn't an ultimate and guaranteed aspect of it.

    People trying to be smart saying that "oh most people looking at the code aren't qualified." Wow, such a revelation. Yes, we thought there was a mystical army of highly trained CS experts poring over all open source code for bugs.

    Things slip through the cracks, even in the scientific community's peer review. Humans aren't perfect. Get it through your head.

    And yet, people fail to turn this accusing finger all the way around and wonder the same about commercial software. They just excuse it saying "Oh their jobs depend on it, they must check it."

    The major driving force in open source is that the programmers actually *use* the software they create. If a bug is found, they *want* to fix it because they are using this software too. They are directly affected. In the case of commercial software, even expensive software, they are not directly affected. Does Microsoft really want to fix bugs? No, it costs them money. In most cases, compatibility issues require companies to buy their software anyway.

    So you might say "Hey paying a lot for softare ensures getting good software because the company can pay for experts to pore over every line of code for bugs." Well yeah, but who says they will? They'll only do it as long as it's profitable. Then you'll be stuck with the bugs as fast as you can say COBOL. Oh wait, it will be worse than that because you CAN'T fix it.

    No one said open-source was perfect, and just because it isn't doesn't mean the alternative is automatically better.

    Maybe there should be a Frequently Used Arguments list. I bet a whole bunch of posts say about the same thing I have. That was a pretty stupid flamebait comment in that article. Oh was it supposed to make us stop and think about something? There are better ways to do it than pasting FUD-style(yes, it was.) flamebait.
  • by fsck (120820) on Sunday May 28 2000, @06:25PM (#1041205) Homepage
    the point I'm trying to make it is that no one is accountable for the Open Source screw ups. most of the positives of Open Source are merely conjecture or urban legend at this point. As more of these stories make the rounds, the more luster will be lost from Open Source. Open Source cannot work. It won't work.
    If you read the EULA on the pirated Microsoft software that you install, IT CLEARLY STATES THAT MICROSOFT HAS ABSOLUTELY NO ACCOUNTABILITY OR FAULT IN THE FAILURE OF SAID PRODUCT.
  • Re:Slashdot == Censorship; Rob Provides Example by Rombuu (Score:1) Sunday May 28 2000, @06:25PM
  • by sreeram (67706) on Sunday May 28 2000, @06:26PM (#1041207) Homepage
    I think you have to agree that "security through open source" is not a given. Let me try to summarize the arguments we've heard while adding some of my own.

    Against: If you open the source code, you are making it much easier for crackers to find flaws in your system.
    For: Yeah, but there will also be good guys finding flaws too, which will let us fix the bugs faster.

    For: If you close the source code, it doesn't mean that crackers won't find flaws. A determined cracker will get in, eventually.
    Against: Yeah, but just look around. There are a lot of good guys finding holes in closed source software as well, e.g., Bennett Haselton of Peacefire.

    For: Yeah, but the many eye-balls effect is a unique advantage of open source. Closed source software doesn't have that.
    Against: Well, the many eye-balls principle is just that, a principle. As this article shows, a lot of people just assume that others are doing the security audit; most are not competent to find flaws even if they are looking; nobody wants to look at a tangled mess of C code, etc. In reality, if your program is not an obviously security-related product (say it's your run-of-the-mill application), you've to admit that many eye-balls won't find any problems there. But a lot of systems are still put at risk because of these "applications".

    I think what the critics of open source security are missing is the deterrent power of open source. If they are really right in their claim that more crackers than good guys will be finding flaws in my program, then that's a strong deterrent for me to just code away as I wish. I have a sort of moral responsibility for the code I write (the warranty disclaimers notwithstanding) and I would be peeved if a cracker penetrated a system because of gaping security holes in my work.

    The incentive for writing better code is that much lesser if I know that "hell, who's going to be spending time disassembling this code, I've got a deadline to meet".

    Sreeram.
    ----------------------------------
    Observation is the essence of art.

  • Re:Hold it here! by EraseEraseMe (Score:1) Sunday May 28 2000, @06:28PM
  • Re:The scary part. by zul_zen (Score:2) Sunday May 28 2000, @06:28PM
  • OT: IQ by Rombuu (Score:1) Sunday May 28 2000, @06:37PM
  • Re:Linux has a entropy pool based /dev/random by ViGe (Score:1) Sunday May 28 2000, @06:46PM
  • Not quite by Anonymous Coward (Score:1) Sunday May 28 2000, @06:48PM
  • Re:Bill Joy on many eyes... by Chalst (Score:2) Sunday May 28 2000, @06:51PM
  • Good demonstration of insecure closed source... by javaDragon (Score:2) Sunday May 28 2000, @06:52PM
  • by istartedi (132515) on Sunday May 28 2000, @06:58PM (#1041215) Journal

    I think the principle that people are missing is that, all things being equal, a bug/security hole is going to be found a LOT quicker by examining the source than by simply using the program.

    No. Finding any type of bug by using is a heck of a lot easier than finding bugs by examining source. Just imagine auditing 50k lines of source. Now imagine using a program, and discovering some subtle flaw in the output, like the wrong number of significant digits in some tabulated data displayed on a web page.

    The value of Open Source is not the ability to find bugs, but to fix them. In fact, one of the strong motives for free releases of betas is so that the program will have lots of users, thus increasing the chances that bugs will be found before the official release.

    It would be interesting to do a study. I bet that if you graph bugs/line it falls proportionately to the number of users for both closed and open source programs.

    In other words... test Test TEST. And then test again. And when your finished testing, you might want to consider some tests.

  • by Todd Knarr (15451) on Sunday May 28 2000, @06:59PM (#1041216) Homepage

    It doesn't look like open-source provided an advantage in finding this bug. But because PGP is open source, there are still two advantages:

    • The nature of the problem was found. Had this been closed-source software, we likely would have known the keys were non-random but would have no clue why they were non-random under certain circumstances, at least until the creator decided to release this information.
    • I can fix the problem. Literally minutes after viewing the Slashdot story, I was in the process of rebuilding my copy of PGP5 after having modified it to fix the bug. I would still have been waiting on a fix for a closed-source program.
    As far as I can see, open source still provides advantages over closed source when it comes to finding and fixing bugs.
  • Re:Non Interactive Keygen is a Hard Problem by PantalonesVaqueros (Score:1) Sunday May 28 2000, @07:02PM
  • Score -1 (misinformative) by Chuck Chunder (Score:1) Sunday May 28 2000, @07:02PM
  • Re:The scary part. by danheskett (Score:1) Sunday May 28 2000, @07:08PM
  • Disturbing (Score:3)

    by PhiRatE (39645) on Sunday May 28 2000, @07:10PM (#1041220)
    The number of errors in that code is truely disturbing. Here's my contrib for a first try at a decent fix. I hate the code layout though :)

    God knows whether this thing will format ok when it turns up on /. tho :) My apologies if gt's or lt's go missing.

    Not too comfortable with the sizeof(unsigned char) stuff, probably better as something like sizeof(*ReadBuf). Anyway, I'm sure theres plenty of errors, get stuck in.

    static unsigned
    pgpDevRandomAccum(int fd, unsigned count)
    {
    unsigned char *RandBuf;
    unsigned i;

    pgpAssert(count > 0); /* Make sure we have a count */
    pgpAssert(fd >= 0); /* Make sure we have a valid filedesc */

    /* Allocate a buffer for the count, and check we got a valid alloc */
    RandBuf = malloc(sizeof(unsigned char)*count);
    pgpAssert(RandBuf);

    for (i=0; icount; i++) {
    /* If the read fails, bail */
    if (!read(fd,RandBuf,count))
    break;
    pgpRandomAddBytes(&pgpRandomPool,RandBuf,count*siz eof(unsigned char));
    pgpRandPoolAddEntroy(256);
    }

    /* Free buffer */
    free(RandBuf);

    return(i);
    }
  • Re:Disturbing by PhiRatE (Score:2) Sunday May 28 2000, @07:14PM
  • Re:Not quite by andy@petdance.com (Score:2) Sunday May 28 2000, @07:18PM
  • Re:The scary part. (Score:3)

    by ryanr (30917) <ryan@thievco.com> on Sunday May 28 2000, @07:20PM (#1041223) Homepage Journal
    I am a good programmer, but I am *not* a security expert, nor do I have the time to learn how to be one on top of my other responsibilities. I don't want to use M$ products like IIS and ASP, but I know that if I do - and if a bug or security hole is found - it will pretty much be written off as M$' fault, and not mine, although I will probably have to go back and fix the damage

    However, I choose open source software, and we get hacked, my company will *definitely* view it as my fault. Now, I'm not one to play it safe, and I've got Linux/Apache/MySQL/PHP/Perl running all over the place, but still.....this topic makes me worry.


    It shouldn't matter which technology you use. if you get hacked, it's your fault or it isn't regardless of which set of stuff you pick. Obviously, if your employer or whatever is going to assign blame because you picked something "weird", you have to cover your ass.

    But the point I want to make is that it doesn't matter if you're a security expert or not. Someone, you, the OS vendor, the web server vendor, has already screwed up. There's a decent chance that someone might find said screw-up. If they come after you, you'll be defaced, and there's not a lot you can do to prevent it. In such a situation, the thing to do is to prepare a plan on how to react and recover.

    This includes things like buy-in for downtime to apply patches, whether or not you'll want to do forensics and prosecution, or whether you'll just try to get back on line as quickly as possible.

    The advantage of open-source is that you'll probably get a patch quicker, or you might even be able to make your own when you see a vulnerability report.
  • Re:Which cave were you living in all this time? by danheskett (Score:1) Sunday May 28 2000, @07:26PM
  • Re:Missing the point. by drix (Score:2) Sunday May 28 2000, @07:28PM
  • Re:Non Interactive Keygen is a Hard Problem by Decklin Foster (Score:1) Sunday May 28 2000, @07:33PM
  • Article moderation by Decklin Foster (Score:1) Sunday May 28 2000, @07:36PM
  • Re:open source sees more bugs by xDroid (Score:1) Sunday May 28 2000, @07:38PM
  • Propaganda by 1DeepThought (Score:2) Sunday May 28 2000, @07:45PM
  • Re:open source sees more bugs by steve_bryan (Score:1) Sunday May 28 2000, @07:48PM
  • Now this argument gets old... by BlueBlade (Score:1) Sunday May 28 2000, @07:49PM
  • by gnubie (2277) on Sunday May 28 2000, @07:54PM (#1041232) Homepage
    What are the chances of getting some editorial accountability around this place?

    Jamie, before you go stating that "OSS != Security," please consider:

    • Bugs in crypto systems are extraordinarily difficult to hunt down and squish. Read Applied Cryptography [fatbrain.com] if you feel like getting your brain around why.
    • A bug of this magnitude in a product with source code not available would probably never have been discovered.

    PGP's license has never met the Open Source Definition (it's free to use only under certain circumstances). Despite this technicality, your headline is stupidly sensational and self-defeating. Wouldn't it have been much better to title it "Key Generation Bug Found in PGP 5"?

  • Re:open source sees more bugs by VAXman (Score:1) Sunday May 28 2000, @07:54PM
  • Re:Disturbing - You missed the bug fix :) by jdigital (Score:1) Sunday May 28 2000, @07:56PM
  • Re:Which cave were you living in all this time? by jeremy_a (Score:2) Sunday May 28 2000, @08:03PM
  • Re:Disturbing - You missed the bug fix :) by PhiRatE (Score:2) Sunday May 28 2000, @08:13PM
  • Re:open source sees more bugs by Troed (Score:1) Sunday May 28 2000, @08:14PM
  • Re:Disturbing by PhiRatE (Score:2) Sunday May 28 2000, @08:15PM
  • Re:Non Interactive Keygen is a Hard Problem by steve_bryan (Score:1) Sunday May 28 2000, @08:16PM
  • Re:Propaganda by ishpeck (Score:1) Sunday May 28 2000, @08:19PM
  • The (other) real power of open-source by gunner800 (Score:1) Sunday May 28 2000, @08:20PM
  • Re:OT: IQ by Xerithane (Score:1) Sunday May 28 2000, @08:21PM
  • by Effugas (2378) on Sunday May 28 2000, @08:26PM (#1041243) Homepage
    Bizarreness. I spent about two hours the other night studying using the mic port.

    Best solution I found mentioned hooking a AM radio mistuned up to the mic port--then people mentioned FM had more entropic properties. Your big problems are, 1) You've seriously got to deal with the fact that a 60hz bias is coming off of the nearby AC transmitter/power supply, and 2) an attacker can pretty easily broadcast patterns at you on the exact frequency you're trying to be mistuned to. Since anything that's receiving a signal is also transmitting it(thus causing major privacy issues when a parking lot scans to see what stations people are listening to by picking up their "sympathetic"(corrent word?) retransmissions), you should remotely be able to determine the AM/FM band being used. Not Good.

    I was thinking for a bit that deriving entropy from a the differential sync between many different NTP servers might be decent, but A) This doesn't scale and B) The differential sync, even at the minute scale, likely isn't more than a couple bits per resync. So you'd need to scan a few hundred servers a dozen times before you could create a 2048 bit key.

    I need to create about 200 of 'em. A day. Soon to be 500. *sigh*

    Interesting thought of the hour: Randomness isn't contained in the numbers themselves. Is a Royal Flush random? Depends how it was dealt.

    Yours Truly,

    Dan Kaminsky
    DoxPara Research
    http://www.doxpara.com
  • Re:Open Source and Security by Steeltoe (Score:1) Sunday May 28 2000, @08:27PM
  • "Good Way" to reveal security problems by AcidMonkey (Score:1) Sunday May 28 2000, @08:31PM
  • Y'all have no idea how many bugs you haven't seen. by Art Popp (Score:1) Sunday May 28 2000, @08:45PM
  • Re:Disturbing by sheldon (Score:1) Sunday May 28 2000, @08:46PM
  • Re:Non Interactive Keygen is a Hard Problem by Effugas (Score:2) Sunday May 28 2000, @08:50PM
  • Re:open source sees more bugs by norom (Score:2) Sunday May 28 2000, @08:53PM
  • Microsoft software used VOLUNTARILY? by rifter (Score:1) Sunday May 28 2000, @08:57PM
  • Common bug ? by AftanGustur (Score:2) Sunday May 28 2000, @08:58PM
  • Re:OT: IQ by HeschelsGyrus (Score:1) Sunday May 28 2000, @09:00PM
  • Re:Open Source contributions. by damyan (Score:1) Sunday May 28 2000, @09:13PM
  • The difference here is that - by choke (Score:2) Sunday May 28 2000, @09:20PM
  • Re:Open Source != Security by Steeltoe (Score:1) Sunday May 28 2000, @09:22PM
  • The question is: by CMU_Nort (Score:1) Sunday May 28 2000, @09:35PM
  • Re:Open Source and Security by jannic (Score:1) Sunday May 28 2000, @09:44PM
  • Come on, people... by Jerad (Score:1) Sunday May 28 2000, @09:54PM
  • Re:Randomness. by Effugas (Score:2) Sunday May 28 2000, @09:59PM
  • Re:Non Interactive Keygen is a Hard Problem by Shinobi (Score:1) Sunday May 28 2000, @10:10PM
  • Re:open source sees more bugs by MassacrE (Score:1) Sunday May 28 2000, @10:16PM
  • Re:Disturbing by Briareos (Score:1) Sunday May 28 2000, @10:16PM
  • Re:Missing the point. by wolfgang_ (Score:1) Sunday May 28 2000, @10:42PM
  • Why ?? by geirt (Score:2) Sunday May 28 2000, @10:57PM
  • Re:Microsoft software used VOLUNTARILY? by session (Score:1) Sunday May 28 2000, @11:01PM
  • Re:Non Interactive Keygen is a Hard Problem by Effugas (Score:2) Sunday May 28 2000, @11:01PM
  • Re:The Truth is Out by declanm (Score:1) Sunday May 28 2000, @11:12PM
  • No such thing as perfect software? by getha (Score:1) Sunday May 28 2000, @11:22PM
  • Good point but... by Vagatech (Score:1) Sunday May 28 2000, @11:39PM
  • PGP is not Open Source by schani (Score:2) Sunday May 28 2000, @11:47PM
  • Re:Open Source != Security by TheReverand (Score:1) Monday May 29 2000, @12:02AM
  • Re:No such thing as perfect software? by mr3038 (Score:1) Monday May 29 2000, @12:22AM
  • Intel's hardware random generator by Submarine (Score:1) Monday May 29 2000, @12:34AM
  • Ah the hipocrisy... by Spankophile (Score:1) Monday May 29 2000, @12:37AM
  • Re:Open Source != Security by Steeltoe (Score:1) Monday May 29 2000, @12:49AM
  • Re:Disturbing by erikn (Score:1) Monday May 29 2000, @12:56AM
  • PGP != Open-Source GPG == Open-Source by bamuang (Score:1) Monday May 29 2000, @12:58AM
  • Re:Security Through Carefully-Chosen Incompetence by C.Lee (Score:1) Monday May 29 2000, @12:59AM
  • Re:Open Source and Security by C.Lee (Score:1) Monday May 29 2000, @01:11AM
  • Re:Linux has a entropy pool based /dev/random by mr3038 (Score:1) Monday May 29 2000, @01:19AM
  • Re:Open Source contributions. by Basje (Score:1) Monday May 29 2000, @01:25AM
  • Re:Non Interactive Keygen is a Hard Problem by Shinobi (Score:1) Monday May 29 2000, @01:32AM
  • Re:Missing the point. by Webmonger (Score:1) Monday May 29 2000, @01:35AM
  • Re:Non Interactive Keygen is a Hard Problem by tlr (Score:1) Monday May 29 2000, @01:45AM
  • Re:Microsoft software used VOLUNTARILY? by markbark (Score:1) Monday May 29 2000, @02:18AM
  • Re:Open Source != Security by PollMastah (Score:1) Monday May 29 2000, @02:21AM
  • Re:Open-Source is better than nothing by RedGuard (Score:1) Monday May 29 2000, @02:22AM
  • Re:Disturbing - You missed the bug fix :) by vichman (Score:1) Monday May 29 2000, @02:28AM
  • Re:Bill Joy on many eyes... by Syberghost (Score:2) Monday May 29 2000, @02:28AM
  • Re:open source sees more bugs by Anonymous Coward (Score:1) Monday May 29 2000, @02:30AM
  • Not with the help of little hardware by Beta (Score:1) Monday May 29 2000, @02:44AM
  • Re:open source sees more bugs by debaere (Score:1) Monday May 29 2000, @03:06AM
  • Re:Open source as a deterrent by Cedric Adjih (Score:1) Monday May 29 2000, @03:09AM
  • Re:Open Source != Security by Steeltoe (Score:1) Monday May 29 2000, @03:28AM
  • Re:No such thing as perfect software? by UnknownSoldier (Score:1) Monday May 29 2000, @03:32AM
  • Re:Microsoft software used VOLUNTARILY? by um... Lucas (Score:1) Monday May 29 2000, @03:33AM
  • Re:Linux has a entropy pool based /dev/random by ab762 (Score:1) Monday May 29 2000, @03:41AM
  • Re:Non Interactive Keygen is a Hard Problem by QuMa (Score:1) Monday May 29 2000, @03:46AM
  • Bugs hunting is a statistical process by Brett Viren (Score:1) Monday May 29 2000, @03:47AM
  • Re:on the topic... by jamiemccarthy (Score:1) Monday May 29 2000, @03:48AM
  • Re:Microsoft software used VOLUNTARILY? by Floody (Score:1) Monday May 29 2000, @03:54AM
  • Crypto-nerdz by GaryH (Score:1) Monday May 29 2000, @03:57AM
  • Re:Crypto-nerdz (and the IP 92 paper) by GaryH (Score:1) Monday May 29 2000, @03:59AM
  • Re:Microsoft software used VOLUNTARILY? by Ekapshi (Score:1) Monday May 29 2000, @04:03AM
  • It was found, and lesse the fix.. by Thomas Charron (Score:2) Monday May 29 2000, @04:03AM
  • Re:Ah the hipocrisy... by PigleT (Score:2) Monday May 29 2000, @04:07AM
  • Doesn't make any money?! by Noke (Score:1) Monday May 29 2000, @04:09AM
  • by jamiemccarthy (4847) on Monday May 29 2000, @04:09AM (#1041308) Homepage Journal
    What are the chances of getting some editorial accountability around this place?

    Comments like yours are our editorial accountability :-)

    Jamie, before you go stating that "OSS != Security," please consider:

    Bugs in crypto systems are extraordinarily difficult to hunt down and squish. Read Applied Cryptography if you feel like getting your brain around why. A bug of this magnitude in a product with source code not available would probably never have been discovered.

    Many crypto bugs are hard to find. This bug should not have been. Passing in a pointer to a buffer and then assigning the function result to that same buffer? I bet there exists an automated tool which understands the parameters to read() and would find that error.

    It's not like read() is an obscure system call. Using it improperly like this is practically criminal.

    And I never said "OSS != Security," in fact, I explicitly said the two were not necessarily equal, "emphasis on necessarily."

    PGP's license has never met the Open Source Definition (it's free to use only under certain circumstances).

    OK, you got me there - Dan Kaminsky also wrote in to mention that its license prohibits commercial use, adding "many of the eyes that would have otherwise been directed at the PGP codebase wouldn't touch the product."

    I'm not entirely sure that's true. PGP should naturally attract a lot of eyes by virtue of being high-profile. Many of the people who would be or should be looking for bugs like this one are up-and-coming cryptographers, for whom finding a bug in PGP would garner street cred. They wouldn't care whether they could use the code commercially.

    Still, point taken. Let me talk to a friend who knows PGP better than I do, and I'll look into revising the headline and/or updating the story in the next few hours.

    Despite this technicality, your headline is stupidly sensational and self-defeating. Wouldn't it have been much better to title it "Key Generation Bug Found in PGP 5"?

    When we get two submissions that are both important, and related, it makes for a more interesting discussion to link them together. Unfortunately I think many readers are only reading the PGP story, and skipping John Viega's excellent article [earthweb.com] - or at least there hasn't been much discussion of it, which is a shame.

    Jamie McCarthy

  • Re:Non Interactive Keygen is a Hard Problem by Heraklit (Score:1) Monday May 29 2000, @04:21AM
  • Re:Non Interactive Keygen is a Hard Problem by Redundant() (Score:1) Monday May 29 2000, @04:42AM
  • Read recent linux-kernel mailing list posts by Rares Marian (Score:1) Monday May 29 2000, @04:43AM
  • Re:Which cave were you living in all this time? by mr (Score:1) Monday May 29 2000, @04:43AM
  • I don't need the source to break in by Rares Marian (Score:1) Monday May 29 2000, @04:53AM
  • Your rights are none anyway by mr (Score:2) Monday May 29 2000, @04:55AM
  • Re:on the topic... by timmyd (Score:1) Monday May 29 2000, @04:57AM
  • Re:open source sees more bugs by mr (Score:1) Monday May 29 2000, @05:09AM
  • Re:Which cave were you living in all this time? by Antipop (Score:1) Monday May 29 2000, @05:18AM
  • Re:It's not just the number of eyeballs, but quali by mr (Score:1) Monday May 29 2000, @05:26AM
  • Re:Open Source and Security by RickHunter (Score:1) Monday May 29 2000, @05:40AM
  • *SNORT* by Convergence (Score:2) Monday May 29 2000, @05:43AM
  • Another thing to consider by Convergence (Score:2) Monday May 29 2000, @05:49AM
  • Re:Missing the point. by drix (Score:2) Monday May 29 2000, @05:55AM
  • oh come on! by sh_mmer (Score:1) Monday May 29 2000, @06:01AM
  • Open source debugging..and ways to improve.. by Forrest J. Cavalier (Score:1) Monday May 29 2000, @06:03AM
  • Re:Open Source != Security by PollMastah (Score:1) Monday May 29 2000, @06:24AM
  • Social aspect of Open Source Software by JMax (Score:1) Monday May 29 2000, @06:42AM
  • Its funny to see OS proponents on the defensive by Qic (Score:1) Monday May 29 2000, @06:48AM
  • Use a diode by wowbagger (Score:2) Monday May 29 2000, @06:49AM
  • A random function should be built into CPU's by jsm (Score:2) Monday May 29 2000, @07:01AM
  • Re:Microsoft software used VOLUNTARILY? by overturf (Score:1) Monday May 29 2000, @07:03AM
  • Re:open source sees more bugs by randombit (Score:1) Monday May 29 2000, @07:06AM
  • Re:Open source as a deterrent by jr7 (Score:1) Monday May 29 2000, @07:24AM
  • Re:Non Interactive Keygen is a Hard Problem by Effugas (Score:1) Monday May 29 2000, @07:25AM
  • Re:A random function should be built into CPU's by Effugas (Score:2) Monday May 29 2000, @07:27AM
  • Re:*SNORT* by Effugas (Score:2) Monday May 29 2000, @07:45AM
  • Re:Non Interactive Keygen is a Hard Problem by Effugas (Score:2) Monday May 29 2000, @07:48AM
  • Re:oh come on! by Effugas (Score:2) Monday May 29 2000, @07:54AM
  • Re:No such thing as perfect software? by BigRedZX (Score:1) Monday May 29 2000, @08:09AM
  • Re:Slashdot == Censorship; Rob Provides Example by aphr0 (Score:1) Monday May 29 2000, @08:13AM
  • Re:Slashdot == Censorship; Rob Provides Example by aphr0 (Score:1) Monday May 29 2000, @08:17AM
  • Re:Missing the point. by lowy (Score:1) Monday May 29 2000, @08:34AM
  • question about pgpk -g by Swordfish (Score:1) Monday May 29 2000, @08:39AM
  • Re:Non Interactive Keygen is a Hard Problem by randombit (Score:1) Monday May 29 2000, @08:55AM
  • Re:Microsoft software used VOLUNTARILY? by danheskett (Score:1) Monday May 29 2000, @08:56AM
  • Re:Non Interactive Keygen is a Hard Problem by randombit (Score:1) Monday May 29 2000, @08:56AM
  • Re:Crypto-nerdz by randombit (Score:1) Monday May 29 2000, @09:02AM
  • Re:Missing the point. by randombit (Score:1) Monday May 29 2000, @09:10AM
  • Re:open source sees more bugs by JordanH (Score:2) Monday May 29 2000, @09:13AM
  • Re:oh come on! by sh_mmer (Score:1) Monday May 29 2000, @09:15AM
  • Re:Buffer overrun by randombit (Score:1) Monday May 29 2000, @09:42AM
  • Re:Non Interactive Keygen is a Hard Problem by ralphclark (Score:2) Monday May 29 2000, @10:01AM
  • Re:No such thing as perfect software? by spanky555 (Score:1) Monday May 29 2000, @10:33AM
  • banks are open by Savage Henry Matisse (Score:1) Monday May 29 2000, @10:48AM
  • A solution? by HiThere (Score:1) Monday May 29 2000, @11:33AM
  • A weakness by Convergence (Score:2) Monday May 29 2000, @11:56AM
  • Re:Linux has a entropy pool based /dev/random by mrdlinux (Score:1) Monday May 29 2000, @12:55PM
  • Re:Open Source != Security by DavidTC (Score:1) Monday May 29 2000, @01:00PM
  • Re:A weakness by Effugas (Score:2) Monday May 29 2000, @01:17PM
  • Re:Use a diode by PD (Score:1) Monday May 29 2000, @01:51PM
  • Re:Disturbing - You missed the bug fix :) by PhiRatE (Score:2) Monday May 29 2000, @02:17PM
  • Re:Which cave were you living in all this time? by muldrake (Score:1) Monday May 29 2000, @03:23PM
  • Re:Microsoft software used VOLUNTARILY? by Zurk (Score:1) Monday May 29 2000, @03:40PM
  • Re:Non Interactive Keygen is a Hard Problem by kcarnold (Score:1) Monday May 29 2000, @03:46PM
  • Re:A random function should be built into CPU's by kcarnold (Score:1) Monday May 29 2000, @03:47PM
  • Re:open source sees more bugs by muldrake (Score:1) Monday May 29 2000, @03:51PM
  • Re:open source sees more bugs by muldrake (Score:1) Monday May 29 2000, @04:17PM
  • Re:Bill Joy on many eyes... by muldrake (Score:1) Monday May 29 2000, @04:52PM
  • But the fix is wrong by one-egg (Score:1) Monday May 29 2000, @04:53PM
  • Re:Linux has a entropy pool based /dev/random by FirstEdition (Score:1) Tuesday May 30 2000, @06:30AM
  • Open source == better chance for security by Kenneth (Score:1) Tuesday May 30 2000, @07:37AM
  • Re:Missing the point. by JonK (Score:1) Tuesday May 30 2000, @07:39AM
  • Re:Linux has a entropy pool based /dev/random by spitzak (Score:1) Tuesday May 30 2000, @08:35AM
  • Re:Open Source contributions. by thulorn (Score:1) Tuesday May 30 2000, @08:52AM
  • Re:Disturbing by spitzak (Score:1) Tuesday May 30 2000, @09:05AM
  • Re:Microsoft software used VOLUNTARILY? by bolie (Score:1) Tuesday May 30 2000, @01:17PM
  • Re:A random number generator.. by starman97 (Score:1) Tuesday May 30 2000, @05:31PM
  • Re:Which cave were you living in all this time? by streetlawyer (Score:2) Wednesday May 31 2000, @12:20AM
  • Re:Microsoft software used VOLUNTARILY? by rifter (Score:1) Wednesday May 31 2000, @11:28AM
  • Re:Microsoft software used VOLUNTARILY? by danheskett (Score:1) Friday June 02 2000, @07:21PM
  • Re:Microsoft software used VOLUNTARILY? by danheskett (Score:1) Friday June 02 2000, @07:22PM
(1) | 2 | 3 | 4