public override void Bad(HttpRequest req, HttpResponse resp) { string data; data = ""; /* initialize data in case there are no cookies */ /* Read data from cookies */ { HttpCookieCollection cookieSources = req.Cookies; if (cookieSources != null) { /* POTENTIAL FLAW: Read data from the first cookie value */ data = cookieSources[0].Value; } } CWE94_Improper_Control_of_Generation_of_Code__Get_Cookies_Web_54b.BadSink(data, req, resp); }