{"vuid":"VU#876780","idnumber":"876780","name":"D-Link DSL2730U router restricted telnet shell command whitelisting bypass","keywords":["d-link","DSL2730U","router","telnet","whitelisting","cwe-78"],"overview":"D-Link DSL2730U routers contain a restricted telnet shell with limited allowed commands. An authenticated attacker can chain unauthorized commands through authorized commands in order to bypass the command whitelisting.","clean_desc":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'): D-Link DSL2730U routers contain a restricted telnet shell with limited allowed commands. Commands entered in the restricted telnet shell are executed by passing them as command parameters of execution \"sh -c\", for example, \"echo | ls\" will result in passing a whitelisted command (echo) and executing \"sh -c echo | ls\" on the underlying Linux environment. The STDOUT output of the command execution is returned to the telnet terminal. An authenticated attacker can chain unauthorized commands through authorized commands in order to bypass the command whitelisting.","impact":"An authenticated attacker can chain unauthorized commands through authorized commands in order to bypass the command whitelisting.","resolution":"We are currently unaware of a practical solution to this problem.","workarounds":"Restrict Access As a general good security practice, only allow connections from trusted hosts and networks. Restricting access would prevent an attacker from accessing an telnet interface using the affected credentials from a blocked network location.","sysaffected":"","thanks":"Thanks to Nikolay Dachev for reporting this vulnerability.","author":"This document was written by Michael Orlando.","public":["h","t","t","p",":","/","/","c","w","e",".","m","i","t","r","e",".","o","r","g","/","d","a","t","a","/","d","e","f","i","n","i","t","i","o","n","s","/","7","8",".","h","t","m","l"],"cveids":["CVE-2012-5966"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2012-11-01T13:07:36Z","publicdate":"2012-12-12T00:00:00Z","datefirstpublished":"2012-12-12T12:27:52Z","dateupdated":"2012-12-12T12:27:52Z","revision":7,"vrda_d1_directreport":"1","vrda_d1_population":"2","vrda_d1_impact":"3","cam_widelyknown":"0","cam_exploitation":"0","cam_internetinfrastructure":"0","cam_population":"0","cam_impact":"0","cam_easeofexploitation":"0","cam_attackeraccessrequired":"0","cam_scorecurrent":"0","cam_scorecurrentwidelyknown":"0","cam_scorecurrentwidelyknownexploited":"0","ipprotocol":"","cvss_accessvector":"N","cvss_accesscomplexity":"L","cvss_authentication":null,"cvss_confidentialityimpact":"C","cvss_integrityimpact":"N","cvss_availabilityimpact":"N","cvss_exploitablity":null,"cvss_remediationlevel":"W","cvss_reportconfidence":"UC","cvss_collateraldamagepotential":"L","cvss_targetdistribution":"L","cvss_securityrequirementscr":"ND","cvss_securityrequirementsir":"ND","cvss_securityrequirementsar":"ND","cvss_basescore":"6.8","cvss_basevector":"AV:N/AC:L/Au:S/C:C/I:N/A:N","cvss_temporalscore":"5.2","cvss_environmentalscore":"1.4","cvss_environmentalvector":"CDP:L/TD:L/CR:ND/IR:ND/AR:ND","metric":0.0,"vulnote":null}