Taint differences between 5.8.0 and 5.8.1?

M

Matthew Braid

Hi all,

I was just trolling through my messages file recently and noticed that
ever since I upgraded from 5.8.0 to 5.8.1 I've been getting a lot of
'Insecure dependency' (ie taint) errors from one of my daemon scripts.

On closer inspection I narrowed it down to an exec call in MIME::Lite.
This chunk of code had not produced an error before while taint mode is
on (and in fact the comments around that chunk of code basically said
'Run sendmail in a taint-safe fashion').

Has exec become more taint-aware between 5.8.0 and 5.8.1?

I worked around it by untainting everything passed to exec, but it was a
little surprising and I haven't seen anything mentioned about the change
in documentation.

MB
 
R

Rafael Garcia-Suarez

Matthew said:
I was just trolling through my messages file recently and noticed that
ever since I upgraded from 5.8.0 to 5.8.1 I've been getting a lot of
'Insecure dependency' (ie taint) errors from one of my daemon scripts.

On closer inspection I narrowed it down to an exec call in MIME::Lite.
This chunk of code had not produced an error before while taint mode is
on (and in fact the comments around that chunk of code basically said
'Run sendmail in a taint-safe fashion').

Has exec become more taint-aware between 5.8.0 and 5.8.1?

A few taint bugs have been corrected.
Does deleting $ENV{TERM} help ?
I worked around it by untainting everything passed to exec, but it was a
little surprising and I haven't seen anything mentioned about the change
in documentation.

You can also use the -t command-line switch in place of -T when
debugging taint mode programs : it turns tainting fatal errors into
warnings. (see perlrun.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top