Vulnerabilities > CVE-2008-3480 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Anzio Print Wizard and web Print Object

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
anzio
CWE-119
critical
nessus
exploit available

Summary

Stack-based buffer overflow in the Anzio Web Print Object (WePO) ActiveX control 3.2.19 and 3.2.24, as used in Anzio Print Wizard, allows remote attackers to execute arbitrary code via a long mainurl parameter.

Vulnerable Configurations

Part Description Count
Application
Anzio
4

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionAnzio Web Print Object <= 3.2.30 ActiveX Buffer Overflow Exploit. CVE-2008-3480. Remote exploit for windows platform
fileexploits/windows/remote/6278.txt
idEDB-ID:6278
last seen2016-01-31
modified2008-08-20
platformwindows
port
published2008-08-20
reporterCore Security
sourcehttps://www.exploit-db.com/download/6278/
titleAnzio Web Print Object <= 3.2.30 - ActiveX Buffer Overflow Exploit
typeremote

Nessus

NASL familyWindows
NASL idANZIO_WEPO_ACTIVEX_MAINURL_OVERFLOW.NASL
descriptionThe remote host contains the Anzio Web Print Object (WePO) ActiveX component, which is used for
last seen2020-06-01
modified2020-06-02
plugin id34021
published2008-08-21
reporterThis script is Copyright (C) 2008-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/34021
titleAnzio Web Print Object (WePO) ActiveX mainurl Parameter Buffer Overflow
code
#
#  (C) Tenable Network Security, Inc.
#


include("compat.inc");

if (description)
{
  script_id(34021);
  script_version("1.18");

  script_cve_id("CVE-2008-3480");
  script_bugtraq_id(30545);
  script_xref(name:"Secunia", value:"31554");

  script_name(english:"Anzio Web Print Object (WePO) ActiveX mainurl Parameter Buffer Overflow");
  script_summary(english:"Checks version of WePO control");

 script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has an ActiveX component that is susceptible
to a buffer overflow attack." );
 script_set_attribute(attribute:"description", value:
"The remote host contains the Anzio Web Print Object (WePO) ActiveX
component, which is used for 'push' printing from a web page or
application.

The version of the control installed on the remote host reportedly
contains a stack-based buffer overflow that can be triggered by
passing long values of its 'mainurl' parameter.  If an attacker can
trick a user on the affected host into viewing a specially crafted
HTML document, this method could be used to execute arbitrary code
on the affected system subject to the user's privileges." );
 # https://www.secureauth.com/labs/advisories/anzio-web-print-object-buffer-overflow
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?6b18276f" );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2008/Aug/205" );
 script_set_attribute(attribute:"see_also", value:"http://www.anzio.com/news/newwepo.htm" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to Anzio Web Print Object 3.2.30 or later." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
 script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");
 script_set_attribute(attribute:"exploit_framework_core", value:"true");
 script_cwe_id(119);
 script_set_attribute(attribute:"plugin_publication_date", value: "2008/08/21");
 script_cvs_date("Date: 2018/11/15 20:50:26");
script_set_attribute(attribute:"plugin_type", value:"local");
script_end_attributes();


  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2008-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("smb_hotfixes.nasl");
  script_require_keys("SMB/Registry/Enumerated");
  script_require_ports(139, 445);

  exit(0);
}


include("global_settings.inc");
include("smb_func.inc");
include("smb_activex_func.inc");


if (!get_kb_item("SMB/Registry/Enumerated")) exit(0);


# Locate the file used by the controls.
if (activex_init() != ACX_OK) exit(0);

clsid = "{4CE8026D-5DBF-48C9-B6E9-14A2B1974A3D}";
file = activex_get_filename(clsid:clsid);
if (file)
{
  ver = activex_get_fileversion(clsid:clsid);
  if (ver && activex_check_fileversion(clsid:clsid, fix:"3.2.30.0") == TRUE)
  {
    report = NULL;
    if (report_paranoia > 1)
      report = string(
        "\n",
        "Version ", ver, " of the vulnerable control is installed as :\n",
        "\n",
        "  ", file, "\n",
        "\n",
        "Note, though, that Nessus did not check whether the kill bit was\n",
        "set for the control's CLSID because of the Report Paranoia setting\n",
        "in effect when this scan was run.\n"
      );
    else if (activex_get_killbit(clsid:clsid) == 0)
      report = string(
        "\n",
        "Version ", ver, " of the vulnerable control is installed as :\n",
        "\n",
        "  ", file, "\n",
        "\n",
        "Moreover, its kill bit is not set so it is accessible via Internet\n",
        "Explorer.\n"
      );
    if (report)
    {
      if (report_verbosity) security_hole(port:kb_smb_transport(), extra:report);
      else security_hole(kb_smb_transport());
    }
  }
}
activex_end();

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/69284/CORE-2008-0624.txt
idPACKETSTORM:69284
last seen2016-12-05
published2008-08-21
reporterCore Security Technologies
sourcehttps://packetstormsecurity.com/files/69284/Core-Security-Technologies-Advisory-2008.0624.html
titleCore Security Technologies Advisory 2008.0624

Seebug

  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:9327
    last seen2017-11-19
    modified2008-08-21
    published2008-08-21
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-9327
    titleAnzio Web Print Object &lt;= 3.2.30 ActiveX Buffer Overflow Exploit
  • bulletinFamilyexploit
    descriptionCVE ID:CVE-2008-3480 CNCVE ID:CNCVE-20083480 Anzio Web Print Object是一款Windows ActiveX WEB页组件,当放置在WEB页上时可从文件或WEB服务器推打印作业到用户本地打印机而不需要限制一些附加的HTML。 Anzio Web Print Object处理&quot;mainurl&quot;参数存在缓冲区溢出,远程攻击者可以利用漏洞以应用程序权限执行任意指令。 WePO ActiveX组件提供参数&quot;mainurl&quot;从本地文件名或URL中获取内容来打印: &lt;param name=&quot;mainurl&quot; value=&quot;http://www.somewhere.com/myreport.pcl&quot;&gt; WePO以OLECHAR格式接收&quot;mainurl&quot;参数,并使用oleaut32.dll中的API SysAllocStringLen传送BSTR字符串,指向SysAllocStringLen返回的BSTR字符串存储在堆栈中: 024F64B8 . 51 PUSH ECX ; length of &quot;mainurl&quot; value 024F64B9 . 52 PUSH EDX ; pointer to &quot;mainurl&quot; value 024F64BA . E8 4DB0FFFF CALL JMP.oleaut32.SysAllocStringLen 024F64BF . 5A POP EDX 024F64C0 . 85C0 TEST EAX,EAX 024F64C2 .^0F84 94F9FFFF JE PWBUTT~1.024F5E5C 024F64C8 . 8902 MOV DWORD PTR DS:[EDX],EAX ; ;Save BSTR pointer to stack 024F64CA &gt; C3 RETN 之后它以ASCII格式拷贝&quot;mainurl&quot;到堆栈上的缓冲区中,而没有任何长度验证: 024F300C /$ 56 PUSH ESI 024F300D |. 57 PUSH EDI 024F300E |. 89C6 MOV ESI,EAX ; ESI = pointer to &quot;mainurl&quot; value 024F3010 |. 89D7 MOV EDI,EDX ; EDI = pointer to destination buffer in the stack 024F3012 |. 89C8 MOV EAX,ECX ; ECX = length of &quot;mainurl&quot; value 024F3014 |. 39F7 CMP EDI,ESI 024F3016 |. 77 13 JA SHORT PWBUTT~1.024F302B 024F3018 |. 74 2F JE SHORT PWBUTT~1.024F3049 024F301A |. C1F9 02 SAR ECX,2 024F301D |. 78 2A JS SHORT PWBUTT~1.024F3049 024F301F |. F3:A5 REP MOVS DWORD PTR ES:[EDI],DWORD PTR DS:[ESI] ; Copy &quot;mainurl&quot; value to stack buffer, 024F3021 |. 89C1 MOV ECX,EAX ; without validating its length 024F3023 |. 83E1 03 AND ECX,3 024F3026 |. F3:A4 REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:[ESI] 024F3028 |. 5F POP EDI 024F3029 |. 5E POP ESI 024F302A |. C3 RETN 通过使用超长的&quot;mainurl&quot;值的WEB页,攻击者以溢出堆栈缓冲区,并覆盖SEH以执行任意代码。 Anzio Print Wizard Personal Edition 3.x Anzio Print Wizard Server Edition 3.x Anzio Web Print Object (WePO) 3.x 升级到Anzio Web Print Object 3.2.30版本: <a href=http://www.anzio.com/download-wepo.htm target=_blank>http://www.anzio.com/download-wepo.htm</a>
    idSSV:3907
    last seen2017-11-19
    modified2008-08-23
    published2008-08-23
    reporterRoot
    titleAnzio Web Print Object (WePO) ActiveX组件&quot;mainurl&quot;缓冲区溢出漏洞
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:65654
    last seen2017-11-19
    modified2014-07-01
    published2014-07-01
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-65654
    titleAnzio Web Print Object <= 3.2.30 ActiveX Buffer Overflow Exploit