Closed p5pRT closed 15 years ago
Dear all\,
Hi. This is imacat from Taiwan. I found that since Perl 5.10.1\, changing $\< (real user id) unexpectedly invoked the taint mode. This is not found in perl5101delta. This breaks existing applications like MRTG\, that they cannot read and use any foreign data anymore if they want to change their UID.
I have created a sample test case and attached below. Please tell me if you need any more information\, or if I could be of any help. Thank you.
root@rinse:\~# cat /tmp/test.pl #! /usr/bin/perl -w print "before chuid: " . (${^TAINT}? "taint mode\n": "not taint mode\n"); $\< = 1; print "after chuid: " . (${^TAINT}? "taint mode\n": "not taint mode\n"); root@rinse:\~# /tmp/test.pl before chuid: not taint mode after chuid: taint mode root@rinse:\~#
Thanks for the report\, imacat. This issue is a duplicate of 67260. I'm resolving this ticket today. That doesn't mean that the bug's invalid\, just that we're already tracking it in another ticket.
Best\, Jesse
@obra - Status changed from 'new' to 'resolved'
Migrated from rt.perl.org#69246 (status was 'resolved')
Searchable as RT69246$