mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
split PS wrapper and payload (CVE-2018-16859) (#49142)
* prevent scriptblock logging from logging payload contents * added tests to verify no payload contents in PS Operational event log * fix script action to send split-aware wrapper * fix CLIXML error parser (return to -EncodedCommand exposed problems with it)
This commit is contained in:
parent
e7104a445b
commit
8c1f701e6e
12 changed files with 91 additions and 30 deletions
|
@ -159,9 +159,10 @@ $($ErrorRecord.InvocationInfo.PositionMessage)
|
|||
}
|
||||
.$wrapper_functions
|
||||
|
||||
# NB: do not adjust the following line - it is replaced when doing
|
||||
# non-streamed input
|
||||
$json_raw = ''
|
||||
# only init and stream in $json_raw if it wasn't set by the enclosing scope
|
||||
if (-not $(Get-Variable "json_raw" -ErrorAction SilentlyContinue)) {
|
||||
$json_raw = ''
|
||||
}
|
||||
} process {
|
||||
$json_raw += [String]$input
|
||||
} end {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue