Top Business Advertising - SQL Injection Vulnerabilities

Type vulnerlab
Reporter Iran Cyber Security Group - 0x3a (ICG SEC) [Iran-Cyber.Net] [] We Are : MOHAMMAD-NOFOZI , root3r , jok3r , pi.hack , 0day , whitewolf , MrS4jj4d , MoHaMad-Bl4ck , l3gi0n , mr.turk , nazanin_wild , Pr0mis , 0xdevil , king_k4li
Modified 2016-03-20T00:00:00


                                            Document Title:
Top Business Advertising - SQL Injection Vulnerabilities

References (Source):

Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

Product & Service Introduction:

Abstract Advisory Information:
An independent vulnerability laboratory researcher of the iran cyber security group discovered multiple remote sql injection vulnerabilities in the Top Business Advertising web-application.

Vulnerability Disclosure Timeline:
2016-03-21: Public Disclosure (Vulnerability Laboratory)

Discovery Status:

Exploitation Technique:

Severity Level:

Technical Details & Description:
A remote sql injection web vulnerability has been discovered in the Top Business Advertising web-application (2016 Q1).
The vulnerability allows remote attackers to execute own sql commands to compromise the web-applicaation or connected dbms.

The vulnerabilities are located in the `newsid` value of the `aboutus.php`,`contactus.php`,`newsdetail.php`,`productdetail.php`
and `services.php` files. Remote attackers are able to execute sql commands by injection of malicious statements via GET method request. 
The vulnerability is located on the application-side and the request method to inject/execute is GET. The security vulnerability is a 
classic order by sql injection in the `newsid` value. 

The security risk of the sql injection vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 7.0.
Exploitation of the remote sql injection web vulnerability requires no user interaction or privileged web-application user accounts.
Successful exploitation of the remote sql injection results in database management system, web-server and web-application compromise.

Request Method(s):
				[+] GET

Vulnerable File(s):
				[+] aboutus.php
				[+] contactus.php
				[+] newsdetail.php
				[+] productdetail.php
				[+] services.php

Vulnerable Parameter(s):
				[+] newsid

Proof of Concept (PoC):
The sql injection web vulnerabilities can be exploited by remote attackers without privileged web-application user account or user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.

Google Dork(s):
intext:Powered By Top Business Advertising inurl:.php?newsId=

PoC: Exploitation
http://localhost:8080/aboutus.php?newsid=Xgovernment-lab[SQL-INJECTION VULNERABILITY]--
http://localhost:8080/contactus.php?newsid=Xgovernment-lab[SQL-INJECTION VULNERABILITY]--
http://localhost:8080/newsdetail.php?newsid=Xgovernment-lab[SQL-INJECTION VULNERABILITY]--
http://localhost:8080/productdetail.php?newsid=Xgovernment-lab[SQL-INJECTION VULNERABILITY]--
http://localhost:8080/services.php?newsid=Xgovernment-lab[SQL-INJECTION VULNERABILITY]--

Solution - Fix & Patch:
The vulnerability can be patched by usage of a prepared statement in the newsid value GET method request of the aboutus.php, 
contactus.php, newsdetail.php, productdetail.php and services.php files.
Encode or escape the input of the paramter value and disallow special chars in the GET method request.

Security Risk:
The security risk of the remote sql injection web vulnerabilities in the web-application are estimated as high. (CVSS 7.0)

Credits & Authors:
Iran Cyber Security Group - 0x3a (ICG SEC) [Iran-Cyber.Net] []
We Are : MOHAMMAD-NOFOZI , root3r , jok3r , pi.hack , 0day , whitewolf , MrS4jj4d , MoHaMad-Bl4ck , l3gi0n , mr.turk , nazanin_wild , Pr0mis , 0xdevil , king_k4li

Disclaimer & Information:
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, 
including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, 
including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised 
of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing 
limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data.

Domains: 		- 						-
Contact: 	- 				-
Section: 	- 				-
Social:		- 				-
Feeds: 	- 			-
Programs: 	- 	-

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically 
redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or 
its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific 
authors or managers. To record, list, modify, use or edit our material contact (admin@ or to get a ask permission.

				    Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™