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

abctab2ps.txt

abctab2ps.txt
Posted Dec 30, 2004
Authored by Limin Wang | Site tigger.uic.edu

Two vulnerabilities in abctab2ps allow for local compromise of a system. Version 1.6.3 is affected.

tags | advisory, local, vulnerability
SHA-256 | 3c6a2450bcd6bf47b0ba6017b7d3609e2faf35f2d2a83ba2131f303923bbaed6

abctab2ps.txt

Change Mirror Download
From djb@cr.yp.to Wed Dec 15 14:22:03 2004
Date: 15 Dec 2004 08:23:34 -0000
From: D. J. Bernstein <djb@cr.yp.to>
To: securesoftware@list.cr.yp.to, christoph@dalitz.hs-niederrhein.de
Subject: [remote] [control] abctab2ps 1.6.3 write_heading overflows t;
trim_title overflows rest

Limin Wang, a student in my Fall 2004 UNIX Security Holes course, has
discovered two remotely exploitable security holes in abctab2ps. I'm
publishing this notice, but all the discovery credits should be assigned
to Wang.

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 abctab2ps. Whoever provides the ABC file then has
complete control over your account: she can read and modify your files,
watch the programs you're running, etc.

The abctab2ps 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://www.lautengesellschaft.de/cdmm/abctab2ps-1.6.3.tar.gz
gunzip < abctab2ps-1.6.3.tar.gz | tar -xf -
cd abctab2ps-1.6.3
cd src
gmake -f Makefile.Unix

to download and compile the abctab2ps program, version 1.6.3 (current).
Then save the file 36-1.abc attached to this message, and type

abctab2ps 36-1.abc

with the unauthorized result that a file named x is removed from the
current directory. The file 36-2.abc has the same effect but uses a
separate buffer overflow. (I tested these with a 461-byte environment,
as reported by printenv | wc -c; beware that 36-1.abc is particularly
sensitive to the environment size.)

Here are the bugs: In subs.cpp, write_heading() does an unprotected
strcpy() into a 201-byte t array. In parse.cpp, trim_title() does an
unprotected strcpy() and strip() into a 301-byte str array and an
81-byte rest array.

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

[ Part 2, Text/PLAIN (charset: unknown-8bit) 13 lines. ]
[ Unable to print this part. ]


[ Part 3, Text/PLAIN (charset: unknown-8bit) 7 lines. ]
[ Unable to print this part. ]

Login or Register to add favorites

File Archive:

March 2024

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