amzn / amazon-pay-sdk-csharp

Amazon Pay C# SDK
https://payments.amazon.com/developer
Apache License 2.0
48 stars 42 forks source link

Sanitize raw strings #19

Open joshijigar opened 6 years ago

joshijigar commented 6 years ago

In current master branch, AmazonPay/SanitizeData.cs > SanitizeGivenData method was unable to sanitize Text data (type == DataType.Text)

So added feature to sanitize raw string data

AmazonPay/IpnHandler.cs > Added custom wrapper around value fields of NameValueCollection AmazonPay/SanitizeData.cs > Detected and sanitized sensitive values and removed wrappers at last with RegEx

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.