-
Notifications
You must be signed in to change notification settings - Fork 5
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
Please don't send TOTP key to Google (or make it more transparent) #18
Comments
Thank you, that is really a good point. I also think we should find a solution here without a third party for QR code generation. |
@luke- We use the URL When user selects the "Authentication method == Google Authenticator" first time we also display the QR code image automatically without confirmation so of course we send the request to the chart google api URL. We need to display it on first time because we need to ask pin code in order to allow to use the authentication method. Also we display the QR code image on all next times on the config page. I.e. we always send there the data to chart google api. As I understand we should send the chart google api request only after user confirm this, like we do on click "Request new code". If yes then we should do the following:
Do you agree this solution or I should find some library to generate the QR code right on server without sending external requests? |
@yurabakhtin Basically, we should try to avoid sending third-party request if possible. In the current case, we can probably simply generate a QR code for the Google Authenticator settings ourselves via Javascript / PHP. https://davidshimjs.github.io/qrcodejs/ If this is not possible for some reason, we need to think about how we can notify the user about this behavior. |
Here is another JS-based generator for TOTP, including source code on GitHub: https://github.com/stefansundin/2fa-qr |
@luke- Ok, I have implemented the QR code generating by the JS library https://davidshimjs.github.io/qrcodejs/ in PR #21 |
@yurabakhtin Thanks Awesome! PR is merged an 1.0.2 is released with this change. |
First of all: thank you for providing MFA and the TOTP option. This is much appreciated!
But. Currently when setting up TOTP the secret code is being sent to Google to generate the QR code.
This should be properly disclosed or - better - opt-in or - even better - disabled.
This is the URL that is used to generate the code:
https://chart.googleapis.com/chart?chs=300x300&chld=M|0&cht=qr&chl=otpauth://totp/server:Humhub Instance Name - User?secret=THESECRETKEY&issuer=server
I personally would like to be informed before parts of my secret are being sent to the internet. For starters a hint and the option to opt-out and regenerate would be ok for the user to make an informed decision.
My 2 cents :)
The text was updated successfully, but these errors were encountered: