Insecure dependency in exec while running with -T switch at /usr/share/perl5/TWiki.pm line 3454.
whenever we clicked the "Diffs" link on a TWiki topic. I looked into the code and
the problem seems to start on line 378 of /usr/share/perl5/TWiki/UI/RDiff.pm
my $rev1 = $query->param( "rev1" );
At this point rev1 (and rev2) are tainted.
On line 410 (411 for rev2) they are run through a regexp:
$rev1 =~ s/r?1\.//go; # cut 'r' and major
but it does not seem sufficient to untaint them.
Changing the line to something like:
($rev1) = $rev1 =~ /r?1\.(\d*)/; # cut 'r' and major
does work.
This issue was also submitted to the Debian
package list and assigned bug# 307299.
| TWiki version: | TWikiRelease02Sep2004 |
| TWiki plugins: | DefaultPlugin, EmptyPlugin, InterwikiPlugin |
| Server OS: | Debian Linux (2.4.25 #1 SMP) |
| Web server: | Apache 2.0.54-2 |
| Perl version: | 5.8.4 |
| Client OS: | Mac OS X Panther |
| Web Browser: | Firefix 1.0.3 |
| ChangeProposalForm | |
|---|---|
| TopicClassification | BugReport |
| TopicSummary | Topic Diffs gives multiple Perl Taint errors |
| CurrentState | UnderInvestigation |
| OutstandingIssues | |
| RelatedTopics | |
| InterestedParties | |
| ProposedFor | |
| AppliesTo | |
| TWikiContributors | |
| HasPriority | 100 |