Skip to content

GitHub Desktop stores password as plain text and can show it to the user #2858

Closed

Description

@BasThomas

Description

GitHub Desktop may boot and immediately show an error like line 1: keyword expected; got **password**.

Version

GitHub Desktop version: 1.0.1

OS version: 10.12.6

Steps to Reproduce

Not reproducible; but happening consistently during startup on one client; also after updating the app.

Expected behavior: Client works as expected

Actual behavior: Client works as expected, but prints an error message on startup including the user's password in plain text.

Reproduces how often: Every startup

Logs

Let me know if/how I can share logs discretely.

Additional Information

Activity

  1. shiftkey commented on Sep 24, 2017

    @shiftkey
    Member

    @BasThomas thanks for the information - you can send any sensitive details to the email address over in my profile. Any stack traces that might explain how it's getting into this state are particularly helpful here...

  2. added
    bug
    more-info-needed
    on Sep 24, 2017
  3. added this to the 1.0.x milestone on Sep 24, 2017
  4. BasThomas commented on Sep 26, 2017

    @BasThomas
    Author

    @shiftkey sent a mail.

  5. self-assigned this
    on Sep 26, 2017
  6. shiftkey commented on Oct 3, 2017

    @shiftkey
    Member

    Just dropping a note in here to say that I've been going back and forth with @BasThomas about this, but I haven't been able to identify the root cause. Stay tuned.

  7. shiftkey commented on Oct 3, 2017

    @shiftkey
    Member

    And of course I stumble upon the source of this error message: https://github.com/git-lfs/git-lfs/blob/b7b1f2b7985c8f7a18c563c70898f669ffb8c13c/vendor/github.com/bgentry/go-netrc/netrc/netrc.go#L353

    This seems to be occurring whenever we invoke git lfs in the app on @BasThomas's machine (it occurs for both git lfs intstall and git lfs clone.

    While I work with him to reproduce the issue I'll try and trace back to how Git LFS is using go-netrc to stumble into this error. cc @technoweenie for hints.

  8. technoweenie commented on Oct 3, 2017

    @technoweenie

    Sorry for the hassles. I had a similar experience, and LFS v2.3.2 adds a prefix to the message. Based on that message, it looks like you're missing a keyword. Is your ~/.netrc correctly formatted, like this?

    machine lfs.github.com
    	login technoweenie
    	password MYPASSWORD
    machine api.github.com
    	login technoweenie
    	password MYPASSWORD
    

    Also, LFS and GH Desktop don't store your password in this file. But it will read from it, like Git and Curl. If you don't want to use it, just delete it.

  9. shiftkey commented on Oct 3, 2017

    @shiftkey
    Member

    @technoweenie thanks, I just encountered git-lfs/git-lfs#2633 which makes this more helpful for the next release. I've asked @BasThomas if this matches up with what he's seeing on his machine.

  10. removed their assignment
    on Oct 3, 2017
  11. BasThomas commented on Oct 4, 2017

    @BasThomas
    Author

    I’ll check!

    Sent with GitHawk

  12. deleted a comment from juanrivas89 on Oct 9, 2017
  13. shiftkey commented on Oct 11, 2017

    @shiftkey
    Member

    @BasThomas I'm going to close this out as I think we know the root cause - please feel free to comment (either here or over email) if there's anything more to add.

  14. locked as resolved and limited conversation to collaborators on Jul 19, 2018
  15. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmore-info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions