• lowleveldata
    link
    fedilink
    arrow-up
    44
    arrow-down
    2
    ·
    2 years ago

    That’s what libraries are for. I’m no security expert and the sensible thing to do is using a library instead of taking a class.

    • bort@sopuli.xyz
      link
      fedilink
      arrow-up
      25
      ·
      2 years ago

      I’m no security expert and the sensible thing to do is using a library instead of taking a class.

      Counterpoint: “not knowing your libraries” + “blind trust in the maintainer” will give you stuff like this: https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in

      (the thread itself is worth a read. But also very impressive is the list of big players who fell for exactly this mentality)

      • unique_hemp@discuss.tchncs.de
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        Love the part where he claims that if your users are authenticated, it’s not untrusted input. I mean, surely you trust all of your users to run any code on your server, right?

      • Gabu@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Impressive and unsurprising. As soon as you start getting complex libraries with multiple dependencies it becomes nearly impossible to review everything. At one time I had an interest in contributing to some AI libraries, but they’re a mess as soon as you go looking for points of improvement.