The MasterStudy LMS WordPress Plugin for Online Courses and Education plugin for WordPress is vulnerable to Time-based Blind SQL Injection via the 'order' and 'orderby' parameters in the /lms/stm-lms/order/items REST API endpoint in versions up to and including 3.7.25. This is due to insufficient input sanitization combined with a design flaw in the custom Query builder class that allows unquoted SQL injection in ORDER BY clauses. When the Query builder detects parentheses in the sort_by parameter, it treats the value as a SQL function and directly concatenates it into the ORDER BY clause without any quoting. While esc_sql() is applied to escape quotes and backslashes, this cannot prevent ORDER BY injection when the values themselves are not wrapped in quotes in the resulting SQL statement. This makes it possible for authenticated attackers, with subscriber-level access and above, to append arbitrary SQL queries via the ORDER BY clause to extract sensitive information from the database including user credentials, session tokens, and other confidential data through time-based blind SQL injection techniques.
MasterStudy LMS WordPress Plugin versions up to 3.7.25 are vulnerable to Time-based Blind SQL Injection through the REST API endpoint /lms/stm-lms/order/items via the 'order' and 'orderby' parameters. Authenticated attackers with subscriber-level access can exploit insufficient input sanitization in the custom Query builder class to inject SQL code into ORDER BY clauses.
تحتوي إضافة MasterStudy LMS على ثغرة حقن SQL عمياء قائمة على الوقت في نقطة نهاية REST API. يمكن للمهاجمين المصرحين بمستوى المشترك أو أعلى استغلال عدم كفاية تنظيف المدخلات في فئة Query builder المخصصة. يتم السماح بحقن الكود مباشرة في جملة ORDER BY دون اقتباس مناسب.
MasterStudy LMS WordPress Plugin versions up to 3.7.25 are vulnerable to Time-based Blind SQL Injection through the REST API endpoint /lms/stm-lms/order/items via the 'order' and 'orderby' parameters. Authenticated attackers with subscriber-level access can exploit insufficient input sanitization in the custom Query builder class to inject SQL code into ORDER BY clauses.
Update MasterStudy LMS WordPress Plugin to version 3.7.26 or later immediately. Implement Web Application Firewall (WAF) rules to detect and block SQL injection attempts. Review and restrict REST API access to trusted users only. Apply principle of least privilege for user roles and permissions.
قم بتحديث إضافة MasterStudy LMS لـ WordPress إلى الإصدار 3.7.26 أو أحدث فوراً. طبق قواعد جدار حماية تطبيقات الويب لكشف محاولات حقن SQL. راجع وقيد الوصول إلى REST API للمستخدمين الموثوقين فقط. طبق مبدأ أقل صلاحية للأدوار والأذونات.