Пример #1
0
        public override void Bad(HttpRequest req, HttpResponse resp)
        {
            string data = null;

            data = ""; /* Initialize data */
            {
                /* read user input from console with ReadLine */
                try
                {
                    /* POTENTIAL FLAW: Read data from the console using ReadLine */
                    data = Console.ReadLine();
                }
                catch (IOException exceptIO)
                {
                    IO.Logger.Log(NLog.LogLevel.Warn, exceptIO, "Error with stream reading");
                }
            }
            badPublicStatic = true;
            CWE89_SQL_Injection__Web_ReadLine_ExecuteNonQuery_22b.BadSink(data, req, resp);
        }