Buffer overflow vulnerability in Cookie authentication field
The authentication mechanism can be bypassed by overflowing the value of the Cookie "authentication" field, provided there is an active user session.
No Hongdian vulnerabilities are listed in CISA KEV.
10 records in H8951-4g-esp Firmware · all components
The authentication mechanism can be bypassed by overflowing the value of the Cookie "authentication" field, provided there is an active user session.
The router console is accessible without authentication at "data" field, and while a user needs to be logged in in order to modify the configuration, the session state is shared.
Root user password is hardcoded into the device and cannot be changed in the user interface.
Authenticated user can execute arbitrary commands in the context of the root user by providing payload in the "destination" field of the network test tools.
An authenticated user is able to upload an arbitrary CGI-compatible file using the certificate upload utility and execute it with the root user privileges.
The "tokenKey" value used in user authorization is visible in the HTML source of the login page.
The authentication cookies are generated using an algorithm based on the username, hardcoded secret and the up-time, and can be guessed in a reasonable time.
It is possible to download the configuration backup without authorization and decrypt included passwords using hardcoded static key.
An XSS attack can be performed by changing the MOTD banner and pointing the victim to the "terminal_tool.cgi" path.
User browser may be forced to execute JavaScript and pass the authentication cookie to the attacker leveraging the XSS vulnerability located at "/gui/terminal_tool.cgi" in the "data" parameter.