A flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. This affects the function save_supplier of the file /ajax.php?action=save_supplier. This manipulation of the argument ID causes sql injection. Remote exploitation of the attack is possible. The exploit has been published and may be used.
SourceCodester Pharmacy Sales and Inventory System 1.0 contains a SQL injection vulnerability in the save_supplier function via the ID parameter in /ajax.php. Remote attackers can exploit this published vulnerability to manipulate database queries without authentication.
يؤثر هذا الضعف على نظام إدارة المخزون والمبيعات للصيدليات ويسمح بحقن أوامر SQL عبر معامل ID غير المحقق. يمكن للمهاجمين الوصول إلى بيانات حساسة أو تعديل سجلات قاعدة البيانات دون الحاجة للمصادقة.
نظام SourceCodester لمبيعات الصيدليات والمخزون الإصدار 1.0 يحتوي على ثغرة حقن SQL في دالة save_supplier عبر معامل ID في /ajax.php. يمكن للمهاجمين البعيدين استغلال هذه الثغرة المنشورة للتلاعب باستعلامات قاعدة البيانات.
Immediately upgrade SourceCodester Pharmacy Sales and Inventory System to a patched version if available. If no patch exists, implement input validation and parameterized queries for all database operations, disable direct AJAX access to sensitive functions, apply Web Application Firewall (WAF) rules to block SQL injection patterns, and restrict access to /ajax.php endpoints using authentication and authorization controls.
قم بترقية نظام SourceCodester فوراً إلى نسخة مصححة إن توفرت. إذا لم تتوفر رقعة، طبق التحقق من صحة المدخلات والاستعلامات المعاملة لجميع عمليات قاعدة البيانات، عطل الوصول المباشر لوظائف AJAX الحساسة، طبق قواعد جدار حماية تطبيقات الويب لحجب أنماط حقن SQL، وقيد الوصول لنقاط نهاية /ajax.php باستخدام المصادقة والتفويض.