3

Veracode fails the following line of code:

string server = Decryptor.Decrypt(ConfigurationManager.AppSettings["ConnectionPoint"]);

System.Net.HttpWebRequest objRequest = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(server);

Does anyone have any ideas on how to fix that?

gene
  • 2,098
  • 7
  • 40
  • 98

2 Answers2

1

Try to encode the string server as:

string server  = Decryptor.Decrypt(ConfigurationManager.AppSettings["ConnectionPoint"]).HTMLEncode();
Anthony Queen
  • 2,348
  • 3
  • 18
  • 21
0

Veracode considers information stored in the config file as sensitive information. So try to store "ConnectionPoint" anywhere other than config file