Closed AaronG1234 closed 4 years ago
Hi @AaronG1234 psPAS escapes all values used in the URLs, this can be seen in the verbose output - believe the 404 result here is the result of IIS being configured to not "Allow double escaping".
This is not a configuration recommendation, but was able to be reproduce the reported behaviour:
Closing, as the cause related to server config. Can reopen if there is any insight into any fix which can be applied in the modules code.
Describe the issue safe names created in PVWA with a + symbol seem to create what looks like a webrequest 404 error (perhaps not escaped somewhere)
To Reproduce Steps to reproduce the behavior:
also, I was not able to get it to work with "humans%2Br%2Bdumb" but doesnt mean that URL encoding isnt the right direction, i just couldnt through the module.
Expected behavior as dumb as it is to create a safe with a + symbol (in this case it was actually ME), i would expect get-passafe "humans+r+dumb" to return a pspas "safe" object Note: PVWA can alter the settings of these safes [like reassign a CPM], i know the API and PVWA are distinct beasts, but i just wanted to demonstrate that the API should in theory be able to work with these... even if the symbols are not the best idea
Screenshots & Console Output If applicable, add screenshots to help explain your problem.
Console Output Code Block: PS C:\Users\xxxxxxx> Get-PASSafe -SafeName "team_secops%2Beas" Invoke-PASRestMethod : 404 File or directory not found Server Error 404 File or directory not found The resource you are looking for might have been removed had its name changed or is temporarily unavailable At line:106 char:13
:ErrorRecord) [Invoke-PASRestMethod], Exception