I really think to be safe we should simply replace any shell metacharacters for those things,I'm not sure that could be done completely safely. See below about not using /bin/sh -c.
Our official list of shell metacharacters in argsplit() is:
#define METACHARS "$&*(){}[]'\";\\|?<>~`\n"
It seems like replacing all of those for any MIME parameter we encounter
would make sense, and would be safe?
--Ken
--
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers
| Previous by Date: | Re: [Nmh-workers] rcvdist with non-default port, Ken Hornstein |
|---|---|
| Next by Date: | Re: [Nmh-workers] rcvdist with non-default port, David Levine |
| Previous by Thread: | Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7, David Levine |
| Next by Thread: | Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7, David Levine |
| Indexes: | [Date] [Thread] [Top] [All Lists] |