PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Fri Sep 21, 2007 1:34 am Reply with quote Back to top

Well I've analyzed some of the patches and changes for this version.

I'm wondering if the new redirect code is better.
I've not particular researched HEADER redirects over META redirects

This is the new code

Code:

   $url = urldecode($url);
   echo "{meta http-equiv=\"refresh\" content=\"0; url=$url\">";


There's an is_admin check around it, so it should be less exploitable. But what are the context of using this, esp since $url is urldecoded but not HTML escaped


---

A minor catch as well, this is the new "referral" protection code added to stop basic SQL injections

Code:

    if (eregi("nuke_", $referer) && eregi("into", $referer) && eregi("from", $referer)) {
       $referer = "";
    }


Sadly, the problem is FB fails to fix the underlying problem. $referrer is not database-escaped!!

The 8.1 Patched 3.4 files does add a correct addslashes. Again, FB failing to patch the files IN FULL. If he would only do that and stop adding junk code.
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Fri Sep 21, 2007 6:05 am Reply with quote Back to top

Ah, but you're assuming he wrote that...

As for HEADER vs META, I'd have to compare the two and do some research before commenting. But, given the track record, I'd be suspicious.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Fri Sep 21, 2007 6:44 am Reply with quote Back to top

HEADER can be used anywhere in your code but must be written before anything is sent to your browser.

META must be placed in the <head></head> section.

Here's some good info on it.
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum