Skip to content

Set-ScheduledTask shouldn't accept a plain text Password #16502

Closed

Description

@iRon7

Prerequisites

Steps to reproduce

Along with the common security rules and defined by e.g. PSScriptAnalyzer rule PSAvoidUsingPlainTextForPassword:

Parameter '$Password' should use SecureString,
otherwise this will expose sensitive information.
See ConvertTo-SecureString for more information.

Related: StackOverflow: Hide not the output but the actual command containing sensitive info in devops logs

Expected behavior

Have a [PSCredential] parameter instead

Actual behavior

Set-ScheduledTask accepts a plain text password ([[-Password] <String>])

Environment data

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

Visuals

No response

Activity

  1. added
    Needs-Triage
    on Nov 22, 2021
  2. changed the title [-]Set-ScheduledTask shouldn't accept a plain text Password[/-] [+]`Set-ScheduledTask` shouldn't accept a plain text Password[/+] on Nov 22, 2021
  3. added
    Issue-Question
    Resolution-External
    on Nov 23, 2021
  4. iSazonov commented on Nov 23, 2021

    @iSazonov
    Collaborator

    The cmdlet is not in the repository. Please use other channels to report the issue.

  5. iRon7 commented on Nov 23, 2021

    @iRon7
    Author

    Right, I have passed the issue to the Microsoft Feedback Hub. Unfortunately I haven't good feeling that anything happens with it as I have sent feedback (#16049 [AllowEmptyString()] for -Description in Set-LocalGroup/Set-LocalUser) using this hub before but never seen any responses... ☹️

  6. ghost removed
    Needs-Triage
    on Nov 23, 2021
  7. iSazonov commented on Nov 23, 2021

    @iSazonov
    Collaborator

    but never seen any responses

    I could not find that your feedback on the Hub. Perhaps it is included in a collection? What title is there to find?

  8. iRon7 commented on Nov 23, 2021

    @iRon7
    Author

    I used the same title as in here, the word ScheduledTask should bring it up.
    (note that I left the backticks in the title)
    2021-11-23_19h29_07

  9. iSazonov commented on Nov 24, 2021

    @iSazonov
    Collaborator

    I can not find. Probably because I am in Windows Insider program.

  10. iRon7 commented on Nov 24, 2021

    @iRon7
    Author

    Thanks for checking, I have created another issue Outsider Feedback:
    2021-11-24_16h34_17
    If this is also kept unnoticed, I will probably join the Insider program...

  11. iRon7 commented on Nov 25, 2021

    @iRon7
    Author

    Ok, I am an insider now (I think it makes quiet a difference as I can't even find back my own issues I created as an outsider...)
    I have logged 3 new issues as an insider:

    • Outsider Feedback
    • Set-ScheduledTask shouldn't accept a plain text Password
    • [AllowEmptyString()] for -Description in Set-LocalGroup/Set-LocalUser
  12. iRon7 commented on Dec 17, 2021

    @iRon7
    Author

    Being a Microsoft insider member now for about 3 weeks, I feel rather disappointed.
    I moved 3 issues into the insider program, but haven't seen any seen any (human) response.
    Maybe the cases are not interested enough for Microsoft, but even for that I would expect at least some acknowledgement of the issues.
    Sorry, for putting my grief in this case but (also) dropping it the feedback hub feels useless...

  13. iRon7 commented on Feb 24, 2022

    @iRon7
    Author

    Still no feedback at all on my Feedback Hub issues 😭.
    I have copied them to the new Microsoft Feedback (web portal) (let's see if I have any luck there to get the attention):

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

    Issue-QuestionResolution-External

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions