Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

[R1] Cisco Security Manager and Prime LMS Java Deserialization Remote Code Execution

Critical

Synopsis

In late 2015, Cisco generated a long list of products that might be vulnerable to Java deserialization attacks. The list was, and still is, broken down into three categories: Under Investigation, Confirmed Affected, and Confirmed Not Affected.

Due to the severity of these vulnerabilities Tenable began investigating as well. While investigating Cisco Security Manager researchers came upon this code in SecretServiceServlet.class:

public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
    boolean debug = false;
    HttpSession session = request.getSession();
    String context = session.getId();
    if (debug)
    {
        System.out.println("SecretService: Context = " + context);
    }
    
    DataBlob blob = null;
    ServletInputStream sin;
    if ((sin = request.getInputStream()) != null)
    {
        try
        {
            ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(sin));
            blob = (DataBlob)ois.readObject();
        }
        catch (Exception e)
        {
            if (debug)
            {
                System.out.println("SecretService: Exception thrown deserializing data blob: " + e);
             }
        }
    }
}

This code handles HTTP POST requests to:

https://<target>/CSCOnm/servlet/com.cisco.nm.cmf.servlet.SecretServiceServlet

The above is a classic example of deserialization of untrusted data. The method loads the HTTP payload into an ObjectInputStream and executes readObject(). Because Apache Commons Collection 3.2 is on the classpath an unauthenticated remote attacker can gain execution using one of ysoserial's Commons Collections gadgets.

Interestingly, this exact same code and HTTP endpoint also exists in Cisco Prime LAN Management Solution. However, the LMS version we were analyzing had an ancient version of Commons Collections on the classpath. Making remote code execution impossible. Further investigation into LMS revealed that it exposes an RMI Registry that does have Apache Commons Collections 3.2 on the classpath. Therefore, we were able to exploit LMS by a deserialization attack through the RMI registry.

Tenable immediately informed Cisco of these vulnerabilities.

Solution

No solution exists for PMS. Cisco has elected not to patch this vulnerability.

Security Manager was patched in November, 2016

Disclosure Timeline

2016-01-18 - Issues discovered
2016-01-20 - Reported to Cisco via [email protected]
2016-01-21 - Cisco confirms receipt, CSCux34641 and CSCux34647 previously assigned, will update advisory to reflect
2016-03-15 - No fix info available in advisory...
2016-04-20 - No fix info available in advisory...
2016-05-17 - No fix info available in advisory...
2016-06-22 - No fix info available in advisory...
2016-06-22 - Ping vendor for update
2016-06-22 - Cisco replies "bug is still being worked out by engineering."
2016-08-18 - No fix info available in advisory...
2016-10-19 - Ping vendor for update
2016-10-20 - Vendor says will be fixed in MR4 (4.2(5.4), due end of Oct, 2016
2017-02-27 - Ping vendor to see if released. Advisory still not updated.
2017-02-28 - Vendor says fix still in the works, will ask engineering status and get back to us.
2017-03-31 - Ping vendor for update
2017-04-03 - Vendor says no movement, escalating internally
2017-04-11 - Vendor says they will not fix. Considerable dev effort and product hit an EoL milestone.

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

Risk Information

CVE ID: CVE-2015-6420
Tenable Advisory ID: TRA-2017-23
Credit:
Jacob Baines, Tenable Network Security
CVSSv2 Base / Temporal Score:
10 / 9.5
CVSSv2 Vector:
AV:N/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:U/RC:C
Nessus Plugin ID: 99934
99935
Affected Products:
Cisco Prime LMS 4.2.5
Cisco Security Manager 4.10
Risk Factor:
Critical
Additional Keywords:
CSCux34671
CSCux34647

Advisory Timeline

11-03-2017 - [R1] Initial Release

Tenable Vulnerability Management

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy.

Your Tenable Vulnerability Management trial also includes Tenable Lumin and Tenable Web App Scanning.

Tenable Vulnerability Management

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Purchase your annual subscription today.

100 assets

Choose Your Subscription Option:

Buy Now

Tenable Vulnerability Management

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy.

Your Tenable Vulnerability Management trial also includes Tenable Lumin and Tenable Web App Scanning.

Tenable Vulnerability Management

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Purchase your annual subscription today.

100 assets

Choose Your Subscription Option:

Buy Now

Tenable Vulnerability Management

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy.

Your Tenable Vulnerability Management trial also includes Tenable Lumin and Tenable Web App Scanning.

Tenable Vulnerability Management

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Purchase your annual subscription today.

100 assets

Choose Your Subscription Option:

Buy Now

Try Tenable Web App Scanning

Enjoy full access to our latest web application scanning offering designed for modern applications as part of the Tenable One Exposure Management platform. Safely scan your entire online portfolio for vulnerabilities with a high degree of accuracy without heavy manual effort or disruption to critical web applications. Sign up now.

Your Tenable Web App Scanning trial also includes Tenable Vulnerability Management and Tenable Lumin.

Buy Tenable Web App Scanning

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Purchase your annual subscription today.

5 FQDNs

$3,578

Buy Now

Try Tenable Lumin

Visualize and explore your exposure management, track risk reduction over time and benchmark against your peers with Tenable Lumin.

Your Tenable Lumin trial also includes Tenable Vulnerability Management and Tenable Web App Scanning.

Buy Tenable Lumin

Contact a Sales Representative to see how Tenable Lumin can help you gain insight across your entire organization and manage cyber risk.

Try Tenable Nessus Professional Free

FREE FOR 7 DAYS

Tenable Nessus is the most comprehensive vulnerability scanner on the market today.

NEW - Tenable Nessus Expert
Now Available

Nessus Expert adds even more features, including external attack surface scanning, and the ability to add domains and scan cloud infrastructure. Click here to Try Nessus Expert.

Fill out the form below to continue with a Nessus Pro Trial.

Buy Tenable Nessus Professional

Tenable Nessus is the most comprehensive vulnerability scanner on the market today. Tenable Nessus Professional will help automate the vulnerability scanning process, save time in your compliance cycles and allow you to engage your IT team.

Buy a multi-year license and save. Add Advanced Support for access to phone, community and chat support 24 hours a day, 365 days a year.

Select Your License

Buy a multi-year license and save.

Add Support and Training

Try Tenable Nessus Expert Free

FREE FOR 7 DAYS

Built for the modern attack surface, Nessus Expert enables you to see more and protect your organization from vulnerabilities from IT to the cloud.

Already have Tenable Nessus Professional?
Upgrade to Nessus Expert free for 7 days.

Buy Tenable Nessus Expert

Built for the modern attack surface, Nessus Expert enables you to see more and protect your organization from vulnerabilities from IT to the cloud.

Select Your License

Buy a multi-year license and save more.

Add Support and Training