/* goodG2B() - use goodsource and badsink */ private static void GoodG2B(HttpRequest req, HttpResponse resp) { string data; /* FIX: Use a hardcoded string */ data = "foo"; CWE81_XSS_Error_Message__Web_Params_Get_Web_71b.GoodG2BSink((Object)data, req, resp); }
public override void Bad(HttpRequest req, HttpResponse resp) { string data; /* POTENTIAL FLAW: Read data from a querystring using Params.Get */ data = req.Params.Get("name"); CWE81_XSS_Error_Message__Web_Params_Get_Web_71b.BadSink((Object)data, req, resp); }