thycotic.secretserver icon indicating copy to clipboard operation
thycotic.secretserver copied to clipboard

Get-TssSecretField returns field value with escaped quotes

Open ChristophHannappel opened this issue 2 years ago • 1 comments

Verified issue does not already exist?

Yes

What error did you receive

PS> Get-TssSecretField -TssSession $session -Id 123 -Slug password
\"ImAP@ssw0rd\"

Please run the command using -Verbose

Verbose: Command invocation: Get-TssSecretField -TssSession:TssSessionObject -Id:System.Int32[] -Slug:passwort -Verbose:True
Verbose: Performing the operation GET https://fqdn/api/v1/secrets/123/fields/passwort with:

\"ImAP@ssw0rd\"

Provide a test case or steps to reproduce

Create a Secret with a password which contains quotes Example "ImAP@ssw0rd"

Expected behavior

The return Value should not be escaped

What Edition of Secret Server?

Platinum

What version of Secret Server

11.0

What PowerShell host was used when producing this error

Windows PowerShell ISE (powershell_ise)

PowerShell Host Version

Name Value


PSVersion 5.1.19041.2673
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.2673
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

ChristophHannappel avatar May 25 '23 14:05 ChristophHannappel

The mentioned issue is reproduceable. I cross check it with the Postman and confirmed that Secret Server API also returns the double quotes enclosed password in same way. In sort secret Server API returning the escaped value. so not an issue with the PowerShell Module. Actual password: "ImAP@ssw0rd" resulted password: ""ImAP@ssw0rd"" image

gaurava-delinea avatar Jul 24 '23 05:07 gaurava-delinea