CWE Code: 264
Vulnerability Type: privilege_escalation
CVSS Score: 4.0
CWE Name:  Permissions Privileges and Access Controls
Summary: on amcrest ipm-721s v2.420.ac00.16.r.20160909 devices, the users on the device are divided into 2 groups "admin" and "user". however, as a part of security analysis it was identified that a low privileged user who belongs to the "user" group and who has access to login in to the web administrative interface of the device can add a new administrative user to the interface using http apis provided by the device and perform all the actions as an administrative user by using that account. if the firmware version v2.420.ac00.16.r 9/9/2016 is dissected using binwalk tool, one obtains a _user-x.squashfs.img.extracted archive which contains the filesystem set up on the device that many of the binaries in the /usr folder. the binary "sonia" is the one that has the vulnerable functions that performs the various action described in http apis. if one opens this binary in ida-pro one will notice that this follows a arm little endian format. the function at address 0x00429084 in ida pro is the one that processes the http api request for "adduser" action. if one traces the calls to this function, it can be clearly seen that the function sub_ 41f38c at address 0x0041f588 parses the call received from the browser and passes it to the "adduser" function without any authorization check.
Access Authentication: SINGLE
Access Complexity: LOW
Access Vector: NETWORK
Impact (C/I/A): NONE/PARTIAL/NONE
Published Date: 2019-07-03
Last Modified Date: 2019-07-11