Did someone have a Bobby Tables moment? https://bobby-tables.com/ In Oracle, you can't use a bind variable in setting a password on an account, so SQL injection is a more significant risk. I wrote some JavaScript and pl/sql to address that.
Do you mean setting a database user account? As in the oracle user? Why is that exposed over the web?
Password may not contain: select, insert, update, delete, drop
131–140 of 254 posts
Re: Password may not contain: select, insert, update, delete, drop
#132Earlier quoted context omitted.
If an organization has such a password policy, that can be interpreted as the person in charge of setting this policy thinks their organization doesn't have enough people with the competence and organizational power to prevent SQL injection vulnerabilities. Which would reflect poorly on any institution, but especially a university (which should be a bastion of people with competence and organizational power). As for…
Counterpoint - however pathetic it may be, it's better that they publicly owned up to their lack of confidence in this way. The question is, what do we do about it once we see something like that?
Run away and stay as far away from their products and services as possible.
Re: Password may not contain: select, insert, update, delete, drop
#133Earlier quoted context omitted.
Your password should not go anywhere near a database. It should be salted and hashed a few hundred thousand times and that compared to the salted, hashed version stored on file. If you can't even manage that, you have no business writing software that can store credentials. And I mean that. Software security starts with acknowledging that data is toxic and will bankrupt you if you refuse to respect it.
Many people in positions of great responsibility don't do what they should. What do we do about that?
Re: Password may not contain: select, insert, update, delete, drop
#134Optimistically, perhaps this requirement stems from an overzealous WAF
That would imply WAF gets to see unhashed passwords, so not good at all.
Re: Password may not contain: select, insert, update, delete, drop
#135The main reason, that I've heard at least, for not upgrading these systems is cost and complexity. Why upgrade a system that is working for $$$$ when we can restrict passwords and add some basic 'security' for $.
Re: Password may not contain: select, insert, update, delete, drop
#136Re: Password may not contain: select, insert, update, delete, drop
#137Earlier quoted context omitted.
And top of that, password should NEVER be stored to database
It's normal for them to make it to an executed SQL query.
If a user's password leaves the web application in any form other than a hash, something nonstandard and probably bad is going on.
Re: Password may not contain: select, insert, update, delete, drop
#138Earlier quoted context omitted.
What I'm recommending is just part of the bare minimum security requirement for an authentication system. SQL parameterisation, transport encryption, input validation (and more) are all as important. Stopping SQL keywords is a distraction dressed up like security. It's harmful.
> Stopping SQL keywords is a distraction dressed up like security. It's harmful. We are talking about how to mitigate harm from people who are already doing the wrong thing . Saying that this distracts from doing the right thing misses the point. They are already doing the wrong thing. You saying they should not do the wrong thing does not stop them from doing the wrong thing. Once again, your proposal is the failing…
A project that both stores plaintext passwords and fails to use parametrisation (something that's been standard practice for over two decades) is untrustable. It's an untenable liability.
Maybe I'm wrong. Could you explain when you think this would be acceptable?
Re: Password may not contain: select, insert, update, delete, drop
#139Earlier quoted context omitted.
The server shouldn't even be able to know that a password is being reused as it should be hashed and salted there is no situation where this would be acceptable
You can hash them without a salt and store them in a set of passwords not associated to user accounts to enforce uniqueness without having to actually know the passwords
Re: Password may not contain: select, insert, update, delete, drop
#140Earlier quoted context omitted.
A lot of critical responses here are saying "this distracts from getting people to do the right thing". I'm open to that, but what is the plan for forcing organizations that are doing the wrong thing to do the right thing? We're talking about businesses that mismanage the sensitive data of millions of people. "They should be doing things right" doesn't seem like an adequate response to this situation.
Correct, we should be legally enforcing that they do the right thing, with legislation that has actual fangs, for companies like Equifax. It should be a potential bankruptcy event when you leak most of America's social security numbers through sheer incompetence. The problem is that WAF-style security-theater is being enshrined as the industry standard instead, which means that we're just going to get more of these p…