-
Notifications
You must be signed in to change notification settings - Fork 513
[GHSA-h755-8qp9-cq85] protobufjs Prototype Pollution vulnerability #6608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GHSA-h755-8qp9-cq85] protobufjs Prototype Pollution vulnerability #6608
Conversation
|
📋 الملف يحتوي على: |
1 similar comment
|
📋 الملف يحتوي على: |
asrar-mared
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
تم المراجع والاصلاح
advisories/github-reviewed/2023/07/GHSA-h755-8qp9-cq85/GHSA-h755-8qp9-cq85.json
Show resolved
Hide resolved
| "introduced": "6.10.0" | ||
| }, | ||
| { | ||
| "fixed": "7.2.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"fixed": "6.11.4"
Updates
Comments
🛡️ حل ثغرة Prototype Pollution في protobufjs
درع زايد - مؤسسة الرئاسة | Zayed Shield - Presidential Office
📋 ملخص الثغرة | Vulnerability Summary
تسمح الثغرة للمهاجم بتلويث
Object.prototypeعبر رسالة protobuf خبيثة، مما يؤدي إلى:طرق الاستغلال:
parse()لتحليل رسائل protobuf.protoعبرload()/loadSync()setParsedOption()أوutil.setProperty()🔧 الحل السريع | Quick Fix
1️⃣ تحديث مباشر | Direct Update
2️⃣ تعديل package.json
{ "dependencies": { "protobufjs": ">=7.2.5" }, "overrides": { "protobufjs": ">=7.2.5" }, "pnpm": { "overrides": { "protobufjs": ">=7.2.5" } } }3️⃣ حل التبعية المتعدية | Transitive Dependency Fix
🔒 الحل الشامل | Comprehensive Solution
خطوة 1: النسخ الاحتياطي
# نسخ احتياطي لملفات القفل cp pnpm-lock.yaml pnpm-lock.yaml.backup cp package.json package.json.backupخطوة 2: التنظيف
# حذف الحزم القديمة rm -rf node_modules rm pnpm-lock.yamlخطوة 3: التحديث
في
package.json:{ "dependencies": { "firebase": "^10.7.1", "protobufjs": "^7.2.5" }, "resolutions": { "protobufjs": "7.2.5" }, "pnpm": { "overrides": { "protobufjs": "7.2.5" } } }خطوة 4: إعادة التثبيت
✅ التحقق من الحل | Solution Verification
1️⃣ فحص الإصدار
2️⃣ فحص الثغرات
3️⃣ اختبار التطبيق
🧪 مراجعة الحل | Solution Review
✅ Checklist المراجعة
📊 مراجعة ما بعد الحل | Post-Fix Review
المراجعة الفنية | Technical Review
اختبار الأمان | Security Testing
🔍 الفحص النهائي | Final Inspection
سكريبت فحص شامل
📝 التوثيق | Documentation
تقرير Git Commit
تقرير مؤسسي
🚀 الوقاية المستقبلية | Future Prevention
1️⃣ إعداد GitHub Dependabot
.github/dependabot.yml:
2️⃣ إضافة فحص تلقائي
package.json:
{ "scripts": { "preinstall": "npx npm-force-resolutions", "postinstall": "pnpm audit --audit-level moderate", "security-check": "pnpm audit && npx snyk test" } }3️⃣ CI/CD Security Check
.github/workflows/security.yml:
📞 جهات الاتصال | Contact
مؤسسة الرئاسة - مشروع درع زايد
Developer: asrar-mared
Email: nike49424@proton.me
🛡️ الختام
"نحمي... ندافع... ننتصر"
We Protect... We Defend... We Win
✅ الثغرة تم حلها بنجاح
✅ النظام آمن ومحمي
✅ جاهز للإنتاج