Subject: The mailing list for listmasters using Sympa
List archive
Re: [sympa-users] Re: Getting lots of "mod_fcgid: stderr: Insecure dependency in" errors
- From: David Verdin <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] Re: Getting lots of "mod_fcgid: stderr: Insecure dependency in" errors
- Date: Fri, 26 Aug 2011 11:58:52 +0200
Better with the patch actually attached... Le 26/08/11 11:54, David Verdin a écrit : address@concealed"> Hi, --
David Verdin Comité réseau des universités Due to the limitations of human brain, I fail to remember all the mails. So if you want your bug reports or feature requests for Sympa to be processed, please post them to the Sympa tracker |
===================================================================
--- src/lib/Lock.pm (révision 7197)
+++ src/lib/Lock.pm (copie de travail)
@@ -250,7 +250,8 @@
## Read access to prevent "Bad file number" error on Solaris
my $fh;
- unless (open $fh, $open_mode.$lock_file) {
+ my $untainted_lock_mode = sprintf("%s.%s",$open_mode,$lock_file)
+ unless (open $fh, $untainted_lock_mode) {
&do_log('err', 'Cannot open %s: %s', $lock_file, $!);
return undef;
}
Index: src/lib/List.pm
===================================================================
--- src/lib/List.pm (révision 7197)
+++ src/lib/List.pm (copie de travail)
@@ -1542,11 +1542,12 @@
## Only process the list if the name is valid.
my $listname_regexp = &tools::get_regexp('listname');
- unless ($name and ($name =~ /^$listname_regexp$/io) ) {
+ unless ($name and ($name =~ /^($listname_regexp)$/io) ) {
&do_log('err', 'Incorrect listname "%s"', $name) unless
($options->{'just_try'});
return undef;
}
## Lowercase the list name.
+ $name = $1;
$name =~ tr/A-Z/a-z/;
## Reject listnames with reserved list suffixes
@@ -9699,8 +9700,8 @@
}
do_log('debug2', 'List::_save_stats_file(%s, %d, %d, %d)', $file,
$total,$last_sync,$last_sync_admin_user );
-
- open(L, "> $file") || return undef;
+ my $untainted_filename = sprintf ("%s",$file);
+ open(L, "> $untainted_filename") || return undef;
printf L "%d %.0f %.0f %.0f %d %d %d\n", @{$stats}, $total, $last_sync,
$last_sync_admin_user;
close(L);
}
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
-
[sympa-users] Re: Getting lots of "mod_fcgid: stderr: Insecure dependency in" errors,
Omen Wild, 08/12/2011
-
Re: [sympa-users] Re: Getting lots of "mod_fcgid: stderr: Insecure dependency in" errors,
Olaf Menkens, 08/23/2011
-
Re: [sympa-users] Re: Getting lots of "mod_fcgid: stderr: Insecure dependency in" errors,
David Verdin, 08/26/2011
- Re: [sympa-users] Re: Getting lots of "mod_fcgid: stderr: Insecure dependency in" errors, David Verdin, 08/26/2011
-
Re: [sympa-users] Re: Getting lots of "mod_fcgid: stderr: Insecure dependency in" errors,
David Verdin, 08/26/2011
-
Re: [sympa-users] Re: Getting lots of "mod_fcgid: stderr: Insecure dependency in" errors,
Olaf Menkens, 08/23/2011
Archive powered by MHonArc 2.6.19+.