Exemplo n.º 1
0
        /* goodG2B() - use goodsource and badsink */
        private void GoodG2B(HttpRequest req, HttpResponse resp)
        {
            string data;

            /* FIX: Set data to a fixed, non-null String */
            data = "CWE690";
            CWE690_NULL_Deref_From_Return__getParameter_Web_equals_52b.GoodG2BSink(data, req, resp);
        }
Exemplo n.º 2
0
        /* goodB2G() - use badsource and goodsink */
        private void GoodB2G(HttpRequest req, HttpResponse resp)
        {
            string data;

            /* POTENTIAL FLAW: data may be set to null */
            data = req.QueryString["CWE690"];
            CWE690_NULL_Deref_From_Return__getParameter_Web_equals_52b.GoodB2GSink(data, req, resp);
        }
Exemplo n.º 3
0
        public override void Bad(HttpRequest req, HttpResponse resp)
        {
            string data;

            /* POTENTIAL FLAW: data may be set to null */
            data = req.QueryString["CWE690"];
            CWE690_NULL_Deref_From_Return__getParameter_Web_equals_52b.BadSink(data, req, resp);
        }