HP Fortify HttpWebRequest标头操作错误C#

时间:2017-01-12 12:29:16

标签: c# fortify

我正在使用app.route('/test') .get(function(req,res){ res.sendFile(__dirname + '/index.html') //Actually in my model it uses res.render('pugfile.pug') rather than send, but I don't see why that would make a difference. }) 来扫描我的代码。它识别错误“Header Manipulation”。我的代码如下。

Fortify

此处最后一行参数“HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(apiUrl); httpRequest.Method = "POST"; httpRequest.ContentType = "application/xml; charset=UTF-8"; if (!string.IsNullOrEmpty(dp_api_key)) httpRequest.Headers.Add("apikey", dp_api_key); httpRequest.Headers.Add("Authorization", token); ”已由HP Fortify报告。 我发现没有办法让Fortify高兴。任何帮助将不胜感激。

0 个答案:

没有答案