mirror of
https://github.com/antonioribeiro/google2fa.git
synced 2026-04-27 09:05:49 +03:00
[GH-ISSUE #22] Security Alert: Susceptible to MITM Attacks #479
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/google2fa#479
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arleslie on GitHub (Dec 23, 2015).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/22
In the documentation it suggests using:
This generates a URL to Google Charts.
Using this URL creates a GET request which allows all of the information to sniffed.
Using:
Returns:
https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth%3A%2F%2Ftotp%2FYourCompany%3Aemail%3Fsecret%3DOhHeyThe2faSecret%26issuer%3DYourCompanyIf you decode the
&chl=part you get:otpauth://totp/YourCompany:email?secret=OhHeyThe2faSecret&issuer=YourCompanyThe QR code should be generated server side rather than being passed to a 3rd Party.
@arleslie commented on GitHub (Dec 23, 2015):
It should be recommended to use
Google2FA::getQRCodeInline().@arleslie commented on GitHub (Dec 23, 2015):
Per a little bit more research it appears GET requests are protected with SSL.
My understanding before was that URLS are not encrypted so it appears this is fine unless the SSL to Google is being stripped. (Which if that happens then you're screwed anyway)
@GrahamCampbell commented on GitHub (Dec 23, 2015):
Yeh, SSL means the whole request in encrypted.
@GrahamCampbell commented on GitHub (Dec 23, 2015):
The URI is part of that.