Ubiquiti Networks BB #9 - Invoice Persistent Vulnerabilities

Type vulnerlab
Reporter Milan Solanki - [http://www.vulnerability-lab.com/show.php?user=Milan%20A%20Solanki]
Modified 2016-02-21T00:00:00


                                            Document Title:
Ubiquiti Networks BB #9 - Invoice Persistent Vulnerabilities

References (Source):


Video View: https://www.youtube.com/watch?v=5uiXWxJzNFk

Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

Product & Service Introduction:
Ubiquiti Networks - airCRM - Control and Configure All Your Devices in One Interface. Provision, monitor and manage all devices from a 
central interface. Enjoy faster deployments, healthier networks & faster customer service response times.

(Copy of the Vendor Homepage: https://aircrm.ubnt.com )

Abstract Advisory Information:
An independent vulnerability laboratory researcher discovered an application-side web vulnerability in the official Ubiquiti Networks airCRM online service web-application.

Vulnerability Disclosure Timeline:
2015-12-09: Researcher Notification & Coordination (Milan Solanki)
2015-12-23: Vendor Notification (Ubiquiti Networks Security Team - Bug Bounty Program)
2015-12-23: Vendor Response/Feedback (Ubiquiti Networks Security Team - Bug Bounty Program)
2015-12-23: Vendor Fix/Patch (Ubiquiti Networks Developer Team)
2016-02-22: Public Disclosure (Vulnerability Laboratory)

Discovery Status:

Affected Product(s):

Exploitation Technique:

Severity Level:

Technical Details & Description:
An application-side cross site scripting web vulnerability has been discovered in the official Ubiquiti Networks airCRM online service web-application.
The security vulnerability allows remote attackers to inject own script code on the application-side of the affected application module.

The vulnerabilities are located in the input Name fields in the Billing Section. Remote attackers with low privilege web-application user accounts are 
able to inject own malicious script code via POST method request. The vulnerability is located on the application-side of the vulnerable service.

The security risk of the application-side cross site vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.8. 
Exploitation of the persistent input validation web vulnerability requires a low privileged web-application user account and low or medium user interaction. 
Successful exploitation of the vulnerability results in session hijacking, persistent phishing attacks, persistent external redirects to malicious source 
and persistent manipulation of affected or connected application modules.

Request Method(s):
						[+] POST

Vulnerable Service(s):
						[+] aircrm.ubnt.com
Vulnerable Module(s):
						[+] Billings
Vulnerable Parameter(s):
						[+] Business Name 
						[+] Residental First Name
						[+] Residental Last  Name

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

Manual steps to reproduce the vulnerability ...
1. Go to the subscriber module
2. Create with name as xss payload  
Note: <--`<img/src=` onerror=alert(document.cookie)> --!>
3. Click at bottom on invoice button
4. Now, the payload directly executes and can be shared
5. Successful reproduce of the vulnerability!

Video PoC:


Solution - Fix & Patch:
The vulnerability can be patched by a secure parse and encode of the vulnerable input fields. Restrict the input and disallow usage of special chars.
Filter and setup a secure exception handling that prevents the persistent execution in the output location.

Security Risk:
The security risk of application-side input validation web vulnerability in the frontend of the airCRM web-application is estimated as medium. (CVSS 3.8)

Credits & Authors:
Milan Solanki - [http://www.vulnerability-lab.com/show.php?user=Milan%20A%20Solanki]

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 vendor licenses, 
policies, deface websites, hack into databases or trade with fraud/stolen material.

Domains:    www.vulnerability-lab.com   	- www.vuln-lab.com			       		- www.evolution-sec.com
Contact:    admin@vulnerability-lab.com 	- research@vulnerability-lab.com 	       		- admin@evolution-sec.com
Section:    magazine.vulnerability-db.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/

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 (feed), modify, use or edit our material contact 
(admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission.

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