First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 74473
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sascha Silbe <sascha-gentoo-bugzilla@silbe.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
bug74473-17-s.c 17-s.c from the advisory text/plain Sascha Silbe 2004-12-15 04:56 0000 1.69 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 74473 depends on: Show dependency tree
Bug 74473 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-12-15 04:55 0000
Advisory from securesoftware@list.cr.yp.to:

Date: 15 Dec 2004 08:18:11 -0000
From: "D. J. Bernstein" <djb@cr.yp.to>
Subject: [remote] [control] MPlayer 1.0pre5 get_header overflows data buffer
To: securesoftware@list.cr.yp.to, mplayer-users@mplayerhq.hu
X-HELOcheck: OK: FQDN
Mailing-List: contact securesoftware-help@list.cr.yp.to; run by ezmlm
Mail-Followup-To: securesoftware@list.cr.yp.to, mplayer-users@mplayerhq.hu
Automatic-Legal-Notices: See http://cr.yp.to/mailcopyright.html.

[-- Attachment #1 [details] --]
[-- Type: text/plain, Encoding: 7bit, Size: 1.4K --]

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

You are at risk if you use MPlayer to play an ASF video stream from the
web (or from any other source that could be controlled by an attacker).
Whoever provides that stream then has complete control over your
account: he can read and modify your files, watch the programs you're
running, etc.

Proof of concept: On an x86 computer running FreeBSD 4.10 with ucspi-tcp
installed, type

   wget http://ftp5.mplayerhq.hu/mplayer/releases/MPlayer-1.0pre5.tar.bz2
   bunzip2 < MPlayer-1.0pre5.tar.bz2 | tar -xf -
   cd MPlayer-1.0pre5
   ./configure
   gmake

to download and compile the MPlayer program, version 1.0pre5 (current).
Then save the file 17-s.c attached to this message, and type

   gcc -o 17-s 17-s.c
   tcpserver 0 1755 ./17-s &
   ./mplayer mmst://127.0.0.1/new_video.asf

with the unauthorized result that a file named x is removed from the
current directory. (I tested this with a 538-byte environment, as
reported by printenv | wc -c.)

Here's the bug: In asf_mmst_streaming.c, get_header() uses get_data()
to copy an input-specified amount of data into a 102400-byte data[]
array.

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

------- Comment #1 From Sascha Silbe 2004-12-15 04:56:13 0000 -------
Created an attachment (id=46027) [details]
17-s.c from the advisory

------- Comment #2 From Matthias Geerdsen 2004-12-15 05:44:28 0000 -------
chriswhite, pls verify and advise

------- Comment #3 From Thierry Carrez (RETIRED) 2004-12-16 03:31:38 0000 -------
MPlayer 1.0pre5try2 is out :
http://www.mplayerhq.hu/homepage/design7/news.html

media-video: please bump

------- Comment #4 From Chris White (RETIRED) 2004-12-16 08:48:38 0000 -------
Ugh, lovely...  Unfortunately, I won't be able to get to this until tommorow
(finals bleh :( ).  But after my final tommorow, I'll be on this and bumping
asanhcph (As soon as non humans can possibly handle).

------- Comment #5 From Chris White (RETIRED) 2004-12-18 11:59:48 0000 -------
Mkay, bumped as requested.  New version to use is pre5-r5.  Let's see, keywords
targets are:

x86 ppc alpha amd64 hppa sparc ppc64

and ppc64, pre5-r4 was marked stable with no changelog entry.. what's up with
that?

x86 was taken careof by yours truly.  More fun :P.  Also removing myself from
CC as I already get security and media-video spam as is :P.

------- Comment #6 From Dylan Carlson (RETIRED) 2004-12-18 15:40:08 0000 -------
Stable on amd64

------- Comment #7 From Michael Hanselmann (hansmi) (RETIRED) 2004-12-18 16:07:16 0000 -------
Done on ppc.

------- Comment #8 From Jason Wever (RETIRED) 2004-12-18 16:49:09 0000 -------
Stable on sparc

------- Comment #9 From Bryan Østergaard (RETIRED) 2004-12-19 09:11:05 0000 -------
Stable on alpha.

------- Comment #10 From Markus Rothe 2004-12-19 11:02:44 0000 -------
stable on ppc64.

sorry about the missing changelog entry. I added it manualy.

------- Comment #11 From Thierry Carrez (RETIRED) 2004-12-19 13:59:14 0000 -------
GLSA-ready
ia64, mips: you should mark _pre5-r5 "~" so that you benefit from GLSA.

------- Comment #12 From Thierry Carrez (RETIRED) 2004-12-20 06:10:02 0000 -------
GLSA 200412-21

First Last Prev Next    No search results available      Search page      Enter new bug