Movatterモバイル変換


[0]ホーム

URL:


homepage

Message247944

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorr.david.murray
RecipientsTheRegRunner, r.david.murray
Date2015-08-03.18:44:10
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<1438627450.99.0.873703919599.issue24778@psf.upfronthosting.co.za>
In-reply-to
Content
In this case os.system is an appropriate API, because it mirrors the API of mailcap itself (that is, mailcap entries are shell commands).  I'm not convinced there is a security bug here.  It seems to me that there are two cases: either the filename is determined by the program, in which case there is no security issue, or the filename comes from an external source, and the program will have had to *write it to the file system* before the mailcap command will do anything.  So the security hole, if any, will have happened earlier in the process.Now, one can argue that the quoting should be done in order to preserve the meaning of an arbitrary filename.  Which would allay your concern even if I disagree that it is a real security bug :)(I don't understand why run-mailcap uses an alias rather than correctly quoting the meta-characters.)
History
DateUserActionArgs
2015-08-03 18:44:11r.david.murraysetrecipients: +r.david.murray,TheRegRunner
2015-08-03 18:44:10r.david.murraysetmessageid: <1438627450.99.0.873703919599.issue24778@psf.upfronthosting.co.za>
2015-08-03 18:44:10r.david.murraylinkissue24778 messages
2015-08-03 18:44:10r.david.murraycreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp