-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dev] SQL - Security: use prepared statements and validate SQL settings #308
Comments
👍 |
I'm only use preparedStatement if the input type is String. |
@ljacqu bump |
I don't have time to do this personally within the release of 5.2, but if there's any taker for it, it would certainly be great to have it done in 5.2. I think 1) has already been done by DNx5, 2) is fairly short (just gotta find a good, central place to do it!) and then 3) is basically just some searching and deleting. I've even annotated a lot of places with a "TODO #308" for the third point |
i think there is no need to validate the database configuration, because it will fail to connect if something wrong. people should put the right value there. |
It's more about preventing some sort of SQL injection. I know it's a long shot since the names come from the config file, i.e. a file only an admin has access to, but it wouldn't hurt. |
I'm too lazy to think about that, because it is not only for MySQL 😆 |
OK 😆 |
we can remove it, if 1) is done. |
5.3 beta |
@Xephi "awaiting answer"? |
I would put please-verify :') but i've finish my check, also i think it's ok now If you're ok by the way i've fixed 1), we can close this |
|
Reopened – there are three other places annotated with |
Reclose - Sorry :') |
Looks good – thanks! I'm very glad that these checks are no longer part of the codebase. :) |
Maybe a story for @DNx5?
2) Validate the settings for the column and table names (e.g.Skipped for this issuemySQLColumnId
) to be also sure that they won't break the SQL statements (probably a regexp such as[a-zA-Z0-9_-]+
or similar)ChangePasswordCommand
and will no longer be necessary:The text was updated successfully, but these errors were encountered: