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

            /* FIX: Set the path as the "system" path */
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
            {
                data = "/bin";
            }
            else
            {
                data = "%SystemRoot%\\system32";
            }
            CWE427_Uncontrolled_Search_Path_Element__Get_Cookies_Web_54b.GoodG2BSink(data, req, resp);
        }