An unofficial, read-only Hacker News reader.

Ladybird is now in alpha (opens external site)

2472 points by janvdberg 5 days ago | ladybird.org | 747 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. I pointed a recent model at their TLS and sandbox libraries. In about 5 minutes it turned up a gem in TLSv12.cpp [1] mis-referencing timer code [2], [3].

    Now C and kin are not my native language, but it appears that this code fails to call the rather important `timer.start()` that is necessary for "TLS not crashing" when the timeout is non-zero. I'd wonder why the start isn't part of the constructor, and I'd also wonder why there aren't at least a few unit tests covering this sort of thing in the TLS handler code.

    To be clear: I am an amateur coder, and I found this in about 5 minutes, and these are the absolute first places I would expect rock solid code. My clanker also suggests that commit 4caf403a [4] acknowledged an overwide filesystem write grant that was leftover in commit be5fc5be. It's the sort of thing that may not be itself critical (since other sandboxing seems to mitigate) but is indicative of "not the security posture you'd hope for in a new codebase".

    There are others like buffer overflows in file descriptors (in the same LibTLS:wait_for_activity, no less) that may or may not be real but frankly it's not the sort of thing I'd want to spend my time digging into. The trust signals I would want for something as critical as a browser are not there.

    EDIT: I'd also note that apparently LibTLS is only used for some codepaths-- DNS-over-TLS-- and bifurcated TLS codepaths are surely a terrible idea.

    ---

    Sources:

    [1]: https://github.com/LadybirdBrowser/ladybird/blob/master/Libr...

    [2]: https://github.com/LadybirdBrowser/ladybird/blob/master/Libr...

    [3]: https://github.com/LadybirdBrowser/ladybird/blob/master/Libr...

    [4]:https://github.com/LadybirdBrowser/ladybird/commit/4caf403a1...

    Replies (1)
    1. Great, that's exactly what they asked people to do:

      > We want security nerds to hack it! A new browser gets hacked, over and over, and that’s part of the process, so we make no promises about security today. When you pwn us, please tell us how so we can harden Ladybird!

      You can tell them about your findings here: https://github.com/LadybirdBrowser/ladybird/blob/master/SECU...

      Replies (1)
      1. I want to say: i appreciate that you did not provide an (unsandboxed) Windows release; that Linux is a flatpack; and that Macos uses seatbelt.

        I was prepared for a curl-based installer, and was shown to be wrong, and i think it is worth calling that out.

        Much of my irritation was over the risks of an alpha browser with trivial bugs in critical code surfaces. Some of that annoyance remains but having a sandbox helps quite a bit. I hope you lean into that, and avail yourself at the outset of every mitigation the OS offers.