Skip to content

CLI: Password is visible when entered on git bash terminal #10200

Open
@ldrahnik

Description

Overview

When I enter the password for access to the database via $ keepassxc-cli show -s -a username -a password -a url $KEEPASSXC_SECRETS_FILE "READ_THIS_ITEM_FOO" on Linux Ubuntu 22.04:

keepassxc --debug-info
KeePassXC - Version 2.6.6
Revision: 9c108b9

Qt 5.15.3
Debugging mode is disabled.

Operating system: elementary OS 7.1 Horus
CPU architecture: x86_64
Kernel: linux 6.2.0-33-generic

Enabled extensions:
- Auto-Type
- Browser Integration
- SSH Agent
- KeeShare (signed and unsigned sharing)
- YubiKey
- Secret Service Integration

Cryptographic libraries:
- libgcrypt 1.9.4

it hides the password during entering but on Windows10 using git bash it does not:

Steps to Reproduce

$ my@laptop MINGW64 ~/projects/xyz (master)
$ IFS=$'\n' read -d "" FOO <<< $(keepassxc-cli show -s -a password $KEEPASSXC_SECRETS_FILE "My key")
Zadejte heslo pro odemčení C:/path/to/password.kdbx:passwordshouldnotbedisplayed

Expected Behavior

The entered password should not be displayed, on Linux is nothing displayed when I enter the password, IMHO correct behaviour.

Actual Behavior

The password during entering inside git bash on Windows is not hidden, is in plain text.

Debug info

$ keepassxc --debug-info

KeePassXC - Version 2.7.6
Revision: dd21def

Qt 5.15.10
Debugging mode is disabled.

Operating system: Windows 10 Version 2009
CPU architecture: x86_64
Kernel: winnt 10.0.19045

Enabled extensions:
- Auto-Type
- Browser Integration
- SSH Agent
- KeeShare
- YubiKey
- Quick Unlock

Cryptographic libraries:
- Botan 2.19.3

Operating System: Ubuntu 22.04 / Windows 10
Desktop Env:
Windowing System: X11 /

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions