CVE-2009-1580 - Improper Authentication

Severity

57%

Complexity

86%

Confidentiality

81%

Session fixation vulnerability in SquirrelMail before 1.4.18 allows remote attackers to hijack web sessions via a crafted cookie.

Session fixation vulnerability in SquirrelMail before 1.4.18 allows remote attackers to hijack web sessions via a crafted cookie.

CVSS 2.0 Base Score 5.8. CVSS Attack Vector: network. CVSS Attack Complexity: medium. CVSS Vector: (AV:N/AC:M/Au:N/C:P/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 15 years ago

2009-05-14 17:30:00

Last updated 7 years ago

2017-09-29 01:34:00

Affected Software

SquirrelMail 0.1

0.1

SquirrelMail 0.2.1

0.2.1

SquirrelMail 0.4

0.4

SquirrelMail 0.5

0.5

SquirrelMail 1.0

1.0

SquirrelMail 1.0.1

1.0.1

SquirrelMail 1.0.2

1.0.2

SquirrelMail 1.0.3

1.0.3

SquirrelMail 1.0.4

1.0.4

SquirrelMail 1.0.5

1.0.5

SquirrelMail 1.0.6

1.0.6

SquirrelMail 1.2.0

1.2.0

SquirrelMail 1.2.1

1.2.1

SquirrelMail 1.2.2

1.2.2

SquirrelMail 1.2.3

1.2.3

SquirrelMail 1.2.4

1.2.4

SquirrelMail 1.2.5

1.2.5

SquirrelMail 1.2.6

1.2.6

SquirrelMail 1.2.7

1.2.7

SquirrelMail 1.2.8

1.2.8

SquirrelMail 1.2.9

1.2.9

SquirrelMail 1.2.10

1.2.10

SquirrelMail 1.2.11

1.2.11

SquirrelMail 1.4.0

1.4.0

SquirrelMail 1.4.1

1.4.1

SquirrelMail 1.4.2

1.4.2

SquirrelMail 1.4.3 Release Candidate 1

1.4.3

SquirrelMail 1.4.4 Release Candidate 1

1.4.4

SquirrelMail 1.4.6 Release Candidate 1

1.4.6

SquirrelMail 1.4.7

1.4.7

SquirrelMail 1.4.15 Release Candidate 1

1.4.15

SquirrelMail 1.4.16

1.4.16

SquirrelMail

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.