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 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
RealNetworks RealGames StubbyUtil.ShellCtl.1 ActiveX Control (InstallerDlg.dll v2.6.0.445) Multiple Remote Commands Execution and Code 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: {80AB3FB6-9660-416C-BE8D-0E2E8AC3138B} Progid: StubbyUtil.ShellCtl.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: ShellExec()-> allows to launch arbitrary commands ShellExecRunAs() -> allows to launch arbitrary commands CreateShortcut() -> allows to create arbitrary executable files inside the automatic startup folders CopyDocument() -> allows to copy arbitrary executable files from a remote network share to local folders, ex. automatic startup folders other attacks are possible including information disclosure and file deletion, see typelib: class IShellCtl { /* GUID={0D60A064-2009-4623-8FC1-F99CAC01037E} */ /* 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 */ function CreateShortcut( /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$name, /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$target, /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$icon, /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$workingDir, /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$args ) { /* method CreateShortcut */ } /* DISPID=2 */ function DeleteShortcut( /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$name ) { /* method DeleteShortcut */ } /* DISPID=3 */ /* VT_BSTR [8] */ function ModuleFileName( ) { /* method ModuleFileName */ } /* DISPID=4 */ /* VT_BSTR [8] */ function GetSpecialFolder( /* VT_UI4 [19] [in] */ $__MIDL_0025 ) { /* method GetSpecialFolder */ } /* DISPID=5 */ /* VT_BOOL [11] */ function CheckWnd( /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$__MIDL_0026 ) { /* method CheckWnd */ } /* DISPID=6 */ /* VT_BSTR [8] */ function ExistingTPS( /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$__MIDL_0028 ) { /* method ExistingTPS */ } /* DISPID=7 */ function SetWorkingDir( /* VT_PTR [26] [in] --> VT_BSTR [8]*/ &$__MIDL_0030 ) { /* method SetWorkingDir */ } /* DISPID=8 */ /* VT_BSTR [8] */ function GetWorkingDir( ) { /* method GetWorkingDir */ } /* DISPID=9 */ /* VT_R8 [5] */ function OSVersion( ) { /* method OSVersion */ } /* DISPID=10 */ /* VT_BSTR [8] */ function GetSystemID( ) { /* method GetSystemID */ } /* DISPID=11 */ function InstallFromCD( /* VT_BSTR [8] [in] */ $GameID, /* VT_BSTR [8] [in] */ $GameName, /* VT_BSTR [8] [in] */ $Tps, /* VT_BSTR [8] [in] */ $GameLang, /* VT_BSTR [8] [in] */ $CDPath, /* VT_BSTR [8] [in] */ $StoreFront ) { /* method InstallFromCD */ } /* DISPID=12 */ /* VT_UI4 [19] */ function KillProcess( /* VT_BSTR [8] [in] */ $__MIDL_0033 ) { /* method KillProcess */ } /* DISPID=13 */ function RefreshAddRemovePrograms( ) { /* method RefreshAddRemovePrograms */ } /* DISPID=14 */ function ShellExec( /* VT_BSTR [8] [in] */ $FilePath, /* VT_BSTR [8] [in] */ $Params ) { /* method ShellExec */ } /* DISPID=15 */ function ShellExecRunAs( /* VT_BSTR [8] [in] */ $FilePath, /* VT_BSTR [8] [in] */ $Params ) { /* method ShellExecRunAs */ } /* DISPID=16 */ /* VT_BSTR [8] */ function PlatformInfo( ) { /* method PlatformInfo */ } /* DISPID=17 */ /* VT_BSTR [8] */ function GetAvailableDrive( /* VT_INT [22] [in] */ $reqSpace ) { /* method GetAvailableDrive */ } /* DISPID=18 */ /* VT_BOOL [11] */ function InitializeStamp( /* VT_BSTR [8] [in] */ $exeName, /* VT_INT [22] [in] */ $offset ) { /* method InitializeStamp */ } /* DISPID=19 */ /* VT_BSTR [8] */ function GetContentID( ) { /* method GetContentID */ } /* DISPID=20 */ /* VT_BSTR [8] */ function GetTrackingID( ) { /* method GetTrackingID */ } /* DISPID=21 */ /* VT_BSTR [8] */ function GetAffiliate( ) { /* method GetAffiliate */ } /* DISPID=22 */ /* VT_BSTR [8] */ function GetCurrency( ) { /* method GetCurrency */ } /* DISPID=23 */ /* VT_BSTR [8] */ function GetPrice( ) { /* method GetPrice */ } /* DISPID=24 */ /* VT_BSTR [8] */ function GetTimestamp( ) { /* method GetTimestamp */ } /* DISPID=25 */ /* VT_BSTR [8] */ function GetOTP( ) { /* method GetOTP */ } /* DISPID=26 */ /* VT_BOOL [11] */ function CopyDocument( /* VT_BSTR [8] [in] */ $src, /* VT_BSTR [8] [in] */ $dest ) { /* method CopyDocument */ } /* DISPID=27 */ function InstallerToForeground( ) { /* method InstallerToForeground */ } /* DISPID=28 */ function MonitorLicenseFolder( ) { /* method MonitorLicenseFolder */ } /* DISPID=29 */ function ShutdownLicenseFolderMonitor( ) { /* method ShutdownLicenseFolderMonitor */ } /* DISPID=30 */ /* VT_BSTR [8] */ function GetFolderPath( /* VT_UI4 [19] [in] */ $__MIDL_0037 ) { /* method GetFolderPath */ } } 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_i.html https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/35560-1.zip (9sg_StubbyUtil.ShellCtl.1.zip) |