How I Manage to Hack Manage Engine Bug 2

Posted On // Leave a Comment

Stored XSS Vulnerability In Manage Engine Device Expert


Overview

* Title :Stored XSS Vulnerability In Manage Engine Device Expert
* Author: Kaustubh G. Padwad
* Plugin Homepage: http://www.manageengine.com/products/device-expert/
* Severity: HIGH
* Version Affected: Version 5.9.9.0 Build: 5990
* Version Tested : Version 5.9.9.0 Build: 5990
* version patched: Separate Patch release for all version

Description 

About the Product

DeviceExpert is a web–based, multi vendor network change, configuration and compliance management (NCCCM) solution for switches, routers, firewalls and other network devices. Trusted by thousands of network administrators around the world, DeviceExpert helps automate and take total control of the entire life cycle of device configuration management.

Vulnerable Parameter  

* Login Name 

About Vulnerability

This Product is vulnerable to a combination of CSRF/XSS attack meaning that if an admin user can be tricked to visit a crafted URL created by attacker (via spear phishing/social engineering), the attacker can execute arbitrary code into Admin manage console. Once exploited, admin’s browser can be made to do almost anything the admin user could typically do by hijacking admin's cookies etc.

Vulnerability Class

Cross Site Request Forgery (https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29)
Cross Site Scripting       (https://www.owasp.org/index.php/Top_10_2013-A3-Cross-Site_Scripting_(XSS)

Steps to Reproduce: (POC)

1. After Setting up Manage engine Login to manage engine Device expert
2. Navigate to admin-->User Management-->New User
3.Put this Payload into Login Name
4.Fill the other details
#####payload To Use#######################
need to use specially crafted body onload alert
##########################################
5. Click Save to See Stored XSS in action
6. Reload Pages to see it many times you want ;)
7. Same can be done By CSRF also :)


Mitigation 

Received from manage engine team

https://uploads.zohocorp.com/Internal_Useruploads/dnd/NetFlow_Analyzer/o_19ga51p951gblpbs1rkrm211vim1/vulnerabilities_Fix.zip

Open DeviceExper.zip

1. Stop the Device Expert service.
2. Please replace AdvNCM.jar under DeviceExpert_Home/lib with the one under DeviceExpert.zip/AdvNCM.jar
3. Start the Device Expert service

Disclosure 

11-February-2015 Reported to Developer
13-February-2015 Acknodlagement from Developer
13-March-2015    Fixed by developer
16-March-2015    Requested a cve ID  

credits

* Kaustubh Padwad
* Information Security Researcher
* kingkaustubh@me.com
* https://twitter.com/s3curityb3ast
* http://breakthesec.com
* https://www.linkedin.com/in/kaustubhpadwad