How secure
-
How secure is this code, I have a web app that checks someone security level? is it possible from a user to change int LocalStatus = 5 to int LocalStatus = 6?? (for example) protected void btnUpdateStatus_Click(object sender, EventArgs e) { try { int LocalStatus = 5; if (LocalStatus >= Profile.UserPermissionLevel) { object values = gvRasiedECN.GetRowValues(gvRasiedECN.FocusedRowIndex, new string[] { "OID" }); ENG_UpdateECN UpdateECN = new ENG_UpdateECN(Profile.UserID, Convert.ToInt32(values),"meh"); } } catch(Exception ea) { ErrorLog = new ErrorLog (ea.ToString(), "PageName"); } }
-
How secure is this code, I have a web app that checks someone security level? is it possible from a user to change int LocalStatus = 5 to int LocalStatus = 6?? (for example) protected void btnUpdateStatus_Click(object sender, EventArgs e) { try { int LocalStatus = 5; if (LocalStatus >= Profile.UserPermissionLevel) { object values = gvRasiedECN.GetRowValues(gvRasiedECN.FocusedRowIndex, new string[] { "OID" }); ENG_UpdateECN UpdateECN = new ENG_UpdateECN(Profile.UserID, Convert.ToInt32(values),"meh"); } } catch(Exception ea) { ErrorLog = new ErrorLog (ea.ToString(), "PageName"); } }