Document Title: =============== Flash Operator Panel 2.31.03 - CSV Persistent Vulnerability References (Source): ==================== Release Date: ============= 2016-10-05 Vulnerability Laboratory ID (VL-ID): ==================================== 1908 Common Vulnerability Scoring System: ==================================== 3.6 Product & Service Introduction: =============================== The most comprehensive and affordable reporting and realtime monitor package for AsteriskA(c) 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: ) Abstract Advisory Information: ============================== The vulnerability laboratory core research team discovered a script code inject web vulnerability in the official Flash Operator Panel v2.31.03. Vulnerability Disclosure Timeline: ================================== 2016-10-05: 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: ======================= Local Severity Level: =============== Medium Technical Details & Description: ================================ A script code inject and cross site web vulnerability has been discovered in the Flash Operator Panel v2.31.03. The issue allows an attacker to inject own malicious script code to the application-side of the vulnerable module. The vulnerability is located in all the csv file contact input parameters. Remote attackers are able to generate a malicious csv contact file with malicious included script code to manipulate the contacts module on import. The attack requires the exchange of the contacts csv file during the import/export. The encode of the import and export is insecure performed, thus results in a persistent execution in the contacts module of the fop2 user control panel. The request method to inject is POST and the attack vector is located on the application-side of the web-application. The execute occurs each time the admin visits the main contacts module via settings. The security risk of the issue is estimated as medium with a cvss (common vulnerability scoring system) count of 3.6. Exploitation of the vulnerability requires a low privileged web-application user account and no user interaction. Successful exploitation of the vulnerability results in persistent phishing attacks, session hijacking, persistent external redirect to malicious sources and persistent manipulation of affected or connected web module context. Request Method(s): [+] POST Vulnerable Modul(s): [+] Contacts - Import CSV Vulnerable Parameter(s): [+] id [+] firstname [+] lastname [+] company [+] address [+] phone1 [+] phone2 [+] email [+] picture Proof of Concept (PoC): ======================= The script code inject web vulnerability can be exploited by the local import function of the web-application with local user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. PoC: Exploit (.csv) PoC: Visual_Phonebook.csv id,firstname,lastname,company,address,email,phone1,phone2,picture 1,">""