this post was submitted on 01 Oct 2024
205 points (99.0% liked)

Privacy

31447 readers
981 users here now

A place to discuss privacy and freedom in the digital world.

Privacy has become a very important issue in modern society, with companies and governments constantly abusing their power, more and more people are waking up to the importance of digital privacy.

In this community everyone is welcome to post links and discuss topics related to privacy.

Some Rules

Related communities

Chat rooms

much thanks to @gary_host_laptop for the logo design :)

founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] HiddenLayer555@lemmy.ml 3 points 3 days ago (8 children)

that logged unencrypted password data

Why the fuck would you need to log a password ever? This is absolutely malice and not incompetence.

[–] bjorney@lemmy.ca 8 points 3 days ago (6 children)

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.

[–] possiblylinux127@lemmy.zip -2 points 2 days ago (3 children)

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 2 points 2 days ago (1 children)

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

[–] possiblylinux127@lemmy.zip 1 points 2 days ago (1 children)

That assumes that an adversary has control of the browser. The big reason you don't want to send passwords over https is that some organizations have custom certs setup. It is better to just not send the password at all.

[–] bjorney@lemmy.ca 1 points 1 day ago

That assumes that an adversary has control of the browser

No it doesn't, if they intercept an encrypted password over HTTPS they can resend the request from their own browser to get access to your account

The big reason you don't want to send passwords over https is that some organizations have custom certs setup

What is the problem with that? The password is secure and only shared between you and the site you are intending to communicate with. Even if you sent an encrypted password, they wrote the client side code used to generate it, so they can revert it back to its plaintext state server side anyways

It is better to just not send the password at all.

How would you verify it then?

If not sending plaintext passwords was best practice then why do no sites follow this? You are literally posting to a site (Lemmy) that sends plaintext passwords in its request bodies to log-in

load more comments (1 replies)
load more comments (3 replies)
load more comments (4 replies)