1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
RealNetworks RealGames StubbyUtil.ProcessMgr.1 ActiveX Control (InstallerDlg.dll v2.6.0.445) Multiple Remote Commands Execution Vulnerabilities tested against Internet Explorer 9, Vista sp2 download url: http://www.gamehouse.com/ background: When choosing to play with theese online games ex. the game called "My Farm Life" (see url: http://www.gamehouse.com/download-games/my-farm-life ) you download an installer called GameHouse-Installer_am-myfarmlife_gamehouse_.exe This setup program installs an ActiveX with the following settings: CLSID: {5818813E-D53D-47A5-ABBB-37E2A07056B5} Progid: StubbyUtil.ProcessMgr.1 Binary Path: C:\Program Files\RealArcade\Installer\bin\InstallerDlg.dll Safe For Initialization (Registry): True Safe For Scripting (Registry): True This control is safe for scripting and safe for initialization, so Internet Explorer will allow scripting of this control from remote. vulnerability: This control has four methods implemented insecurely: CreateVistaTaskLow()-> allows to launch arbitrary commands Exec()-> allows to launch arbitrary commands ExecLow() -> allows to launch arbitrary commands ShellExec() -> allows to launch arbitrary executables other attacks are possible , see typelib: class IProcessMgr { /* GUID={860450DB-79C1-44E4-96E0-C89144E4B444} */ /* DISPID=1610612736 */ function QueryInterface( /* VT_PTR [26] [in] --> ? [29]*/ &$riid, /* VT_PTR [26] [out] --> VT_PTR [26]*/ &$ppvObj ) { } /* DISPID=1610612737 */ /* VT_UI4 [19] */ function AddRef( ) { } /* DISPID=1610612738 */ /* VT_UI4 [19] */ function Release( ) { } /* DISPID=1610678272 */ function GetTypeInfoCount( /* VT_PTR [26] [out] --> VT_UINT [23]*/ &$pctinfo ) { } /* DISPID=1610678273 */ function GetTypeInfo( /* VT_UINT [23] [in] */ $itinfo, /* VT_UI4 [19] [in] */ $lcid, /* VT_PTR [26] [out] --> VT_PTR [26]*/ &$pptinfo ) { } /* DISPID=1610678274 */ function GetIDsOfNames( /* VT_PTR [26] [in] --> ? [29]*/ &$riid, /* VT_PTR [26] [in] --> VT_PTR [26]*/ &$rgszNames, /* VT_UINT [23] [in] */ $cNames, /* VT_UI4 [19] [in] */ $lcid, /* VT_PTR [26] [out] --> VT_I4 [3]*/ &$rgdispid ) { } /* DISPID=1610678275 */ function Invoke( /* VT_I4 [3] [in] */ $dispidMember, /* VT_PTR [26] [in] --> ? [29]*/ &$riid, /* VT_UI4 [19] [in] */ $lcid, /* VT_UI2 [18] [in] */ $wFlags, /* VT_PTR [26] [in] --> ? [29]*/ &$pdispparams, /* VT_PTR [26] [out] --> VT_VARIANT [12]*/ &$pvarResult, /* VT_PTR [26] [out] --> ? [29]*/ &$pexcepinfo, /* VT_PTR [26] [out] --> VT_UINT [23]*/ &$puArgErr ) { } /* DISPID=1 */ /* VT_BOOL [11] */ function Exec( /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$mod, /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$cmdline, /* VT_BOOL [11] [in] */ $__MIDL_0097, /* VT_BOOL [11] [in] */ $__MIDL_0098, /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$__MIDL_0099 ) { /* method Exec */ } /* DISPID=2 */ /* VT_BOOL [11] */ function IsFinished( ) { } /* DISPID=3 */ /* VT_UI4 [19] */ function CreateNamedMutex( /* VT_BSTR [8] [in] */ $__MIDL_0102 ) { } /* DISPID=4 */ function ReleaseMutex( /* VT_UI4 [19] [in] */ $__MIDL_0104 ) { } /* DISPID=5 */ function CloseMutex( /* VT_UI4 [19] [in] */ $__MIDL_0105 ) { } /* DISPID=6 */ /* VT_BOOL [11] */ function ObtainMutex( /* VT_UI4 [19] [in] */ $__MIDL_0106 ) { } /* DISPID=7 */ /* VT_BOOL [11] */ function WaitOnMutex( /* VT_UI4 [19] [in] */ $__MIDL_0108, /* VT_INT [22] [in] */ $__MIDL_0109 ) { } /* DISPID=8 */ function CloseEvent( /* VT_UI4 [19] [in] */ $__MIDL_0111 ) { } /* DISPID=9 */ function FireEvent( /* VT_UI4 [19] [in] */ $__MIDL_0112 ) { } /* DISPID=10 */ /* VT_UI4 [19] */ function CreateNamedEvent( /* VT_BSTR [8] [in] */ $__MIDL_0113 ) { } /* DISPID=11 */ /* VT_UI4 [19] */ function ExitCode( ) { } /* DISPID=12 */ function CreateVistaTaskLow( /* VT_BSTR [8] [in] */ $bstrExecutablePath, /* VT_BSTR [8] [in] */ $bstrArguments, /* VT_BSTR [8] [in] */ $workDir ) { } /* DISPID=13 */ /* VT_BOOL [11] */ function ExecLow( /* VT_BSTR [8] [in] */ $__MIDL_0116, /* VT_BSTR [8] [in] */ $cmdline, /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$workDir ) { } /* DISPID=14 */ function ShellExec( /* VT_BSTR [8] [in] */ $__MIDL_0117 ) { } /* DISPID=15 */ function Sleep( /* VT_UI4 [19] [in] */ $__MIDL_0118 ) { } } binary info: >lm -vm Image path: C:\Program Files\RealArcade\Installer\bin\InstallerDlg.dll Image name: InstallerDlg.dll Timestamp:Mon Mar 14 14:22:44 2011 (4D7E6B04) CheckSum: 00000000 ImageSize:00064000 File version: 2.6.0.445 Product version:2.6.0.445 File flags: 0 (Mask 3F) File OS:4 Unknown Win32 File type:2.0 Dll File date:00000000.00000000 Translations: 0409.04b0 ProductName:InstallerDlg Module InternalName: InstallerDlg OriginalFilename: InstallerDlg.dll ProductVersion: 2.6.0.445 FileVersion:2.6.0.445 FileDescription:InstallerDlg Module LegalCopyright: Copyright 2010 poc: pocs availiable here: http://retrogod.altervista.org/9sg_realgames_ii.html https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/35560-2.zip (9sg_StubbyUtil.ProcessMgr.1.zip) |