Bug 530255 (CVE-2009-3625)

Summary: CVE-2009-3625 Sahana: Arbitrary files access due improper processing of URLs with null character in the string
Product: [Other] Security Response Reporter: David Nalley <david>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: jlieskov, rcvalle, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/mailarchive/forum.php?thread_name=5d9043b70910191044l4bb0178fs563a5128a0f5db01%40mail.gmail.com&forum_name=sahana-maindev
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-16 16:02:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Nalley 2009-10-22 01:57:52 UTC
Security issue noted here: 
--------------------------
http://sourceforge.net/mailarchive/forum.php?thread_name=5d9043b70910191044l4bb0178fs563a5128a0f5db01%40mail.gmail.com&forum_name=sahana-maindev

Upstream patch:
---------------
http://sahana.cvs.sourceforge.net/viewvc/sahana/sahana-phase2/www/index.php?r1=1.83&r2=1.84

PoC:
----
http://sahana/index.php?stream=text&mod=/../../../../../../../../../../../etc/passwd%00

Further issue analysis by David Nalley:
---------------------------------------
The first issue would allow an attacker to touch/modify any file on the system.
Essentially the issue is that get, post, and requests aren't sanitized or unescaped. 

Patches are outlined in the thread, and I am about to push updates to the package - documenting here.

Comment 1 David Nalley 2009-10-22 03:00:52 UTC
pushed updates, requested push to stable in bodhi for F10,F11,and EL-5

Filed ticket 2635 with Rel-Eng for tag into F12
https://fedorahosted.org/rel-eng/ticket/2635#preview

Comment 3 Jan Lieskovsky 2009-10-23 07:40:46 UTC
This is CVE-2009-3625.

Comment 4 Fedora Update System 2009-10-23 23:21:01 UTC
sahana-0.6.2.2-6.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2009-10-27 06:27:26 UTC
sahana-0.6.2.2-6.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2009-10-27 07:04:12 UTC
sahana-0.6.2.2-6.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.