Skip to content

Privacy Leakage: feed password may be revealed in output #1224

Closed

Description

@cdrnet

When paket fails it may leak the user's password in the output:

Paket failed with:
        Could not find versions for package SomePackageName in any of the sources in [Nuget
   {Url =
     "https://feed-url";
    Authentication = Some (ConfigAuthentication ("user name","actual password"));}].

We may want to skip printing the actual password there.

Activity

  1. forki commented on Nov 16, 2015

    @forki
    Member

    Yes we need to implement tostring for the Auth type. Care to send a PR?

  2. cdrnet commented on Nov 16, 2015

    @cdrnet
    MemberAuthor

    Sure. Would it also make sense to use SecureString instead of String for the password?

  3. forki commented on Nov 16, 2015

    @forki
    Member

    I guess it could be done, but most of the the passwords can be found on
    your system (often in deps file) anyway.
    On Nov 16, 2015 8:43 AM, "Christoph Ruegg" notifications@github.com wrote:

    Sure. Would it also make sense to use SecureString instead of String for
    the password?

    —
    Reply to this email directly or view it on GitHub
    #1224 (comment).

  4. cdrnet commented on Nov 16, 2015

    @cdrnet
    MemberAuthor

    Fair enough, I'll just open a PR for ToString of Credentials etc for now. Thanks.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions