Proposed methods to prevent SQL injection

Other Title(s)

حماية تطبيقات الويبِ من هجومِ حقن (ِSQL)‎

Author

Muhammad, Ahmad Hashim

Source

Ibn al-Haitham Journal for Pure and Applied Science

Issue

Vol. 24, Issue 2 (30 Jun. 2011)10 p.

Publisher

University of Baghdad College of Education for Pure Science / Ibn al-Haitham

Publication Date

2011-06-30

Country of Publication

Iraq

No. of Pages

10

Main Subjects

Information Technology and Computer Science

Topics

Abstract AR

في العقد الأخير، أصبح الويب جزءا لا غنى عنه في حياتنا.

و لكن لسوء الحظ، الاعتمادية على الشبكة زادت من عدد المبرمجين الذين يركزون على تصاميم المواقع أكثر من التركيز على الوظيفة و الحماية مما أدى إلى زيادة عدد المهاجمين في إستغلال مشاكل الحماية التي تستهدف تطبيقات الويب و أنظمة على الإنترنت و مثال على ذلك الهجوم هو (SQL injection).

هجوم (SQL injection) هو عملية تمرير رمز لغة الإستفسار البنائية (SQL) إلى تطبيقات التفاعلية التي تستعمل قاعدة البيانات، إذ يحاول المخترق تخريب العلاقة بين الموقع و قاعدة بياناته المساندة، لكي يخدع قاعدة البيانات إلى تنفيذ الرمز، الخبيث بسبب التصميم السيء للتطبيق.

إن النظام المقترح مستند إلى التدقيق في وقت التشغيل، قبل إدراج الزبون المتصل بقاعدة البيانات باستعمال طرائق عديدة لجعل التضمين صالح للإستعمال و ذلك من خلال المصادقة، التشفير، ترشيح المحتوى ن طريق إلغاء الإقتباسات الوحيدة، تحديد طول الحرف المضتمنة، و تصفية رسائل الخطاء.

إن الحل المقترح فعال و قابل للتوسع فضل عن أنه يتبنى بسهولة من قبل مبرمجي التطبيق إذ استعملت لغة HTML PHP, قاعدة بيانات MySql، و الخادم Apache في تصميم الموقع و اختبار الحل المقترح.

Abstract EN

In the last decade, the web has rapidly become to an attractive platform, and an indispensable part of our lives.

Unfortunately, as our dependency on the web increases so programmers focus more on functionality and appearance than security, has resulted in the interest of attackers in exploiting serious security problems that target web applications and web-based information systems e.g.

through an SQL injection attack SQL injection in simple terms, is the process of passing SQL code into interactive web applications that employ database services such applications accept user input such as form and then include this input in database requests, typically SQL statements in a way that was not intended or anticipated by the application developer that attempts to subvert the relationship between a webpage and its supporting database, in order to trick the database into executing malicious code due to the poor design of the application.

The proposed system is based on protection website at run time, before inclusion of user input with database by validating, encoding, filtering the content, escaping single quotes, limiting the input character length, and filtering the exception messages.

The proposed solution is effectiveness and scalability in addition it is easily adopted by application programmers.

For empirical analysis, we provide a case study of our solution and implement in Html, PHP, MySql , Apache Server and JMeter application.

American Psychological Association (APA)

Muhammad, Ahmad Hashim. 2011. Proposed methods to prevent SQL injection. Ibn al-Haitham Journal for Pure and Applied Science،Vol. 24, no. 2.
https://search.emarefa.net/detail/BIM-286230

Modern Language Association (MLA)

Muhammad, Ahmad Hashim. Proposed methods to prevent SQL injection. Ibn al-Haitham Journal for Pure and Applied Science Vol. 24, no. 2 (2011).
https://search.emarefa.net/detail/BIM-286230

American Medical Association (AMA)

Muhammad, Ahmad Hashim. Proposed methods to prevent SQL injection. Ibn al-Haitham Journal for Pure and Applied Science. 2011. Vol. 24, no. 2.
https://search.emarefa.net/detail/BIM-286230

Data Type

Journal Articles

Language

English

Notes

Includes bibliographical references

Record ID

BIM-286230