CVE-2013-3613 - Improper Authentication

Severity

78%

Complexity

99%

Confidentiality

115%

Dahua DVR appliances do not properly restrict UPnP requests, which makes it easier for remote attackers to obtain access via vectors involving a replay attack against the TELNET port.

Dahua DVR appliances do not properly restrict UPnP requests, which makes it easier for remote attackers to obtain access via vectors involving a replay attack against the TELNET port.

CVSS 2.0 Base Score 7.8. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (AV:N/AC:L/Au:N/C:C/I:N/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

dahuasecurity

First reported 11 years ago

2013-09-17 12:04:00

Last updated 11 years ago

2013-09-17 18:35:00

Affected Software

dahuasecurity DVR0404HD-A

dahuasecurity DVR0404HD-L

dahuasecurity DVR0404HD-S

dahuasecurity DVR0404HD-U

dahuasecurity DVR0404HF-A-E

dahuasecurity DVR0404HF-AL-E

dahuasecurity DVR0404HF-S-E

dahuasecurity DVR0404HF-U-E

dahuasecurity DVR0804

dahuasecurity DVR0804HD-L

dahuasecurity DVR0804HD-S

dahuasecurity DVR0804HF-A-E

dahuasecurity DVR0804HF-AL-E

dahuasecurity DVR0804HF-L-E

dahuasecurity DVR0804HF-S-E

dahuasecurity DVR0804HF-U-E

dahuasecurity DVR1604HD-L

dahuasecurity DVR1604HD-S

dahuasecurity DVR1604HF-A-E

dahuasecurity DVR1604HF-AL-E

dahuasecurity DVR1604HF-L-E

dahuasecurity DVR1604HF-S-E

dahuasecurity DVR1604HF-U-E

dahuasecurity DVR2104C

dahuasecurity DVR2104H

dahuasecurity DVR2104HC

dahuasecurity DVR2104HE

dahuasecurity DVR2108C

dahuasecurity DVR2108H

dahuasecurity DVR2108HC

dahuasecurity DVR2108HE

dahuasecurity DVR2116C

dahuasecurity DVR2116H

dahuasecurity DVR2116HC

dahuasecurity DVR2116HE

dahuasecurity DVR2404HF-S

dahuasecurity DVR2404LF-AL

dahuasecurity DVR2404LF-S

dahuasecurity DVR3204HF-S

dahuasecurity DVR3204LF-AL

dahuasecurity DVR3204LF-S

dahuasecurity DVR3224L

dahuasecurity DVR3232L

dahuasecurity DVR5104C

dahuasecurity DVR5104H

dahuasecurity DVR5104HE

dahuasecurity DVR5108C

dahuasecurity DVR5108H

dahuasecurity DVR5108HE

dahuasecurity DVR5116C

dahuasecurity DVR5116H

dahuasecurity DVR5116HE

dahuasecurity DVR5204A

dahuasecurity DVR5204L

dahuasecurity DVR5208A

dahuasecurity DVR5208L

dahuasecurity DVR5216A

dahuasecurity DVR5216L

dahuasecurity DVR5404

dahuasecurity DVR5408

dahuasecurity DVR5416

dahuasecurity DVR5804

dahuasecurity DVR5808

dahuasecurity DVR5816

dahuasecurity DVR6404LF-S

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.