Samsung provides a wide range of DVR products, all working with nearly the same firmware. The vulnerabile firmware, version <= 1.10, it’s a Linux embedded system that expose a web interface through the lighttpd webserver and CGI pages.
The authenticated session is tracked using two cookies, called
DATA2, containing respectively the base64 encoded username and password. So, the first advise for the developers is to don’t put the user credentials into the cookies!
Anyway, the critical vulnerability is that in most of the CGI, the session check is made in a wrong way, which allows to access protected pages simply putting an arbitrary cookie into the HTTP request. Yes, that’s all.
This vulnerability allows remote unauthenticated users to:
- Get/set/delete username/password of local users (/cgi-bin/setup_user)
- Get/set DVR/Camera general configuration
- Get info about the device/storage
- Get/set the NTP server
- Get/set many other settings
PoC exploit to list device users and password here