Skip to content
Memory corruption Disclosed report Beginner

apps.owncloud.com: SSL Server Allows Anonymous Authentication Vulnerability (SMTP)

The SSL server on apps.owncloud.com accepted cipher suites that use anonymous authentication, meaning the server never proves its identity to clients. An attacker able to intercept traffic could impersonate the server to clients, enabling a man-in-the-middle attack.

ashesh Follow

Originally disclosed on HackerOne

  • Triaged in 5 hours
  • Fixed in 3 days
  • Disclosed after 21 days

Domain: https://apps.owncloud.com

The Secure Socket Layer (SSL) protocol allows for secure communication between a client and a server. The client usually authenticates the server using an algorithm like RSA or DSS. Some SSL ciphers allow SSL communication without authentication. Most common Web browsers like Microsoft Internet Explorer, Netscape and Mozilla do not use anonymous authentication ciphers by default.

A vulnerability exists in SSL communications when clients are allowed to connect using no authentication algorithm. SSL client-server communication may use several different types of authentication: RSA, Diffie-Hellman, DSS or none. When 'none' is used, the communications are vulnerable to a man-in-the-middle attack."

Impact: An attacker can exploit this vulnerability to impersonate your server to clients.

Solution: Disable support for anonymous authentication.

  1. Apache:

Typically, for Apache/mod_ssl, httpd.conf or ssl.conf should have the following lines: SSLProtocol -ALL +SSLv3 +TLSv1 SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM

For Apache/apache_ssl include the following line in the configuration file (httpsd.conf): SSLRequireCipher ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM 2) IIS:

For IIS please see: How to disable PCT 1.0, SSL 2.0, SSL 3.0, or TLS 1.0 in Internet Information Services, How to Restrict the Use of Certain Cryptographic Algorithms and Protocols in Schannel.dll, How to Determine the Cipher Suite for the Server and Client, , and How to restrict the use of certain ciphers in Internet Information Services 5.0

  1. Wu-FTP: For Wu-FTP which supports TLS, the ciphers parameter in TLS configuration file should be set to -ALL +SSLv3 +TLSv1

For more details please consult the docs/HOWTO/ssl_and_tls_ftpd.HOWTO file provided by wu-ftpd distribution.

  1. Lighttpd: For lighttpd: Locate the lighttpd config file and modify the following ssl.ciper-list line to include !aNULL. A restart of the lightttpd application is necessary.

Example: ssl.cipher-list = "TLSv1+HIGH !SSLv2 RC4+MEDIUM !aNULL !eNULL !3DES @STRENGTH"

Additional reading: http://www.cisco.com/web/about/ac123/ac147/archived_issues/ipj_1-1/ssl.html http://httpd.apache.org/docs/2.0/mod/mod_ssl.html#sslciphersuite http://www.megasecurity.org/Info/ssl_servers.html

Results:

CIPHER KEY-EXCHANGE AUTHENTICATION MAC ENCRYPTION(KEY-STRENGTH) GRADE
SSLv3_SUPPORTS_CIPHERS_WITH_NO_AUTHENTICATION _ _ _ _ _
ADH-RC4-MD5 DH None MD5 RC4(128)_ MEDIUM_
ADH-DES-CBC3-SHA DH None SHA1 3DES(168)_ HIGH_
ADH-AES128-SHA DH None SHA1 AES(128)_ MEDIUM_
ADH-AES256-SHA DH None SHA1 AES(256)_ HIGH_
ADH-CAMELLIA128-SHA DH None SHA1 Camellia(128)_ MEDIUM_
ADH-CAMELLIA256-SHA DH None SHA1 Camellia(256)_ HIGH_
ADH-SEED-SHA DH None SHA1 SEED(128)_ MEDIUM_
AECDH-RC4-SHA ECDH None SHA1 RC4(128)_ MEDIUM_
AECDH-DES-CBC3-SHA ECDH None SHA1 3DES(168)_ HIGH_
AECDH-AES128-SHA ECDH None SHA1 AES(128)_ MEDIUM_
AECDH-AES256-SHA ECDH None SHA1 AES(256)_ HIGH_
TLSv1_SUPPORTS_CIPHERS_WITH_NO_AUTHENTICATION _ _ _ _ _
ADH-RC4-MD5 DH None MD5 RC4(128) _MEDIUM_
ADH-DES-CBC3-SHA DH None SHA1 3DES(168) _HIGH_
ADH-AES128-SHA DH None SHA1 AES(128) _MEDIUM_
ADH-AES256-SHA DH None SHA1 AES(256) _HIGH_
ADH-CAMELLIA128-SHA DH None SHA1 Camellia(128) _MEDIUM_
ADH-CAMELLIA256-SHA DH None SHA1 Camellia(256) _HIGH_
ADH-SEED-SHA DH None SHA1 SEED(128) _MEDIUM_
AECDH-RC4-SHA ECDH None SHA1 RC4(128) _MEDIUM_
AECDH-DES-CBC3-SHA ECDH None SHA1 3DES(168) _HIGH_
AECDH-AES128-SHA ECDH None SHA1 AES(128) _MEDIUM_
AECDH-AES256-SHA ECDH None SHA1 AES(256) _HIGH_

The original report as published on HackerOne, by ashesh. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The server's SSL/TLS configuration enabled anonymous Diffie-Hellman (ADH) and anonymous ECDH (AECDH) cipher suites, which perform key exchange without any server authentication.

Impact

An attacker who can intercept the connection could impersonate the server to clients, though common browsers do not use anonymous ciphers by default, which limits practical exposure.

What the attacker needed

Attacker can intercept network traffic; client negotiates an anonymous cipher

The fix

Support for anonymous authentication should be disabled by removing the aNULL and ADH cipher families from the server's cipher configuration.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When your browser connects to a secure website, the site normally proves who it is with a certificate, like showing an ID card. This server also offered connection options where it shows no ID at all. Someone sitting between you and the site could then pretend to be the site, and your browser would have no way to tell.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by ashesh

View all

19 more disclosed reports, best first.

More from ownCloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.