• bjorney@lemmy.ca
    link
    fedilink
    arrow-up
    7
    ·
    1 day ago

    You are acting like someone checked off a “log passwords” box, as if that’s a thing that even exists

    Someone configured a logger to write HTTP bodies and headers, not realizing they needed to build a custom handler to iterate through every body and header anonymizing any fields that may plausibly contain sensitive information. It’s something that literally every dev has done at some point before they knew better.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      You should never be sending passwords to a server. That is really bad practice. The right answer is to use cryptography to verify the client knows the password.

      • bjorney@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        1 hour ago

        Client side verification is just security by obscurity, which gains you very little.

        If someone is capable of MITM attacking a user and fetching a password mid-transit to the server over HTTPS, they are surely capable of popping open devtools and reverse engineering your cryptographic code to either a) uncover the original password, or b) just using the encrypted credentials directly to authenticate with your server without ever having known the password in the first place

    • HiddenLayer555@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      19 hours ago

      It’s something that literally every dev has done at some point before they knew better.

      If you’re working for a multinational tech company handling sensitive user data and still make this mistake, then you are being malicious in your incompetence. This is something that would cause you to lose a significant amount of marks on a first year college programming project, let alone a production system used by literally billions of people.