Exploit-DB #21316
Description: ASTPP VoIP Billing (4cf207a) - Multiple Vulnerabilities
Type: webapps
Platform: php
Date: 2012-09-14
Author: Vulnerability-Lab

Exploit:
Title:
======
ASTPP VoIP Billing (4cf207a) - Multiple Web Vulnerabilities


Date:
=====
2012-08-17


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=687


VL-ID:
=====
687


Common Vulnerability Scoring System:
====================================
4


Introduction:
=============
ASTPP is a billing solution for Freeswitch and Asterisk. It supports pre-paid and post-paid billing with call 
rating and credit control. It also provides many other features such as calling cards, least cost routing (LCR), 
did management, resellers, callbacks, etc. ...

Customer Account Features
Reseller Support
Call Rating Capabilities
Least Cost & Failover Routing
Credit Control
DID Mapping
Automated Account & Device Management
Authentication
Calling Cards
Vendor Billing
Asterisk -Real-time Support

ASTPP is able to integrate with OSCommerce to provide a Web store for your users to purchase calling cards and sign up 
for VoIP accounts. We also support multiple currency for each account type with real-time update using 
Yahoo Finance (http://finance.yahoo.com/currency-converter).

(Copy of the Vendor Homepage: http://www.astpp.org/ )


Abstract:
=========
The Vulnerability Laboratory Research Team discovered multiple persistent web vulnerabilities in the ASTPP VoIP (4cf207a) phone billing web application.


Report-Timeline:
================
2011-08-17:	Public Disclosure


Status:
========
Published


Exploitation-Technique:
=======================
Remote


Severity:
=========
High


Details:
========
Multiple persistent input validation vulnerabilities are detected in the ASTPP VoIP (4cf207a) phone billing web application.
The web vulnerabilities allow remote attackers to implement/inject malicious script code on the application side (persistent). 

The first persistent web vulnerability is located in the user management (admin) module with the bound vulnerable firstname, 
lastname & company parameters. The first vulnerability can easily be exploited by customers to execute script code out of the 
administrator user management module (backend). The customer can register with the malicious values or change the vulnerable 
values via update profile after successful registration with a non malicious user.

The secound and third vulnerabilities are located in the add dids and add trunks module with the bound vulnerable access number, 
note, trunk name, dialed number mods parameters. 

The 4th persistent vulnerability is located in the Taxes - Tax Information modules with the bound vulnerable priority & description 
application parameters. 

Successful exploitation of the vulnerabilities can lead to session hijacking (manager/admin) or stable (persistent) context 
manipulation. Exploitation requires low user inter action & low privileged web application user account.

Vulnerable Module(s):
				[+] Account Management
				[+] DIDs -  Add New Your Own DIDs
				[+] Trunks - Add Trunks
				[+] Taxes - Tax Information


Vulnerable Parameter(s):
				[+] Firstname, Lastname & Company
				[+] Access Number & Note
				[+] Trunk Name, Dialed Number Mods - Actions
				[+] Priority & Description


Affected Section(s):
				[+] Account Listing - Actions
				[+] DIDs - Edit Mask Listing
				[+] Trunks Listing (Management)
				[+] Tax - Edit Mask Listing


Proof of Concept:
=================
The persistent vulnerabilities can be exploited by remote attacker with low privileged user account and with low required 
user inter action. For demonstration or reproduce ...


Review: Account Management - User Account Listing

<div style="text-align: center; width: 90px; white-space: normal;"><div style="text-align: center; width: 
90px; white-space: normal;">venky</div></div></td><td align="center"><div style="text-align: center; width: 
90px; white-space: normal;"><div style="text-align: center; width: 90px; white-space: normal;"> "></div></div></td>
<td align="center"><div style="text-align: center; width: 90px; white-space: normal;"><div style="text-align: center; 
width: 90px; white-space: normal;[PERSISTENT INJECTED SCRIPT CODE] "></div></div></td><td align="center"><div style="text-align: center; width: 90px; 
white-space: normal;"><div style="text-align: center; width: 90px; white-space: normal;"[PERSISTENT INJECTED SCRIPT CODE]></div></div></td><td 
align="right"><div style="text-align: right; width: 70px; white-space: normal;"><div style="text-align: right; width: 
70px; white-space: normal;">0.0000 USD</div></div></td><td align="right"><div style="text-align: right; width: 70px; 
white-space: normal;"><div style="text-align: right; width: 75px; white-space: normal;">0.0000 USD</div></div></td><td 
align="center"><div style="text-align: center; width: 70px; white-space: normal;"><div style="text-align: center; width: 
70px; white-space: normal;">daily</div></div></td><td align="center"><div style="text-align: center; width: 50px; 
white-space: normal;"><div style="text-align: center; width: 50px; white-space: normal;">No</div></div></td><td align="center">
<div style="text-align: center; width: 90px; white-space: normal;"><div style="text-align: center; width: 90px; white-space: 
normal;">Customer</div></div></td><td align="center"><div style="text-align: center; width: 90px; white-space: normal;">
<div style="text-align: center; width: 90px; white-space: normal;">Active</div></div></td><td align="center"><div style="text-align: 
center; width: 120px; white-space: normal;"><div style="text-align: center; width: 120px; white-space: 
normal;"><a href="http://demo.astpp.org/accounts/payment_process/asdsadfas%20"><[PERSISTENT INJECTED SCRIPT CODE]"="" "="" 
class="icon" style="text-decoration:none;background-image:url(/images/payment.png);" rel="facebox" title="ProcessPayment">
&nbsp;</a><a href="http://server/accounts/account_detail/asdsadfas 


Review: DIDs

<li>