First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 74705
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:
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
bug74705-3.msg File 3.msg from advisory application/octet-stream Sascha Silbe 2004-12-16 16:21 0000 3.91 KB Details
string.c.diff string.c.diff patch Thierry Carrez (RETIRED) 2004-12-30 06:56 0000 1.30 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 74705 depends on: Show dependency tree
Bug 74705 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-16 16:20 0000
The following advisory from securesoftware@list.cr.yp.to is for LinPopUp 1.2.0.
I was not able to get net-im/linpopup-2.0.2 to SegFault or remove a file (as
described in the advisory) using the given exploit, but inspecting the source
shows the vulnerability still exists.

PS: This is last one from securesoftware@list.cr.yp.to for now, the Q finally
is empty. Yeah! :)

Date: 15 Dec 2004 08:10:44 -0000
From: "D. J. Bernstein" <djb@cr.yp.to>
Subject: [remote] [control] LinPopUp 1.2.0 overflows sub_string buffer
To: securesoftware@list.cr.yp.to, jeanmarcj@usa.net
X-HELOcheck: OK: FQDN
Mailing-List: contact securesoftware-help@list.cr.yp.to; run by ezmlm
Mail-Followup-To: securesoftware@list.cr.yp.to, jeanmarcj@usa.net
Automatic-Legal-Notices: See http://cr.yp.to/mailcopyright.html.

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

Stephen Dranger, a student in my Fall 2004 UNIX Security Holes course,
has discovered a remotely exploitable security hole in LinPopUp, an
instant-messaging tool. I'm publishing this notice, but all the
discovery credits should be assigned to Dranger.

You are at risk if you use LinPopUp to reply to a message received from
the network or any other source that could be controlled by an attacker.
Whoever sent that message 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, as root, type

   cd /usr/ports/net/linpopup
   make install

to download and compile the LinPopUp program, version 1.2.0 (current
FreeBSD ports version). Then, as any user, save the file 3.msg attached
to this message, and type

   cat 3.msg >> /var/db/linpopup/messages.dat

to simulate receipt of 3.msg from the network. Then type

   LinPopUp

and click on Reply. Unauthorized result: a file named x is removed from
the current directory.

Here's the bug: In string.c, strexpand() uses strcpy() to copy from
replace_string, which can have as many as 100 bytes, to a 50-byte
sub_string 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-16 16:21:29 0000 -------
Created an attachment (id=46179) [details]
File 3.msg from advisory

------- Comment #2 From Matthias Geerdsen 2004-12-18 13:57:27 0000 -------
mholzer since you have been dealing with the ebuild, can you verify/advise?

Also 1.2.0 should maybe be considered for removal from the tree.

___

http://securitytracker.com/alerts/2004/Dec/1012542.html

------- Comment #3 From Thierry Carrez (RETIRED) 2004-12-21 07:00:41 0000 -------
======================================================
Candidate: CAN-2004-1282
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1282
Reference: MISC:http://tigger.uic.edu/~jlongs2/holes/linpopup.txt

Buffer overflow in the strexpand function in string.c for LinPopUp
1.2.0 allows remote attackers to execute arbitrary code via a crafted
message that is not properly handled during a Reply operation.
======================================================

------- Comment #4 From Thierry Carrez (RETIRED) 2004-12-30 06:56:32 0000 -------
Created an attachment (id=47207) [details]
string.c.diff

Patch from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=287044
This applies cleanly to our stable (2.0.2) version and probably others.

------- Comment #5 From Thierry Carrez (RETIRED) 2004-12-30 06:58:37 0000 -------
No metadata.
mholzer/vapier : could you please apply patch (probably to all versions) and bump ?

------- Comment #6 From SpanKY 2004-12-30 13:15:54 0000 -------
i dont know why you thought i could help, i'm not in the ChangeLog :P ... i'm
not your security lacky you know !

version bumped to 2.0.4 and removed the older ebuilds ... x86 was the only one
to have a stable version, amd64/ppc were added with 2.0.3, but as unstable

new 2.0.4 is marked x86 stable and amd64/ppc unstable

------- Comment #7 From Sune Kloppenborg Jeppesen 2004-12-30 14:29:53 0000 -------
Thx vapier, you just signed yourself over to Security:P

------- Comment #8 From Thierry Carrez (RETIRED) 2005-01-01 13:59:10 0000 -------
vapier: 2.0.4 still needs patch applied. Could you please bump to -r1 ?
(I really should take time to read that quiz)

------- Comment #9 From SpanKY 2005-01-01 14:13:48 0000 -------
added 2.0.4-r1 to cvs with patch

------- Comment #10 From Thierry Carrez (RETIRED) 2005-01-01 14:15:25 0000 -------
Thx, really ready now. Draft submitted, security please review

------- Comment #11 From Thierry Carrez (RETIRED) 2005-01-04 13:35:14 0000 -------
GLSA 200501-01

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