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

Filename Description Type Creator Created Size Actions
gnump3d-dot-dot.diff gnump3d-dot-dot.diff patch Sune Kloppenborg Jeppesen 2005-10-17 22:51 0000 497 bytes Details | Diff
gnump3d-xss.diff gnump3d-xss.diff patch Sune Kloppenborg Jeppesen 2005-10-17 22:52 0000 945 bytes Details | Diff
gnump3d-CAN-2005-3122.patch gnump3d-CAN-2005-3122.patch patch Jeremy Huddleston (RETIRED) 2005-10-23 20:08 0000 704 bytes Details | Diff
gnump3d-CAN-2005-3123.patch gnump3d-CAN-2005-3123.patch patch Jeremy Huddleston (RETIRED) 2005-10-23 20:09 0000 504 bytes Details | Diff
gnump3d-2.9.4-r1.ebuild gnump3d-2.9.4-r1.ebuild text/plain Jeremy Huddleston (RETIRED) 2005-10-25 13:09 0000 2.18 KB Details
gnump3d-2.9.5.ebuild gnump3d-2.9.5.ebuild text/plain Jeremy Huddleston (RETIRED) 2005-10-25 13:10 0000 2.19 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 109667 depends on: Show dependency tree
Bug 109667 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: 2005-10-17 22:50 0000
Reported to Vendor-Sec by Steve Kemp from Debian:  
  
1. XSS Attacks [ CAN-2005-3122 ]  
--------------------------------  
  
  There are two XSS attack vectors in the handling of files.  
  
  When files are not found the requested URI isn't stripped from  
 the 404 page, allowing javascript execution via:  
  
        http://host:port/not-present/<script>..</script>  
  
  The second flaw comes from a similar refusal to serve any request ending  
 in the string '.password'.  Internally this is an identical vulnerability  
 as the request is coverted into a 404 response regardless of whether the  
 file exists or not:  
  
        http://host:port/any/path/<script>...</script>/.password  
  
  
    
  Patch attached 'gnump3d-xss.diff'.  
  
  
  
2. Directory Traversal [CAN-2005-3123]  
--------------------------------------  
  
  This is a far more serious flaw, which allows the reading of  
 arbitary files which the user the server is running as has access to.  
 (gnump3d - by default).  
  
  The flaw comes from the attempt to sanitize input paths, ironically  
 to prevent these very attacks.  
  
  The process looks like this:  
  
        Strip ".." from all inputted paths.  
        Then strip "//" from all inputted paths.  
  
  This allows the following conversion to happen:  
  
        /.//./  
        /../  
    
  So with the root set to /home/mp3 the following allows the password  
 file to be retrieved:  
  
GET /.//.///.//./etc/passwd HTTP/1.0  
  
  The solution chosen is to :  
  
        1.  Strip "/../" only from the input paths.  And for Windows: (\..\).  
  
  Patch attached, gnump3d-dot-dot.diff

------- Comment #1 From Sune Kloppenborg Jeppesen 2005-10-17 22:51:32 0000 -------
Created an attachment (id=70901) [details]
gnump3d-dot-dot.diff

------- Comment #2 From Sune Kloppenborg Jeppesen 2005-10-17 22:52:00 0000 -------
Created an attachment (id=70902) [details]
gnump3d-xss.diff

------- Comment #3 From Thierry Carrez (RETIRED) 2005-10-19 01:28:21 0000 -------
luckyduck: please prepare a new ebuild with included patches and attach it to
this bug (do not commit it to Portage before 20051028).

------- Comment #4 From Thierry Carrez (RETIRED) 2005-10-23 03:18:27 0000 -------
Opening to other members of the sound herd, since luckyduck is quite MIA.

Could one of you please prepare a new ebuild with included patches and attach it
to this bug (do not commit it to Portage before 20051028).

------- Comment #5 From Jeremy Huddleston (RETIRED) 2005-10-23 19:56:24 0000 -------
I'm on it... please /msg me when it's ok to commit.

------- Comment #6 From Jeremy Huddleston (RETIRED) 2005-10-23 20:08:48 0000 -------
Created an attachment (id=71315) [details]
gnump3d-CAN-2005-3122.patch

for those interested in testing, the patch needed some cleanup.

------- Comment #7 From Jeremy Huddleston (RETIRED) 2005-10-23 20:09:39 0000 -------
Created an attachment (id=71316) [details]
gnump3d-CAN-2005-3123.patch

ditto...

------- Comment #8 From Thierry Carrez (RETIRED) 2005-10-24 08:06:41 0000 -------
Thx Jeremy. When ready, please attach everything needed to test (ebuild +
files)
so that we can call out arch testers on the bug.

------- Comment #9 From Jeremy Huddleston (RETIRED) 2005-10-25 13:09:57 0000 -------
Created an attachment (id=71443) [details]
gnump3d-2.9.4-r1.ebuild

------- Comment #10 From Jeremy Huddleston (RETIRED) 2005-10-25 13:10:51 0000 -------
Created an attachment (id=71444) [details]
gnump3d-2.9.5.ebuild

------- Comment #11 From Stefan Cornelius (RETIRED) 2005-10-25 22:36:59 0000 -------
Dear arch security-liaisons, plz test the ebuild and report back (remember it's
still confidential ;)
Btw, could somebody check if my CC'ed liaisons are the up-to-date ones?

------- Comment #12 From Thierry Carrez (RETIRED) 2005-10-26 00:35:32 0000 -------
Checking.... and adding rangerpb for ppc64

------- Comment #13 From Simon Stelling (RETIRED) 2005-10-26 10:01:49 0000 -------
the patch is unusable: with 2.9.4-r1, when i try to cd to a subdirectory called
'soul', the link points to http://soul/ instead of http://localhost:1234/soul.
2.9.4 works fine

------- Comment #14 From Thierry Carrez (RETIRED) 2005-10-27 00:38:47 0000 -------
Back to ebuild preperation as the attached one seems to fail.
If all else fails, there should be a new upstream release tomorrow.

------- Comment #15 From Thierry Carrez (RETIRED) 2005-10-28 06:51:29 0000 -------
Now public with the release of upstream 2.9.6.

Jeremy/sound team: maybe simpler to bump to that version if we're unsure of
those patches.

------- Comment #16 From Thierry Carrez (RETIRED) 2005-10-28 06:52:59 0000 -------
Cc cleanup to reduce pollution

------- Comment #17 From Jeremy Huddleston (RETIRED) 2005-10-28 08:50:14 0000 -------
2.9.6 in portage.  I've tested it to my satisfaction to put in portage, but I
don't have time at the moment to mark it stable for my archs.  I'll take care of
sparc, amd64, and x86 later tonight if someone else doesn't beat me to it.

------- Comment #18 From Thierry Carrez (RETIRED) 2005-10-28 10:42:03 0000 -------
Archs, please test and mark stable
Target KEYWORDS="alpha amd64 ~ppc ppc64 ~ppc-macos sparc x86"

------- Comment #19 From Fernando J. Pereda (RETIRED) 2005-10-28 13:21:20 0000 -------
alpha done

Cheers,
Ferdy

------- Comment #20 From Simon Stelling (RETIRED) 2005-10-28 15:02:50 0000 -------
i'm still encountering the same problems as in comment 13

i think it is related to this (gnump3d.conf):

directory_format = <tr><td width="10%">&nbsp;</td><td><a
href="$LINK">$DIR_NAME</a></td><td>$SONG_COUNT</td><td>$DIR_COUNT</td><td>[$RECURSE]</td></tr>

i tried to comment it out, but then gnump3d would just crash right after firing up

i also changed href="$LINK" to href="abc $LINK", then the link are looking like
this:

http://localhost:1234/abc Soul/

------- Comment #21 From Simon Stelling (RETIRED) 2005-10-28 15:21:12 0000 -------
from upstream changelog:

  2.9.7 [ 28th October 2005 ]
    - BUGFIX:  The previous release was broken.

indeed, after bumping the ebuild it worked fine. eradicator, could you commit it
with stable right away? kthxbye

------- Comment #22 From Thierry Carrez (RETIRED) 2005-10-29 02:25:42 0000 -------
Back to ebuild, we should definitely use 2.9.7 :)

------- Comment #23 From Diego E. 'Flameeyes' Pettenò 2005-10-30 08:09:50 0000 -------
*** Bug 110702 has been marked as a duplicate of this bug. ***

------- Comment #24 From Diego E. 'Flameeyes' Pettenò 2005-11-01 04:58:02 0000 -------
*** Bug 111122 has been marked as a duplicate of this bug. ***

------- Comment #25 From Brent Baude 2005-11-01 17:30:28 0000 -------
Just catching up here a bit.  So are we waiting for a -2.9.7 ebuild to hit
portage so archs can test and mark stable?

------- Comment #26 From Sune Kloppenborg Jeppesen 2005-11-01 22:16:08 0000 -------
Brent, yes that seems correct.  

------- Comment #27 From Diego E. 'Flameeyes' Pettenò 2005-11-02 10:32:13 0000 -------
*** Bug 111259 has been marked as a duplicate of this bug. ***

------- Comment #28 From Justin Krejci 2005-11-02 16:26:53 0000 -------
(In reply to comment #25)
> Just catching up here a bit.  So are we waiting for a -2.9.7 ebuild to hit
> portage so archs can test and mark stable?

on amd64 bumping the version number of the ebuild filename to 2.9.7 in my
portage overlay directory and updating to that version works perfectly.

------- Comment #29 From Thierry Carrez (RETIRED) 2005-11-03 01:13:25 0000 -------
eradicator/sound herd: please bump to 2.9.7, we're getting late on that one.

------- Comment #30 From Diego E. 'Flameeyes' Pettenò 2005-11-03 03:12:52 0000 -------
I've bumped it, but I haven't neither tried to compile it (I don't have the 
material time to start looking at configuring and testing it). 
Just wanted to make sure that this wouldn't remain unaddressed (and I'm tired 
of dupes :P) 

------- Comment #31 From Thierry Carrez (RETIRED) 2005-11-03 04:32:39 0000 -------
Thx Flameeyes,
Arches please test and mark 2.9.7 stable :
Target KEYWORDS="alpha amd64 ~ppc ~ppc-macos ppc64 sparc x86"


------- Comment #32 From Brent Baude 2005-11-03 06:43:03 0000 -------
Marked ppc64 stable.

------- Comment #33 From Simon Stelling (RETIRED) 2005-11-03 12:30:03 0000 -------
amd64 stable

------- Comment #34 From Mark Loeser 2005-11-03 21:59:23 0000 -------
x86 stable

------- Comment #35 From Gustavo Zacarias (RETIRED) 2005-11-04 06:46:18 0000 -------
sparc stable.

------- Comment #36 From Fernando J. Pereda (RETIRED) 2005-11-04 13:55:26 0000 -------
alpha stable

------- Comment #37 From Thierry Carrez (RETIRED) 2005-11-04 14:06:37 0000 -------
Apparently the amd64 keyword was not committed...

------- Comment #38 From Daniel Gryniewicz 2005-11-04 15:22:07 0000 -------
re-keyworded amd64

------- Comment #39 From Sune Kloppenborg Jeppesen 2005-11-06 08:30:55 0000 -------
GLSA 200511-05 

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