🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: bezpieczenstwo

#1227
From: Marek Rogozinski
Date: Mon, 27 Aug 2001 11:34
18 lines
1258 bytes
On Mon, 27 Aug 2001 11:50:02 +0100, slawek- wrote:
> To nie jest bezpieczne. Najłatwiejsze i najbardziej skuteczne zabezpieczenie
> to przekazywanie wszystkich wartości w SQLach otoczonych apostrofami. Nie ma
> siły żeby namieszać w bazie.

  Kwestia szczescia:) Niektore biblioteki umozliwiaja cos takiego:


  "SELECT * FROM tabela LIMIT '$ile'"

  Ale rowniez:

  $ile = "5'; DROP DATABASE baza; SELECT 'hmm";

  


 negativ
Technical Details
Message-ID: <slrn9okc29.8aj.negativ@negativ.hq.eo.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!news.ipartners.pl!not-for-mail
References: <9md4n3$96f$1@news.tpi.pl> <3b8a1892@news.home.net.pl>

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.man.poznan.pl!news.ipartners.pl!not-for-mail
From: Marek Rogozinski <negativ@urtica.linuxnews.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: bezpieczenstwo
Date: 27 Aug 2001 11:34:49 GMT
Organization: Internet Partners
Lines: 18
Message-ID: <slrn9okc29.8aj.negativ@negativ.hq.eo.pl>
References: <9md4n3$96f$1@news.tpi.pl> <3b8a1892@news.home.net.pl>
Reply-To: negativ@linuxnews.pl
NNTP-Posting-Host: null.eo.pl
Mime-Version: 1.0
X-Trace: news2.ipartners.pl 998912089 33717 157.25.91.201 (27 Aug 2001 11:34:49 GMT)
X-Complaints-To: abuse@ipartners.pl
NNTP-Posting-Date: 27 Aug 2001 11:34:49 GMT
User-Agent: slrn/0.9.7.2 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit