Title: ====== Switchvox Asterisk v5.1.2 - Multiple Web Vulnerabilities Date: ===== 2012-09-10 References: =========== http://www.vulnerability-lab.com/get_content.php?id=700 VL-ID: ===== 700 Common Vulnerability Scoring System: ==================================== 4.1 Introduction: ============= Switchvox is based on the open source IP PBX, Asterisk, and the Linux operating system. It provides an easy to deploy solution for businesses looking for the power of an enterprise PBX with high reliability, excellent support, and low cost. The simple point-and-click online interface allows virtually anyone to set up and manage the system, and because it comes as a pre-configured turnkey package, the server and phones are all plug and play. Switchvox now offers a free edition. This edition is limited to 15 Extensions (Requires Free registration) and does not support the digital Digium cards, other than that it is similar to the SOHO version. Switchvox supports unlimited extensions and has all the basic features that you d expect from a PBX, like voicemail, custom music on hold, time based behaviors, conferencing, call parking, intercom and paging. It also includes features that are typically associated with expensive enterprise systems, such as ACD queues, find me/follow me functionality, unlimited powerful IVR menus that can interact with your company s databases (Press one for sales or please enter your account number followed by the pound key...), MS Outlook integration, and advanced call reporting. Starting at $995, Switchvox is suitable for businesses of one person to hundreds looking to elevate their communication, improve productivity, and save money on long distance charges. Switchvox supports VoIP, regular phone lines, and voice T1 connections, so that your business can configure the system to best handle your typical calling behavior. (Copy of the Vendor Homepage: http://www.switchvox.com/ ) Abstract: ========= The Vulnerability Laboratory Research Team discovered multiple persistent web vulnerabilities in the Switchvox Appliance with Asterisk v5.1.2. Report-Timeline: ================ 2011-09-10: Public Disclosure Status: ======== Published Exploitation-Technique: ======================= Remote Severity: ========= Medium Details: ======== Multiple persistent input validation vulnerabilities are detected in the Switchvox Appliance with Asterisk v5.1.2. The bugs allow remote attackers to implement/inject malicious script code on the application side. The vulnerabilities are located in setup and tools modules of the admin panel. Successful exploitation of the vulnerability can lead to session hijacking (manager/admin) or stable context manipulation. Exploitation requires low user inter action & low or medium privileged user web application account. Vulnerable Module(s): [+] Tools -> Sound Manager -> Create sound [+] Tools -> SugarCRM switchboard Panel -> setup [+] Setup -> Groups -> Create Extension Group [+] Setup -> Outgoing calls -> Create Outgoing Call rule [+] Setup -> Incoming Calls -> Caller DID routes -> Create Single DID Route [+] Setup -> Incoming Calls -> Caller ID Rules -> Create Call transfer Call Vulnerable Parameter(s): [+] [Description] [+] [SugarCRM Web URL] [SugarCRM SOAP URL] [+] [Note] Proof of Concept: ================= The persistent vulnerabilities can be exploited by local low privileged user account with low or medium required user inter action. For demonstration or reproduce ... Review: Tools -> Sound Manager -> Create sound [Description] PoC: Review: Tools -> SugarCRM switchboard Panel -> setup [SugarCRM Web URL] [SugarCRM SOAP URL] --> to see the poc press on test CRM Settings PoC: Review: Setup -> Groups -> Create Extension Group [Note] PoC: Review: Setup -> Outgoing calls -> Create Outgoing Call rule [Note] PoC: Review: Setup -> Incoming Calls -> Caller DID routes -> Create Single DID Route [Note] PoC: Review: Setup -> Incoming Calls -> Caller ID Rules -> Create Call transfer Call [Note] PoC: 1- Tools -> Sound Manager -> Create sound [Description] 2- Tools -> SugarCRM switchboard Panel -> setup [SugarCRM Web URL] [SugarCRM SOAP URL] --> to see the poc press on test CRM Settings 3- Setup -> Groups -> Create Extension Group [Note] 4- Setup -> Outgoing calls -> Create Outgoing Call rule [Note] 5- Setup -> Incoming Calls -> Caller DID routes -> Create Single DID Route [Note] 6- Setup -> Incoming Calls -> Caller ID Rules -> Create Call transfer Call [Note] 1. URL: https://asterisk-switchvox.127.0.0.1:1337/admin?cmd=modify_sound&sound_id=478
Description: Your new password must be different than your old password. Please try again.
>"<[PERSISTENT INJECTED SCRIPT CODE!]">
>"<[PERSISTENT INJECTED SCRIPT CODE!]")
2. URL: https://asterisk-switchvox.127.0.0.1:1337/admin?plugin_name=sugarcrm&admin_sbplugins_id=1&cmd=modify_crm_plugin&sugarcrm=1 ["1101"],"plugin_type":"system","plugin_description":"Lookup up and display contact information straight from your SugarCRM server.","plugin_display":"SugarCRM","plugin_name":"sugarcrm","admin_sbplugins_id":"1","proxy":"http://>\"<[PERSISTENT INJECTED SCRIPT CODE!]") ","uri":"http://>\"<[PERSISTENT INJECTED SCRIPT CODE!]") 3. URL: https://asterisk-switchvox.127.0.0.1:1337/admin?cmd=extension_groups
>"<[PERSISTENT INJECTED SCRIPT CODE!]") >"<[PERSISTENT INJECTED SCRIPT CODE!]")>"<[PERSISTENT INJECTED SCRIPT CODE!]")
4. URL: https://asterisk-switchvox.127.0.0.1:1337/admin?cmd=add_outgoing_rule {"call_through":{"internal":{}},"priority":"9","name":"test","description":">\"<[PERSISTENT INJECTED SCRIPT CODE!]") >\" <[PERSISTENT INJECTED SCRIPT CODE!]>","failovers":{},"is_final":"0","pattern":"Begins with 13 and the remainder is 23 to 90 digits in length","id":"103","context_type":"USER"}],"total_items":"9"}},"allExtensions": 5. URL: https://asterisk-switchvox.127.0.0.1:1337/admin?cmd=incoming_rules&passthrough=1#pageTab=did_routes code "number":"123","name":"test","note":">\"<[PERSISTENT INJECTED SCRIPT CODE!]")","force_fax":"0","any_provider":"1","type":"route_number","id":"3","call_type":"0"}, {"priority":"20000","action":"busy","type":"catchall_unknown_route","id":"1"}],"total_items":"3"}},"switchvox_version":"40062"," menu_structure":[{"children":[{"children":[{"cmd":"view_extensions","id":"manage_extensions","display":"Manage"},{"cmd":"extension_groups","id":"extension_groups","display":"Groups"},{"cmd":"extension_templates","id":"extension_templates","display":"Templates"}, {"cmd":"extension_permissions","id":"extension_permissions","display":"Permissions"},{"cmd":"phone_setup","id":"extension_phones","display":"Phones"}, {"cmd":"extension_settings","id":"extension_settings","display":"Settings"}],"id":"extensions","column":1,"display":"Extensions"},{"children": [{"cmd":"channel_groups","id":"channel_groups","display":"Channel Groups"},{"cmd":"voip_providers","id":"voip_providers","display":"VOIP Providers"}, {"cmd":"outgoing_rules","id":"outgoing_calls","display":"Outgoing Calls"}, 6. URL: https://asterisk-switchvox.127.0.0.1:1337/admin?cmd=incoming_rules#pageTab=caller_id_rules Risk: ===== The security risk of the persistent input validation vulnerabilities are estimated as medium(+). Credits: ======== Vulnerability Laboratory [Research Team] - Ibrahim M. El-Sayed [the StOrM) (storm@vulnerability-lab.com) [http://iel-sayed.blogspot.com] Disclaimer: =========== 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 vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.vulnerability-lab.com/register Contact: admin@vulnerability-lab.com - support@vulnerability-lab.com - research@vulnerability-lab.com Section: video.vulnerability-lab.com - forum.vulnerability-lab.com - news.vulnerability-lab.com 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 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, sourcecode, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact (admin@vulnerability-lab.com or support@vulnerability-lab.com) to get a permission. Copyright © 2012 | Vulnerability Laboratory -- VULNERABILITY RESEARCH LABORATORY LABORATORY RESEARCH TEAM CONTACT: research@vulnerability-lab.com