A flaw has been found in SourceCodester Hospitals Patient Records Management System 1.0. The impacted element is an unknown function of the file /classes/Master.php?f=save_patient_history. This manipulation of the argument ID causes sql injection. The attack is possible to be carried out remotely. The exploit has been published and may be used.
CVE-2026-9355 is a critical SQL injection vulnerability in SourceCodester Hospitals Patient Records Management System 1.0 affecting the patient history save function. The flaw allows remote attackers to manipulate the ID parameter and execute arbitrary SQL commands, potentially compromising patient data confidentiality and integrity. With a CVSS score of 7.3 and published exploit details, this poses an immediate threat to healthcare organizations using this system.
IMMEDIATE ACTIONS:
1. Identify all instances of SourceCodester Hospitals Patient Records Management System 1.0 in your environment
2. Isolate affected systems from production networks if possible, or implement network segmentation
3. Enable comprehensive logging and monitoring of /classes/Master.php access patterns
4. Review access logs for suspicious ID parameter values containing SQL syntax (quotes, semicolons, UNION, SELECT, etc.)
PATCHING GUIDANCE:
1. Contact SourceCodester for security patches or upgrade to a patched version if available
2. If no patch is available, implement input validation and parameterized queries in Master.php
3. Apply principle of least privilege to database accounts used by the application
COMPENSATING CONTROLS:
1. Implement Web Application Firewall (WAF) rules to block SQL injection patterns in ID parameters
2. Deploy database activity monitoring (DAM) to detect anomalous SQL queries
3. Restrict database user permissions to read-only where possible
4. Implement rate limiting on /classes/Master.php endpoints
5. Enable SQL query logging and alerting for suspicious patterns
DETECTION RULES:
1. Monitor for ID parameters containing: ' OR '1'='1, UNION SELECT, DROP TABLE, INSERT INTO
2. Alert on multiple failed database queries from single session
3. Track unusual database connection patterns or privilege escalation attempts
4. Log all POST requests to /classes/Master.php?f=save_patient_history
الإجراءات الفورية:
1. تحديد جميع نسخ نظام إدارة سجلات المرضى من SourceCodester الإصدار 1.0 في بيئتك
2. عزل الأنظمة المتأثرة عن شبكات الإنتاج إن أمكن، أو تطبيق تقسيم الشبكة
3. تفعيل السجلات الشاملة ومراقبة أنماط الوصول إلى /classes/Master.php
4. مراجعة سجلات الوصول للقيم المريبة في معامل ID التي تحتوي على بناء جملة SQL
إرشادات التصحيح:
1. التواصل مع SourceCodester للحصول على تصحيحات أمنية أو الترقية إلى نسخة مصححة
2. إذا لم يكن هناك تصحيح متاح، تطبيق التحقق من صحة المدخلات والاستعلامات المعاملة
3. تطبيق مبدأ أقل امتياز على حسابات قاعدة البيانات
الضوابط البديلة:
1. تطبيق قواعد جدار حماية تطبيقات الويب لحجب أنماط حقن SQL
2. نشر مراقبة نشاط قاعدة البيانات للكشف عن الاستعلامات غير الطبيعية
3. تقييد أذونات مستخدم قاعدة البيانات للقراءة فقط حيث أمكن
4. تطبيق تحديد معدل على نقاط نهاية /classes/Master.php
5. تفعيل تسجيل الاستعلامات والتنبيهات لأنماط مريبة
قواعد الكشف:
1. مراقبة معاملات ID التي تحتوي على: ' OR '1'='1, UNION SELECT, DROP TABLE
2. التنبيه على استعلامات قاعدة البيانات الفاشلة المتعددة من جلسة واحدة
3. تتبع أنماط اتصال قاعدة البيانات غير العادية
4. تسجيل جميع طلبات POST إلى /classes/Master.php?f=save_patient_history