-
Notifications
You must be signed in to change notification settings - Fork 14
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
odbcconnection Trace emits Password #9
Comments
Yup, well spotted. I'll take a look. |
The ODBC out connection string being dumped with the password. Also, when the UID and PWD are added to the DSN it is visible when SQLDriverConnect args are traced.
|
Looks like this bug is still in the latest release, yes? |
Bah, I misread my own output, never mind. Fixed in 1.59? Close this issue? Would you prefer issues here or in RT? |
Stange, I don't remember fixing it so are you sure? I don't really mind RT or here but everyone seems to be using git now. I'll try and find a few moments to checek if it is fixed and if not sort it out. I shouldn't really have sat on this for so long as security is important. Appologies for that. |
Sorry, you're right, it's not fixed. It is properly redacted from the list of DBI connect params, but not where it gets appended to the DSN. From what @TallTed tells me in sqitchers/docker-sqitch#16, perhaps |
Unfortunately, not quite as simple as that as you'll have seen in my responses on squitchers. If someone uses DRIVER= in the DBI->connect string I'm forced to use SQLDriverConnect and /people/ seem to expect their username/password also passed to DBI->connect to get into SQLDriverConnect so the code appends UID=username_passed_to_dbi_connect;PWD=password_passed_to_dbi_connect to the connection string. I think the only way to go with this is to stop tracing/logging the out connection string and log the DBI->connect(arg1) only before appending the UID/PWD. Not a difficult issue and I'll fix in the next few days. BUT, I am notoriously forgetful, so by all means hassle me over this (I really mean it). As you've already seen your original report was Aug 2018 and it is July 2019. |
While running diagnostics as requested for #8, I noticed that
odbcconnection
tracing emits the password in plain text. Example:The output:
So it does the right thing for the password argument to
connect
, but its inclusion in the ODBC DSN is unfortunate.The text was updated successfully, but these errors were encountered: