/* goodG2B() - use goodsource and badsink */ private void GoodG2B(HttpRequest req, HttpResponse resp) { string data; /* FIX: Use a hardcoded string */ data = "foo"; CWE78_OS_Command_Injection__Params_Get_Web_52b.GoodG2BSink(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"); CWE78_OS_Command_Injection__Params_Get_Web_52b.BadSink(data, req, resp); }