Amir - Iranian Exploit Database (www.iedb.ir) [http://www.vulnerability-lab.com/show.php?user=IEDB%20Team]VULNERLAB:1827
Document Title:
===============
Ahrare Andeysheh CMS - Multiple Web Vulnerabilities
References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1827
Release Date:
=============
2016-04-18
Vulnerability Laboratory ID (VL-ID):
====================================
1827
Common Vulnerability Scoring System:
====================================
7.5
Product & Service Introduction:
===============================
http://ahrareandeysheh.com/
Abstract Advisory Information:
==============================
An independent vulnerability laboratory researcher discovered multiple web vulnerabilities in the official Ahrare Andeysheh Content Management System.
Vulnerability Disclosure Timeline:
==================================
2016-04-18: Public Disclosure (Vulnerability Laboratory)
Discovery Status:
=================
Published
Affected Product(s):
====================
Ahrare Andeysheh
Product: Ahrare Andeysheh - Content Management System 2016 Q2
Exploitation Technique:
=======================
Remote
Severity Level:
===============
High
Technical Details & Description:
================================
Multiple web-application vulnerabilities has been discovered in the official Ahrare Andeysheh Content Management System.
The client-side issue allows remote attackers to inject own malicious script code with non-persistent attack vector to
compromise browser to web-application requests. The sql-injection vulnerabilities allow the remote attacker to execute own
malicious sql commands to compromise the database management system.
The vulnerabilities are located in the `from` and `to` values of the `archive.php` file GET method request. Remote attackers
are able to inject own malicious script code to the client-side of the vulnerable module. The request method to inject is GET
and the attack vector of the issue is non-persistent. The vulnerability is allows exploitation by cross site scripting but
also by sql-injection attack. Both parameters are vulnerable to both typ of attacks.
The security risk of the client-side cross site vulnerabilities are estimated as medium with a cvss (common vulnerability
scoring system) count of 3.3. Exploitation of the non-persistent input validation vulnerabilities requires no privileged
web-application user account and low or medium user interaction. Successful exploitation of the xss vulnerability results in
session hijacking, non-persistent phishing attacks, non-persistent external redirects to malicious source and non-persistent
manipulation of affected or connected application modules. Successful exploitation of the sql-injection vulnerability results
in web-application, web-server or database management system compromise.
Request Method(s):
[+] GET
Vulnerable File(s):
[+] archive.php
Vulnerable Parameter(s):
[+] from
[+] to
Proof of Concept (PoC):
=======================
The sql-injection vulnerabilities can be exploited by remote attackers without user interaction or privileged user account.
The cross site vulnerabilities can be exploited by remote attackers with low or medium user interaction and without privileged user account.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.
Dork(s):
"طراحی و تولید: مؤسسه احرار اندیشه"
PoC: Exploitation SQL-INJECTION
http://localhost:8080/archive.php?startrec=2&service_id=-1&cat_id=-1&rpp=20&from=1395/01/01&to=1395/01/26&sec_id=[SQL-INJECTION VULNERABILITY!]
http://localhost:8080/archive.php?startrec=2&service_id=-1&cat_id=-1&rpp=20&from=1395[SQL-INJECTION VULNERABILITY!]&to=1395&sec_id=9%27)oR5967562=5967562--
PoC: Exploitation XSS
http://enghelab-news.ir/archive.php?startrec=2&service_id=-1&cat_id=-1&rpp=20&from=1395/01/01'"><script>alert('Amir')</script>&to=1395/01/26&sec_id=99
Picture(s):
http://up.iedb.ir/uploads/ahrar-bug1.jpg
http://up.iedb.ir/uploads/ahrar-bug2.jpg
Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure usage of a prepared statement in the archive.php file GET method request.
Disallow the usage of special chars in the from and to values of the arhcive.php file GET method request.
Restrict the input and escape the context, ensure that the filter captures the client-side requests to prevent further injection attacks.
Security Risk:
==============
The security risk of the vulnerabilities in the content management system are estimated as high. (CVSS 7.5)
Credits & Authors:
==================
Amir - Iranian Exploit Database (www.iedb.ir) [http://www.vulnerability-lab.com/show.php?user=IEDB%20Team]
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: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com
Contact: [email protected] - [email protected] - [email protected]
Section: magazine.vulnerability-lab.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact
Social: twitter.com/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab
Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php
Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.php
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 [email protected]) to get a ask permission.
Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™