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

Password visible if app is launch within a shell #54

Closed
rapha8l opened this issue Dec 7, 2017 · 7 comments
Closed

Password visible if app is launch within a shell #54

rapha8l opened this issue Dec 7, 2017 · 7 comments
Assignees
Labels
bug a bug in the software itself

Comments

@rapha8l
Copy link

rapha8l commented Dec 7, 2017

Hi,

Thanks for your installer, which is very helpful.
A little thing bothered me, as I launched the app from within a shell, I saw my password clearly written in stdout in the shell.
I think it would be better if it was obfuscated, even if launching from a shell may be not the main way to start ubports-installer.
regards

@NeoTheThird
Copy link
Member

NeoTheThird commented Dec 7, 2017

Weird, that shouldn't happen... https://github.com/ubports/ubports-installer/blob/master/src/utils.js#L140. I'll have to investigate where that's coming from.

I think it would be better if it was obfuscated, even if launching from a shell may be not the main way to start ubports-installer.

Of course, this needs to be fixed. Logging the password in clear text is a no-go. Sorry about that and thanks for reporting.

@NeoTheThird NeoTheThird added the bug a bug in the software itself label Dec 7, 2017
@rapha8l
Copy link
Author

rapha8l commented Dec 9, 2017

Thanks for you reply.
I used the UBports Installer 0.1.8-beta deb package (maybe it's working normally in head)

@NeoTheThird
Copy link
Member

No, it doesn't. Something is going wrong.

@timsueberkrueb
Copy link
Contributor

Hey Jan, I believe it's coming from here:

log.debug("Running platform tool exec asar cmd "+cmd);

@mjsir911
Copy link

This is a problem for me too, makes it harder to report logs.

Difference between just copy-pasting and having to go through the logs myself to remove any sensitive data

debug: Running platform tool exec asar cmd echo ***password*** | sudo -S fastboot devices

@timsueberkrueb
Copy link
Contributor

This is particularly alarming as the automatic bug report feature leads to user passwords being uploaded to paste.ubuntu.com.
@mariogrip @NeoTheThird

@NeoTheThird
Copy link
Member

Fixed in 598841d for now. Sorry it took so long, everyone!

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

No branches or pull requests

5 participants