Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
Should AC9 have code in the global.asax to stop sql injection the way Gold does? I remember that if it wasn't there in Gold, site would fail a security scan. //TERMINATE SQL INJECTION ATTEMPTS int maxQueryLength = 500; string rawUrl = Request.RawUrl; int qIndex = rawUrl.IndexOf("?"); if (qIndex > -1) { string query = Request.RawUrl.Substring(qIndex).ToUpperInvariant(); if (query.Length > maxQueryLength || query.Contains("DECLARE%20")) { //POTENTIAL ATTACK Response.Clear(); Response.Write("INVALID REQUEST"); Response.Flush(); Response.End(); } }
|
|
|
|
Rank: Administration
Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered Joined: 10/5/2018(UTC) Posts: 175
Thanks: 8 times Was thanked: 17 time(s) in 15 post(s)
|
AC9 does have it, we moved this code to detect SQL injection into CommerceBuilder.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close