Skip to content
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

Send/Receive credentials logged in clear text #337

Closed
myieye opened this issue Apr 15, 2024 · 2 comments · Fixed by #339
Closed

Send/Receive credentials logged in clear text #337

myieye opened this issue Apr 15, 2024 · 2 comments · Fixed by #339
Assignees
Labels

Comments

@myieye
Copy link
Contributor

myieye commented Apr 15, 2024

The Send/Receive URL(s) logged here log the entire (encoded) URL in cleartext including the <username>:<password>:

_progress.WriteVerbose($"Repository URI: {string.Join(Environment.NewLine, potentialAddresses.Select(RepositoryURIForLog))}");

e.g.:

Getting project...&#xD;
   Started at 2024-04-12 11:59:27Z&#xD;
   Local User: tim&#xD;
   LanguageForge User: admin&#xD;
   Repository URI: https://admin:!UserPassword!@hg-staging.languageforge.org:443/elawa-dev-flex&#xD;
   Local Directory: C:\Users\tim\AppData\Local\Temp\SR_Tests\CloneBigProject\1-9eff4b07\elawa-dev-flex&#xD;&#xD;
@myieye myieye added the bug label Apr 15, 2024
@bobeaton
Copy link
Contributor

bobeaton commented Apr 15, 2024 via email

@rmunn
Copy link
Contributor

rmunn commented Apr 19, 2024

There's a ServerSettingsModel.RemovePasswordForLog static method, which is used when logging errors in, for instance, the HgRepository.PullFromTarget method. I wonder why it wasn't used in RepositoryURIForLog? Should be a quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants