r/ComputerSecurity • • Jan 20 '10

Dear /r/ComputerSecurity/ - does it bother you as much it bothers me when a website will send you your password in plain(clear)text to your email?

I sure hope it does.

28 Upvotes

33 comments sorted by

5

u/liquidpele Jan 20 '10

Yes, but not as much as when they don't allow special characters in the password or require numbers in the username.

2

u/osirisx11 Jan 20 '10

i've had a few sites silently truncate my password

1

u/DapperDad Jan 20 '10

8-10 characters just isn't adequate.

-1

u/liquidpele Jan 20 '10

You can always tell it's mysql then...

1

u/osirisx11 Jan 20 '10

it is the result of bad programming on client and server side, not alerting users to max lengths.

this has no relevance on the database server used.

1

u/liquidpele Jan 20 '10 edited Jan 20 '10

mysql silently truncates strings, so yes... yes it does matter.

1

u/osirisx11 Jan 20 '10

the developers should have properly accounted for that.

1

u/liquidpele Jan 20 '10 edited Jan 20 '10

If they were familiar with mysql, sure, but anyone coming from any other database would assume data integrity though. My point is that you can tell it's mysql, I wasn't trying to get into a pissing match about who should have been responsible for patching such a fucking retarded feature.

0

u/[deleted] Jan 20 '10

[deleted]

2

u/p_b_r Jan 20 '10

So, this developer sure would like the database engine to dependably throw exceptions when errant data is fed at it. No table design can account for all the cases of 'bad data' that happen in the real world.

2

u/liquidpele Jan 20 '10 edited Jan 20 '10
mysql> create table test (astring varchar(10));
Query OK, 0 rows affected (0.01 sec)

mysql> insert into test (astring) values('this is bigger than 10');
Query OK, 1 row affected, 1 warning (0.00 sec)

mysql> select * from test;
+------------+
| astring    |
+------------+
| this is bi |
+------------+
1 row in set (0.00 sec)

mysql>

This is the dumbest fucking "feature" in the world. Now fuck off.

2

u/p_b_r Jan 20 '10

Similar feature FAILS in mysql: zero dates, allowing NULL in enums (adressed with MySQL 5's strict mode for the most part) and tables defaulting to MyISAM even when clearly more appropriate engines are installed.

I have it on good authority that Sun's "Drizzle" fork of MySQL won't be burdened with these mis-features.

1

u/For_Iconoclasm Jan 20 '10

gstuartj:

This is not a problem with the DB server, but the developers.

liquidpele (the developer):

mysql> create table test (astring varchar(10)); mysql> insert into test (astring) values('this is bigger than 10');

Hmm...

3

u/[deleted] Jan 20 '10

Exactly. Why would anyone ever store password hashes as varchar? The argument fails.

2

u/liquidpele Jan 20 '10 edited Jan 20 '10

A DATABASE SHOULD KEEP DATA INTEGRITY FOR FUCKS SAKE.

I'm not saying this should be entirely disallowed, but having it as the default setting is open to abuse from people who don't understand that mysql is different in this regard from every other database there is.

Anyway, my original point was just that the issue the person had with their password being truncated was probably mysql truncating the password being stored as plain text.

0

u/haldean Jan 20 '10 edited Jan 20 '10

1 warning

Check this and you're fine. Not too difficult a concept.

10

u/metronome Jan 20 '10 edited Nov 28 '25

literate judicious gold squash chase sharp file seemly coherent disarm

This post was mass deleted and anonymized with Redact

1

u/[deleted] Jun 07 '10

The websites you're talking about have a powerful automated karma lobby.

3

u/pooflinga Jan 20 '10

That shit drives me crazy.

3

u/Aerik Jan 20 '10

It does, so I delete that email ASAP.

1

u/[deleted] Jun 07 '10

You can't delete the email on a data tap sitting in situ between the route.

2

u/seektruth Jan 20 '10 edited Jan 20 '10

My company has implemented a web based employee review system. Every employee in the company gets his access password emailed to him in plain text to the company email address. This exposes very private information to any Exchange administrator (or anyone sniffing packets). Beyond that, it creates an opportunity for easy malicious manipulation (an administrator could easily get a manager's password, and use that to edit any reviews). I sent a complaint to the head of human resources, and his reply was even more disturbing: "there are many other sites that send passwords in plain text." This coming from a person with a law degree from an ivy league school. ARGH.

2

u/Enoxice Jan 20 '10

My college's career center has a web site where you can upload your resume and look for jobs and stuff. Obviously each student has a different password-protected account. Not only is the default password standardized (and password changing not enforced), but if you go to change your password, it shows it to you in a plain HTML textbox. They didn't even bother to make it a password box!

1

u/[deleted] Jan 20 '10

They send authentication cookies in the clear, why not authentication passwords?

Unless the site is SSL front-to-back, it's a lost cause.

2

u/osirisx11 Jan 20 '10 edited Jan 20 '10

if an attacker obtains your email password, he can do forgot password for any accounts that email is tied to.

if the forgot password email contains your plain text password, for most people, it is very likely a password they use on multiple sites.

the correct way is for sites to send a one-time-use time-limited password-reset link to your email.

0

u/[deleted] Jan 20 '10

So an attacker with the ability to sniff your session key can read ALL your email ... forever, unless he loses the sniffing ability, at which point he can read until the cookie expires.

Where as if he sniffs your password, he can do the same until you change your password.

That sounds like the difference between 99% fucked and 100% fucked.

0

u/osirisx11 Jan 21 '10 edited Jan 21 '10

You asked the question Why, I answered. I agree it should be SSL front to back, no argument from me on that one. It SHOULD be secure all around. But your statement was roughly fuck it, why not, just send it all plain text since part of it is not secure. I don't agree with that mentality.

Edit: I think you may have misunderstood the OP: I believe he was commenting specifically on the Lost Password feature of most sites, not as to what you may have been thinking, which is whether or not they are sending the details via HTTPS.

1

u/[deleted] Jan 21 '10

You missed the point. Sending passwords in plain text has very similar risks to sending authentication cookies in plain text.

0

u/osirisx11 Jan 21 '10

I didn't miss the point and I completely agree. Now undo your downvote.

0

u/[deleted] Jan 20 '10

Probably, but I can't be sure. I don't get all stabby about it.

0

u/[deleted] Jan 20 '10

[deleted]

1

u/haldean Jan 20 '10

Yeah agreed. I also make sure to change the password to some series of random characters before I delete an account, because my passwords have significant overlap (I know it's bad practice, but I can't remember more than around 8 passwords, and I'm signed up for hundreds of services).

0

u/[deleted] Jan 20 '10

[deleted]

7

u/metachor Jan 20 '10

I thought self posts don't earn karma?

1

u/sk_leb Jan 20 '10

Never saw that post, I guess I should make sure I read every single article posted here before I do anything.

0

u/[deleted] Jan 20 '10

[deleted]

1

u/sk_leb Jan 20 '10

I went to "RedditSearch" and typed in "Cleartext Passwords," and found nothing. I probably would still have posted the article. But thanks - I saved the Search page. Seems like it's much better than the one we have here.