First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 81109
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
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 81109 depends on: Show dependency tree
Bug 81109 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-02-07 06:30 0000
Vulnerable code:

def true_path(path):
     "Ensure that the path is safe by removing .."
     path = string.replace(path, "../", "")
     path = string.replace(path, "./", "")
     return path[1:]

------- Comment #1 From Thierry Carrez (RETIRED) 2005-02-09 09:15:42 0000 -------
This is going public in a few hours.
Suggested fix from Barry Warsaw:

=======================================
SLASH = '/'

def true_path(path):
    "Ensure that the path is safe by removing .."
    parts = [x for x in path.split(SLASH) if x not in ('.', '..')]
    return SLASH.join(parts)[1:]
=============================================

langthang: please commit new patched ebuilds. Mailman won't release a new version until Friday.

------- Comment #2 From Tuan Van (RETIRED) 2005-02-09 10:06:38 0000 -------
mailman-2.1.5-r4 commited.

------- Comment #3 From Luke Macken (RETIRED) 2005-02-09 11:12:59 0000 -------
archs, please mark stable.

  x86   :: tester
  sparc :: gustavoz
  amd64 :: blubb

------- Comment #4 From Olivier Crete 2005-02-09 12:02:56 0000 -------
x86 there

------- Comment #5 From Gustavo Zacarias (RETIRED) 2005-02-09 12:21:09 0000 -------
sparc done.

------- Comment #6 From Thierry Carrez (RETIRED) 2005-02-09 12:22:47 0000 -------
Public @
http://lists.netsys.com/pipermail/full-disclosure/2005-February/031562.html

amd64 : please mark stable

------- Comment #7 From Jan Brinkmann (RETIRED) 2005-02-10 08:15:56 0000 -------
stable on amd64

------- Comment #8 From Sune Kloppenborg Jeppesen 2005-02-10 10:58:45 0000 -------
GLSA 200502-11

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