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