Lurker News

Comments (992) 158 threads

Earlier comments
loeg2 replies#
Anyone know which password manager uses Cloudflare? Just trying to figure out if I'm affected.
davb5 replies#
Thankfully it looks like it's not 1Password, who seem to use AWS CloudFront.
artursapek#
I just checked them too, but they may have just switched over.
chris_72 replies#
I am confused - why is 1Password is using anything but iCloud or Dropbox? Those are the only options I see (and "Folder" which is presumably just local).
scott_karana1 reply#
They have "for Teams/Families" options now that appear to use a proprietary, server-side sync, instead of the safer guarantees of the traditional client.

Continue this thread — 1 reply

hendzen1 reply#
I think this bug is kind of an indictment of Ragel. It has some great ideas, but since the generated code is so low level - and allows arbitrary blocks of code to be executed in the guts of the parser, bugs like these can result in this horrible memory issues - particularly since the generated code is often used to parse untrusted user input.
jgrahamc1 reply#
I don't blame Ragel.
eridius4 replies#
Ragel shares part of the blame. Why did it use a strict equality check when it could have trivially done a >=?
cperciva3 replies#
Even a >= check would have been suboptimal. Rather than

    /* generated code */
    if ( ++p == pe )
        goto _test_eof;
or

    /* generated code */
    if ( ++p >= pe )
        goto _test_eof;
they should have had

    /* generated code */
    if ( ++p == pe )
        goto _test_eof;
    assert(p < pe);
since having servers core dumping would have drawn attention to the bug in a way that counting one byte too many and then hitting _test_eof would not.

Continue this thread — 3 replies

arestor4 replies#
It's C. If you have an array, you may only compare to one element behind the last. Everything else is undefined behavior. So a compiler may just "optimize" your >= to ==.

Continue this thread — 4 replies

pepve1 reply#
That's a great defensive technique. But even when you do that, the underlying bug should still be fixed. I don't think the equality operator is the underlying bug.

Consecutive pointer increments without a bounds check in between sounds like a bug to me. But I don't really know Ragel, and perhaps the compiler doesn't have enough information to determine this is what's happening.

Continue this thread — 1 reply

andrewf#
Speculation: people may want to use Ragel-generated code in C++, where strict equality checks are idiomatic. p may be an iterator instead of a raw pointer. >= can be absent, or slower than ==.
jitbit#
Webmasters and App-devs running on CloudFlare. You (at least) have to "force-logout" your users that have "remember me" cookie set.

At least change the cookie name so the token stops working. For example, in ASP.NET - change the "forms-auth" name in the web.config file. etc etc.

Load more comments