You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Explicitly disallow Basic Auth over HTTP with PSRP on Linux #6779
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.
@PowerShell/powershell-committee reviewed this and is ok with explicitly not supporting Basic+HTTP and returning an error recommending using Negotiate Authn
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).
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.
Activity
SteveL-MSFT commentedon Apr 30, 2018
@PowerShell/powershell-committee reviewed this and is ok with explicitly not supporting Basic+HTTP and returning an error recommending using Negotiate Authn
joeyaiello commentedon May 1, 2018
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).
Disallow Basic Auth over HTTP on Unix (#6787)
dantraMSFT commentedon May 17, 2018
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
arizvisa commentedon Dec 9, 2023
Why don't you do the same thing for the Windows platform as well?
Disallow Basic Auth over HTTP on Unix (PowerShell#6787)