Skip to content

Explicitly disallow Basic Auth over HTTP with PSRP on Linux #6779

Description

A security review of the proposed fix for PowerShell/psl-omi-provider#114 (Basic Auth over HTTP does not work from PowerShell) has determined that Basic Auth over HTTP should not be supported Linux. the primary reasons include:

1: Both credentials and payload are sent un-encrypted.
2: Neither the client nor the server (omi) provide a method for disabling this combination.
3: It's too easy for users to use PSRP in an insecure manner.

As the above issue implies, this combination is currently broken in PowerShell on Linux. Instead of fixing it, the proposed change is to explicitly disable it and report a more appropriate error message.

The recommendation going forward will be to use Negotiate which results in the following:

From the OMI/Setup NTLM doc...

  • The password is hashed using an irreversable algorithm, so the password is more secure than Basic.
  • The client and server support encryption of your data over http connections, so SSL certificates are not required.

Activity

  1. added
    WG-Remoting
    Review - Committee
    Breaking-Change
    on Apr 30, 2018
  2. added
    Committee-Reviewed
    and removed
    Review - Committee
    on Apr 30, 2018
  3. SteveL-MSFT commented on Apr 30, 2018

    @SteveL-MSFT
    Member

    @PowerShell/powershell-committee reviewed this and is ok with explicitly not supporting Basic+HTTP and returning an error recommending using Negotiate Authn

  4. joeyaiello commented on May 1, 2018

    @joeyaiello
    Contributor

    To be clear, this means macOS will only support Basic+HTTPS auth today. We should probably write some documentation or pointers to how someone can do this (i.e. stand up certs on the server-side, and how they should be distributed to clients).

  5. added
    Documentation Needed in this repo
    on May 2, 2018
  6. added a commit that references this issue on May 2, 2018
    385cc1b
  7. dantraMSFT commented on May 17, 2018

    @dantraMSFT
    ContributorAuthor

    I found a regression in handling of Basic Auth over HTTP. When a -Uri is used and the scheme is https, the change does not detect it and fails with the Basic Auth over HTTP not supported error.

    The repro is see with outlook.office365.com:

    $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid -Credential $cred -Authentication Basic -AllowRedirection

  8. arizvisa commented on Dec 9, 2023

    @arizvisa

    Why don't you do the same thing for the Windows platform as well?

  9. added a commit that references this issue on Aug 6, 2026
    3aac591
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Breaking-ChangeCommittee-ReviewedResolution-FixedWG-Remoting

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions