News for hackers. Stuff that matters.
Re:Password may not contain: select, insert, update, delete,... by ajross on Sunday January 21, 2024 @09:06AM (#39078514)
> Also not storing hashes of passwords, because then it wouldn't matter what the input is.

That only tells you they don't hash the passwords in the client. Likely the protection ("protection") is for the input validation layer, not the password backend itself.

Re:Password may not contain: select, insert, update, delete,... by TacticalCoder on Sunday January 21, 2024 @09:14AM (#39078578)
Is it a slow sunday for me or... If you hash the password on the client and send the hash then hash is the password. And if you then have, for example, a DB leak with username and hashes, you don't need the password anyway because you can just send the hash and log in? (but then it's sunday and I need more coffee so I may be wrong)
Re:Password may not contain: select, insert, update, delete,... by gvx on Sunday January 21, 2024 @09:34AM (#39078766)
That is correct.

The client sends the encrypted (via HTTPS) but not hashed password to the server, both for changing your password and checking your password. So the server receives the password in plaintext but shouldn't store it.

Whatever the client sends to the server, an attacker can send too.

Re:Password may not contain: select, insert, update, delete,... by andy81 on Sunday January 21, 2024 @04:35PM (#39083308)
You're not the first to come up with that exploit-

https://en.wikipedia.org/wiki/Pass_the_hash

Re:Password may not contain: select, insert, update, delete,... by sevensevennine on Sunday January 21, 2024 @09:16AM (#39078599)
Don't hash the password on the client. That just changes the password to the hash of the password.

Parameterize the SQL on the server instead of concatenating strings.

Re:Password may not contain: select, insert, update, delete,... by hn_acker on Sunday January 21, 2024 @10:49AM (#39079489)
If you're using a third-party reverse proxy, then the third party will have access to the user's password. What's the simplest way to prevent the third-party from knowing the password? Would adding an encryption layer between the user and the actual website owner be both feasible and sufficient for the average website owner?
Re:Password may not contain: select, insert, update, delete,... by Falmarri on Sunday January 21, 2024 @02:03PM (#39081674)
Don't use reverse proxies you don't trust
Re:Password may not contain: select, insert, update, delete,... by howrar on Sunday January 21, 2024 @10:11AM (#39079128)
How could the validation layer be affected by the presence of these substrings?
Re:Password may not contain: select, insert, update, delete,... by ajross on Sunday January 21, 2024 @11:10AM (#39079724)