TDA 2.6.1062r1 Hotfix_upload.cgi Command Injection Vulnerability
The hotfix_upload.cgi file contains a flaw allowing a user to execute commands under the context of the root user. The actual injection takes place in the name of the file being uploaded (ie. filename=”test.txt&id”). By performing the following request, system information is sent back in the response. This gives any user the ability to execute simple non interactive commands. However, more complex (including remote shell) commands are possible. Special characters like ‘/’,'<‘,’>’ are not sent across to the server. But utilizing the environment itself, it becomes possible to insert characters like the ‘/’. Now the attacker has the ability to create a shell by uploading a file containing the following (where [ip address] is your receiving machine).