🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #1224

bezpieczenstwo

#1224
From: Gr0g
Date: Mon, 27 Aug 2001 09:45
24 lines
1391 bytes
Pisze pierwszy raz na ta grupe, wiec witam wszytkich.

czy moze orientujecie sie czy bezpeczne jest doczepienie stron przez include
ktorych nazwy sa pobierane z parametru:

index.php?file=a.php
--
<?
include($file);
?>
--

czy podawanie wartosci do zapytan SQL ktore nie sa brane w cudzyslow przez
parametr jest bezpieczne?:

szukaj.php?orderby=kolumna&pageoffset=20
<?
 $mysql_q="SELECT * FROM tabela ORDER BY $orderby LIMIT $pageoffset, 25";
mysql_query($mysql_q);
[...]
?>

na razie tyle,
krzysiek
Technical Details
Message-ID: <9md4n3$96f$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news.man.lodz.pl!newsfeed.silweb.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news.man.lodz.pl!newsfeed.silweb.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "Gr0g" <krzysiek@gr0g.prv.pl>
Newsgroups: pl.comp.lang.php
Subject: bezpieczenstwo
Date: Mon, 27 Aug 2001 11:45:07 +0200
Organization: tp.internet - http://www.tpi.pl
Lines: 27
Message-ID: <9md4n3$96f$1@news.tpi.pl>
NNTP-Posting-Host: pi158.wroclaw.sdi.tpnet.pl
X-Trace: news.tpi.pl 998905379 9423 217.96.152.158 (27 Aug 2001 09:42:59 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: 27 Aug 2001 09:42:59 GMT
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit