CVE-2012-3741 - Improper Authentication

Severity

19%

Complexity

34%

Confidentiality

48%

The Restrictions (aka Parental Controls) implementation in Apple iOS before 6 does not properly handle purchase attempts after a Disable Restrictions action, which allows local users to bypass an intended Apple ID authentication step via an app that performs purchase transactions.

The Restrictions (aka Parental Controls) implementation in Apple iOS before 6 does not properly handle purchase attempts after a Disable Restrictions action, which allows local users to bypass an intended Apple ID authentication step via an app that performs purchase transactions.

CVSS 2.0 Base Score 1.9. CVSS Attack Vector: local. CVSS Attack Complexity: medium. CVSS Vector: (AV:L/AC:M/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

Type

Apple iPhone OS

First reported 12 years ago

2012-09-20 21:55:00

Last updated 7 years ago

2017-08-29 01:32:00

Affected Software

Apple iPhone OS 1.0.0

1.0.0

Apple iPhone OS 1.0.1

1.0.1

Apple iPhone OS 1.0.2

1.0.2

Apple iPhone OS 1.1.0

1.1.0

Apple iPhone OS 1.1.1

1.1.1

Apple iPhone OS 1.1.2

1.1.2

Apple iPhone OS 1.1.3

1.1.3

Apple iPhone OS 1.1.4

1.1.4

Apple iPhone OS 1.1.5

1.1.5

Apple iPhone OS 2.0

2.0

Apple iPhone OS 2.0.0

2.0.0

Apple iPhone OS 2.0.1

2.0.1

Apple iPhone OS 2.0.2

2.0.2

Apple iPhone OS 2.1

2.1

Apple iPhone OS 2.1.1

2.1.1

Apple iPhone OS 2.2

2.2

Apple iPhone OS 2.2.1

2.2.1

Apple iPhone OS 3.0

3.0

Apple iPhone OS 3.0.1

3.0.1

Apple iPhone OS 3.1

3.1

Apple iPhone OS 3.1.2

3.1.2

Apple iPhone OS 3.1.3

3.1.3

Apple iPhone OS 3.2

3.2

Apple iPhone OS 3.2.1

3.2.1

Apple iPhone OS 3.2.2

3.2.2

Apple iPhone OS 4.0

4.0

Apple iPhone OS 4.0.1

4.0.1

Apple iPhone OS 4.0.2

4.0.2

Apple iPhone OS 4.1

4.1

Apple iPhone OS 4.2.1

4.2.1

Apple iPhone OS 4.2.5

4.2.5

Apple iPhone OS 4.2.8

4.2.8

Apple iPhone OS 4.3.0

4.3.0

Apple iPhone OS 4.3.1

4.3.1

Apple iPhone OS 4.3.2

4.3.2

Apple iPhone OS 4.3.3

4.3.3

Apple iPhone OS 4.3.5

4.3.5

Apple iPhone OS 5.0

5.0

Apple iPhone OS 5.0.1

5.0.1

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.