Bug 479171 - Unsafe shell usage
Summary: Unsafe shell usage
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mumbles
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: John Anderson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-07 18:01 UTC by Tim Waugh
Modified: 2009-07-11 17:26 UTC (History)
1 user (show)

Fixed In Version: 0.4-11.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-21 21:30:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Waugh 2009-01-07 18:01:16 UTC
Description of problem:
The Firefox plugin uses os.system in an insecure fashion.

Version-Release number of selected component (if applicable):
mumbles-0.4-1.fc10

        def open_uri(self, uri):
                mime_type = gnomevfs.get_mime_type(uri)
                application = gnomevfs.mime_get_default_application(mime_type)
                os.system(application[2] + ' "' + uri + '" &')

This would be much better written to use the subprocess module and use an argument list like [application[2], uri], or else by using the shell's own substitution mechanism like this:

os.environ['URI'] = uri
os.system(application[2] + ' "$URI" &')

Comment 1 Fedora Update System 2009-01-09 16:41:20 UTC
mumbles-0.4-9.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/mumbles-0.4-9.fc10

Comment 2 John Anderson 2009-01-09 16:49:02 UTC
Update has been sent to testing.

Submitted upstream with patch, bug 2496077

Thanks,

John

Comment 3 Fedora Update System 2009-01-15 02:58:28 UTC
mumbles-0.4-9.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mumbles'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-0436

Comment 4 Fedora Update System 2009-01-21 21:30:37 UTC
mumbles-0.4-9.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2009-06-09 02:40:09 UTC
mumbles-0.4-10.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/mumbles-0.4-10.fc11

Comment 6 Fedora Update System 2009-07-03 02:04:19 UTC
mumbles-0.4-11.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/mumbles-0.4-11.fc11

Comment 7 Fedora Update System 2009-07-11 17:26:10 UTC
mumbles-0.4-11.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.