veracode

How to fix “Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')”

浪子不回头ぞ 提交于 2019-11-27 03:35:32
问题 After running VeraCode, it reported a following error "Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')" in the following code fragment: protected override void InitializeCulture() { //If true then setup the ability to have a different culture loaded if (AppSettings.SelectLanguageVisibility) { //Create cookie variable and check to see if that cookie exists and set it if it does. HttpCookie languageCookie = new HttpCookie("LanguageCookie"); if (Request