CVE-2014-9043 - Improper Authentication

Severity

50%

Complexity

99%

Confidentiality

48%

The user_ldap (aka LDAP user and group backend) application in ownCloud before 5.0.18, 6.x before 6.0.6, and 7.x before 7.0.3 allows remote attackers to bypass authentication via a null byte in the password and a valid user name, which triggers an unauthenticated bind.

The user_ldap (aka LDAP user and group backend) application in ownCloud before 5.0.18, 6.x before 6.0.6, and 7.x before 7.0.3 allows remote attackers to bypass authentication via a null byte in the password and a valid user name, which triggers an unauthenticated bind.

CVSS 2.0 Base Score 5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (AV:N/AC:L/Au:N/C:N/I:P/A:N).

Demo Examples

Improper Authentication

CWE-287

The following code intends to ensure that the user is already logged in. If not, the code performs authentication with the user-provided username and password. If successful, it sets the loggedin and user cookies to "remember" that the user has already logged in. Finally, the code performs administrator tasks if the logged-in user has the "Administrator" username, as recorded in the user cookie.


               
}
}
ExitError("Error: you need to log in first");
);
);
DoAdministratorTasks();

Unfortunately, this code can be bypassed. The attacker can set the cookies independently so that the code does not check the username and password. The attacker could do this with an HTTP request containing headers such as:


               
[body of request]

By setting the loggedin cookie to "true", the attacker bypasses the entire authentication check. By using the "Administrator" value in the user cookie, the attacker also gains privileges to administer the software.

Improper Authentication

CWE-287

Overview

First reported 10 years ago

2015-02-04 18:59:00

Last updated 10 years ago

2015-02-05 15:21:00

Affected Software

ownCloud 5.0.0

5.0.0

ownCloud 5.0.1

5.0.1

ownCloud 5.0.2

5.0.2

ownCloud 5.0.3

5.0.3

ownCloud 5.0.4

5.0.4

ownCloud 5.0.5

5.0.5

ownCloud 5.0.6

5.0.6

ownCloud 5.0.7

5.0.7

ownCloud 5.0.8

5.0.8

ownCloud 5.0.9

5.0.9

ownCloud 5.0.10

5.0.10

ownCloud 5.0.11

5.0.11

ownCloud 5.0.12

5.0.12

ownCloud 5.0.13

5.0.13

ownCloud 5.0.14

5.0.14

ownCloud 5.0.14a

5.0.14

ownCloud 5.0.15

5.0.15

ownCloud 5.0.16

5.0.16

ownCloud

ownCloud 6.0.0

6.0.0

ownCloud 6.0.1

6.0.1

ownCloud 6.0.2

6.0.2

ownCloud 6.0.3

6.0.3

ownCloud 6.0.4

6.0.4

ownCloud ownCloud 6.0.5

6.0.5

ownCloud ownCloud 7.0.0

7.0.0

ownCloud ownCloud 7.0.1

7.0.1

ownCloud ownCloud 7.0.2

7.0.2

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.