From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 27 Jun 2005 11:57:03 +0400 From: Alexey Tourbin To: Sisyphus Message-ID: <20050627075703.GJ31585@solemn.turbinal.org> Mail-Followup-To: Sisyphus References: <20050626090644.GB31585@solemn.turbinal.org> <200506271130.16915.serpiph@nikiet.ru> <20050627074852.GI31585@solemn.turbinal.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mPTHnM80CEnHQ2WJ" Content-Disposition: inline In-Reply-To: <20050627074852.GI31585@solemn.turbinal.org> Subject: [sisyphus] Re: Q: perl security, CPAN security X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2005 07:58:13 -0000 Archived-At: List-Archive: --mPTHnM80CEnHQ2WJ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 27, 2005 at 11:48:52AM +0400, Alexey Tourbin wrote: > On Mon, Jun 27, 2005 at 11:30:16AM +0400, Epiphanov Sergei wrote: > > > 1) perl, =C5=D3=CC=C9 =DA=C1=D0=D5=DD=C5=CE =CF=D4 root'=C1, =C4=CF= =CC=D6=C5=CE =D2=C1=C2=CF=D4=C1=D4=D8 =D7 =D2=C5=D6=C9=CD=C5 taint mode. > > =EB=D4=CF =CB=CF=CD=D5 =C4=CF=CC=D6=C5=CE? =F1 =D0=CF=CE=C9=CD=C1=C0, = =DE=D4=CF =CC=D5=DE=DB=C5 =D7=D3=C5=C7=CF, =C5=D3=CC=C9 =DC=D4=CF=D4 =D2=C5= =D6=C9=CD =D7=CB=CC=C0=DE=A3=CE. =EE=CF=20 > > =CB=CF=C7=C4=C1 =CE=C5=CF=C2=C8=CF=C4=C9=CD=CF, =DE=D4=CF=C2=D9 =CF=D4= =D2=C1=C2=CF=D4=C1=CC =D3=D7=CF=CA =D3=CF=C2=D3=D4=D7=C5=CE=CE=D9=CA =D3=CB= =D2=C9=D0=D4, =CE=C5=C4=CF=D3=D4=D5=D0=CE=D9=CA=20 > > =C4=D2=D5=C7=C9=CD, =CD=CE=C5 =CC=C5=CE=D8 =D4=D2=C1=D4=C9=D4=D8 =D7=D2= =C5=CD=C5=CE=C9 =C9 =D3=C9=CC =D7 =C4=D7=C1 =D2=C1=DA=C1 =C2=CF=CC=D8=DB=C5= . =F3=C1=CD =CE=C1=D0=C9=D3=C1=CC - =D3=C1=CD=20 > > =D7=C9=CE=CF=D7=C1=D4 =D7 =D0=CF=D3=CC=C5=C4=D3=D4=D7=C9=D1=C8. =EE=C5= =D4 =D5=D6, =D0=D5=D3=D4=D8 =C2=D5=C4=C5=D4 =CB=C1=CB =C5=D3=D4=D8. >=20 > =F7=D9 =DA=C1=D0=D5=D3=CB=C1=C5=D4=C5 =DC=D4=CF=D4 =D3=CB=D2=C9=D0=D4 =CF= =D4 =D2=D5=D4=C1? :) =F4=CF=C7=C4=C1 =D7=C1=CD =D3=C0=C4=C1: > http://www.linux.org.ru/view-message.jsp?msgid=3D392747&page=3D0 >=20 > =F3=C5=CA=DE=C1=D3 =D0=D2=C1=D7=C9=CC=CF =C4=CC=D1 =C9=CD=D0=CC=C9=C3=C9= =D4=CE=CF=C7=CF =D7=CB=CC=C0=DE=C5=CE=C9=D1 tain mode =D7=D9=C7=CC=D1=C4=C9= =D4 =D4=C1=CB: > perl.c: PL_tainting |=3D (PL_uid && (PL_euid !=3D PL_uid || PL_egid != =3D PL_gid)); >=20 > =F0=D2=C5=C4=CC=C1=C7=C1=C5=D4=D3=D1 =C4=CF=C2=C1=D7=C9=D4=D8 =D7 =D5=D3= =CC=CF=D7=C9=C5 PL_euid=3D=3D0 || ... =FA=C1=C2=D9=CC =D3=CB=C1=DA=C1=D4=D8, =DE=D4=CF =C2=D5=C4=C5=D4 =D4=C1=CB= =CF=CA =D6=C5 workaround, =CB=C1=CB=CF=CA =D3=C5=CA=DE=C1=D3 =D3=D5=DD=C5= =D3=D4=D7=D5=C5=D4. $ cat test.pl #!/usr/bin/perl -T print `date`; $ ./test.pl Insecure $ENV{PATH} while running with -T switch at ./test.pl line 2. $ perl ./test.pl "-T" is on the #! line, it must also be used on the command line at ./test.= pl line 1. $ perl -t ./test.pl Insecure $ENV{PATH} while running with -t switch at ./test.pl line 2. Insecure EXEC while running with -t switch at ./test.pl line 2. Mon Jun 27 11:55:38 MSD 2005 $ --mPTHnM80CEnHQ2WJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCv7FPfBKgtDjnu0YRAnaLAJsHFed/gVp/eEvnZI627K719mfdnACgkll9 0ZU+NgkZlfKmMoynBYvT1Xc= =W2NQ -----END PGP SIGNATURE----- --mPTHnM80CEnHQ2WJ--