Click here to Skip to main content
15,888,521 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Help with a static class Pin
Sascha Lefèvre18-May-15 2:10
professionalSascha Lefèvre18-May-15 2:10 
GeneralRe: Help with a static class Pin
Richard Deeming18-May-15 2:36
mveRichard Deeming18-May-15 2:36 
GeneralRe: Help with a static class Pin
Stephen Holdorf18-May-15 3:48
Stephen Holdorf18-May-15 3:48 
GeneralRe: Help with a static class Pin
Richard Deeming18-May-15 3:50
mveRichard Deeming18-May-15 3:50 
GeneralRe: Help with a static class Pin
jkirkerx18-May-15 12:19
professionaljkirkerx18-May-15 12:19 
GeneralRe: Help with a static class Pin
Stephen Holdorf20-May-15 3:02
Stephen Holdorf20-May-15 3:02 
GeneralRe: Help with a static class Pin
Sascha Lefèvre20-May-15 4:22
professionalSascha Lefèvre20-May-15 4:22 
GeneralRe: Help with a static class Pin
Stephen Holdorf20-May-15 4:28
Stephen Holdorf20-May-15 4:28 
The scan shows the command.ExecuteScalar() is where the security flaw is:

Here is the function and the line highlighted where the error occurs:

        protected Object ExecuteScaler(QueryContainer Instance, int i)
        {

            object returnValue = null;


            if (!_iserror)
            {
                if (_trace)
                {
                    DoTrace("TAMIS.Data.Loader.ExecuteScalar", Instance.Query);
                }

                if (_connection == null || _connection.State == ConnectionState.Closed)
                {
                    OpenConnection();
                }

                DbCommand command = _provider.CreateCommand();
                command.Connection = _connection;
                {
                    command.CommandText = Instance.Query;
                    command.CommandType = CommandType.Text;

                    foreach (var p in Instance.parameterList)
                    {
                        SqlParameter param = new SqlParameter(p.name, p.value);
                        command.Parameters.Add(param);
                    }

                    if (_useTransaction) { command.Transaction = _transaction; }

                    try
                    {
                        returnValue = command.ExecuteScalar();
                    }
                    catch (Exception ex)
                    {
                        if (ex is EntryPointNotFoundException)
                            throw ex;
                        //if (_useTransaction == true)
                        //_transaction.Rollback();
                        RollBack();

                        LogBLL bll = new LogBLL();
                        bll.WriteErrorLog(ex);

                        _iserror = true;
                    }
<pre>

GeneralRe: Help with a static class Pin
Sascha Lefèvre20-May-15 4:34
professionalSascha Lefèvre20-May-15 4:34 
GeneralRe: Help with a static class Pin
Stephen Holdorf20-May-15 4:40
Stephen Holdorf20-May-15 4:40 
GeneralRe: Help with a static class Pin
Sascha Lefèvre20-May-15 4:43
professionalSascha Lefèvre20-May-15 4:43 
GeneralRe: Help with a static class Pin
Stephen Holdorf20-May-15 4:45
Stephen Holdorf20-May-15 4:45 
GeneralRe: Help with a static class Pin
Sascha Lefèvre20-May-15 4:54
professionalSascha Lefèvre20-May-15 4:54 
GeneralRe: Help with a static class Pin
Stephen Holdorf20-May-15 5:21
Stephen Holdorf20-May-15 5:21 
GeneralRe: Help with a static class Pin
Sascha Lefèvre20-May-15 5:26
professionalSascha Lefèvre20-May-15 5:26 
GeneralRe: Help with a static class Pin
jkirkerx20-May-15 6:55
professionaljkirkerx20-May-15 6:55 
SuggestionRe: Help with a static class Pin
Richard Deeming20-May-15 7:08
mveRichard Deeming20-May-15 7:08 
GeneralRe: Help with a static class Pin
jkirkerx20-May-15 8:10
professionaljkirkerx20-May-15 8:10 
GeneralRe: Help with a static class Pin
Richard Deeming20-May-15 8:20
mveRichard Deeming20-May-15 8:20 
GeneralRe: Help with a static class Pin
jkirkerx20-May-15 9:15
professionaljkirkerx20-May-15 9:15 
GeneralRe: Help with a static class Pin
Stephen Holdorf21-May-15 2:50
Stephen Holdorf21-May-15 2:50 
QuestionProblem With ASP.Net Webform using JQuery AJAX Pin
MadDashCoder14-May-15 23:09
MadDashCoder14-May-15 23:09 
AnswerRe: Problem With ASP.Net Webform using JQuery AJAX Pin
F-ES Sitecore14-May-15 23:33
professionalF-ES Sitecore14-May-15 23:33 
QuestionASP.NET web forms label set by jquery not updated in database Pin
spirospap13-May-15 15:27
spirospap13-May-15 15:27 
AnswerRe: ASP.NET web forms label set by jquery not updated in database Pin
F-ES Sitecore13-May-15 22:32
professionalF-ES Sitecore13-May-15 22:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.