Skip to content

Password shown in plaintext #55

@benwa

Description

@benwa

Bug description

If you exclude both the -Username and -Password parameters, the module will prompt for both, but the password is obfuscated, as expected. If, however, you pass the -Username without the -Password parameter, the module will prompt for the password. That prompt is in plaintext.

Command-line input

New-AsBuiltReport -Report Microsoft.Windows -Target localhost -OutputFolderPath . -Filename example -Username bennett

Steps to reproduce

  1. Create a new AsBuiltReport while passing the -Username parameter. Do not pass the -Password parameter.
  2. Observe that the module prompts for the password, but the input is in plaintext.

Expected behaviour

The password is hidden

Screenshots

Image

Operating System

Windows 11 24H2

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

and

Name                           Value
----                           -----
PSVersion                      5.1.26100.2161
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.2161
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

PowerShell Modules

Name               Version
----               -------
AsBuiltReport.Core 1.4.1
PScribo            0.10.0

Additional Context

No response

Before submitting

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions