Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.8
Author Message
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Wed Sep 17, 2003 12:18 pm Reply with quote

I have a block called Worth Visiting!! on my site and I had a link to your old addy Raven. When I updated it to the new address it will not let me save the URL with the word script in it. I tried it several different ways and if I take any letter out of the word script it will save, if I use the entire word it kicks me out of the admin panel and back to the home page.
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Sep 17, 2003 12:49 pm Reply with quote

Poor coding on the part of FB in mainfile.php
Code:
foreach ($_GET as $secvalue) {

    if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
   (eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
   (eregi("\"", $secvalue))) {
   die ("I don't like you...");
    }
}

foreach ($_POST as $secvalue) {
    if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||   (eregi("<[^>]*style*\"?[^>]*>", $secvalue))) {
        Header("Location: index.php");
        die();
    }
}

If you check all stories before they get posted, the quick fix is to comment out the wcript check in these 2 lines. Only one is causing it. Play with it to see which one. It's probably the GET.
 
View user's profile Send private message
blith







PostPosted: Wed Sep 17, 2003 2:22 pm Reply with quote

thanks for the reply! ummm how do I comment something out? I am learning... heh heh Embarassed
 
Raven







PostPosted: Wed Sep 17, 2003 3:03 pm Reply with quote

Well, in this case we would use /* */ as in
Code:
if (/*(eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||*/ 
 
blith







PostPosted: Wed Sep 17, 2003 3:25 pm Reply with quote

thank you... unknown entity
 
blith







PostPosted: Tue Sep 30, 2003 1:48 pm Reply with quote

Raven, I commented out one and then the other and it is the POST statement that did it.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.8

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©