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 -> NukeSentinel(tm) v2.5.x
Author Message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun Jul 16, 2006 10:56 am Reply with quote

I just got a link submitted, and clicking on the Visit link in the admin panel gave me a Sentinel block...I suppose its because the visit link is getting generated like this:

Code:


http://www.mysite.com/index.php?url=http://www.somelink.com


(So, why does the link get generated like that anyway?)

I will recode that part of the Web_Links module so that the Visit link just looks like http:://www.somelink.com, but just thought I would give a heads up.
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sun Jul 16, 2006 11:14 am Reply with quote

That shouldn't happen.
Have you tried inserting the actual link url when submitting it through the form as [ Only registered users can see links on this board! Get registered or login! ] and as [ Only registered users can see links on this board! Get registered or login! ]
Do both of those give the the same error?
 
View user's profile Send private message Send e-mail
Gremmie







PostPosted: Sun Jul 16, 2006 11:18 am Reply with quote

Submitting a link as [ Only registered users can see links on this board! Get registered or login! ] gives a 404 not found because the visit link is generated like this:

Code:


http://www.mysite.com/index.php?url=www.somelink.com
 
Guardian2003







PostPosted: Sun Jul 16, 2006 11:20 am Reply with quote

Hmm ok. I'll test this now on my test site as it has recently had NS 2.5.0 installed
 
manunkind
Client



Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Sun Jul 16, 2006 11:20 am Reply with quote

It's by design:
[ Only registered users can see links on this board! Get registered or login! ]

_________________
PC Sympathy 
View user's profile Send private message Visit poster's website
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Sun Jul 16, 2006 11:20 am Reply with quote

Good idea gremmie, taking the code out of sentinel would not be a good or wise idea, I hope this works out for you.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Gremmie







PostPosted: Sun Jul 16, 2006 11:24 am Reply with quote

Does anyone know why PHP-Nuke generates links in admin areas like this anyway? Why not just generate the direct link? Why does it send the link through index.php as the url variable?
 
Guardian2003







PostPosted: Sun Jul 16, 2006 11:28 am Reply with quote

I am still unable to reproduce this on my test site.
Just in case it is something specific to the url you are attempting, can you post it so I can try that exact url?
 
Gremmie







PostPosted: Sun Jul 16, 2006 11:39 am Reply with quote

I've tried many URLs, it doesn't seem to matter. Here is one that did it for me: [ Only registered users can see links on this board! Get registered or login! ]

I just grepped for index.php?url= in the code, and there are like 20-30 occurrences....Web_Links, Downloads, News, Shout_Box.....hmmmm..this will be fun....
 
Guardian2003







PostPosted: Sun Jul 16, 2006 11:45 am Reply with quote

Well its there to stop crosss site scripting attacks so removing it will leave you wide open.
Which version of phpnuke are you using.
 
manunkind







PostPosted: Sun Jul 16, 2006 11:50 am Reply with quote

I just don't click those Admin links anymore. It takes about 2 seconds to copy the URL and paste it in the address bar of a new window.
 
Gremmie







PostPosted: Sun Jul 16, 2006 11:53 am Reply with quote

I didn't say I was going to remove anything in Sentinel.

In my version of PHP-Nuke, 7.9 w/Chatservs patches, there are lots of places in the admin functions where external links get generated in the form:
[ Only registered users can see links on this board! Get registered or login! ]

When I look in index.php I see this:

Code:


if (isset($url) AND is_admin($admin)) {
   Header("Location: $url");
   die();
}


FB or whoever had a reason why external links in admin areas got generated like that....does anyone know the rationale?

Clearly I would rather have Sentinels XSS protection, but it will mean changing a lot of code in my PHP-Nuke...or just not clicking on those links in the admin areas.
 
Guardian2003







PostPosted: Sun Jul 16, 2006 11:56 am Reply with quote

I just tried the link you postes. I submitted the link as a normal user (logged out of admin).
I logged in as admin, clicked the 'waiting links' link in the admin block which brought up the admin page.
I clicked the 'visit' link to verfiy the url which it did with not problems and then saved it.
I then logged out as admin, whent to weblinks module as a normal users and clicked the link, still no problems.
The test site is using the latest Raven Nuke public release with Sentinel 2.5.0
 
Gremmie







PostPosted: Sun Jul 16, 2006 11:59 am Reply with quote

Hover your mouse over the Visit link in the admin area where you approve the link and please post the URL that is generated. Is it of the form: [ Only registered users can see links on this board! Get registered or login! ] ?
 
Guardian2003







PostPosted: Sun Jul 16, 2006 12:07 pm Reply with quote

Yes that is the exact form it takes.
Strngely though, if you submit the link and then go back in to 'edit' the link, the 'visit' link shows a normal url.
I just cannot reproduce the problem and unless I can, it is impossible for me to offer a fix.
 
Gremmie







PostPosted: Sun Jul 16, 2006 12:19 pm Reply with quote

Then perhaps we have different Sentinel settings or something?
 
Guardian2003







PostPosted: Sun Jul 16, 2006 1:45 pm Reply with quote

Everything is turned on in mine apart from 'force nuke url' , flood blocker and ddos.
 
Gremmie







PostPosted: Sun Jul 16, 2006 3:16 pm Reply with quote

Well I'm not sure how to characterize what I have on or off in Sentinel without posting a database table, as I am new at it. Most everything is at defaults. I don't have IP2C data loaded and am not using that. In that other thread, Raven indicated the blocking of links of that form was by design. So why it does not happen to you, I cannot explain.
 
Guardian2003







PostPosted: Sun Jul 16, 2006 4:23 pm Reply with quote

It might possibly have something to do with that darn stupid tiny_mce editor (again) but as I would never use any version above 7.6 I cannot even try it on higher versions to try and reproduce it.
 
Gremmie







PostPosted: Sun Jul 16, 2006 5:02 pm Reply with quote

Well I would wager its Sentinel and not the differences in nuke. Both of our PHP-Nukes are generating links of the form [ Only registered users can see links on this board! Get registered or login! ] but your Sentinel isn't blocking you and mine is.
 
Guardian2003







PostPosted: Sun Jul 16, 2006 5:30 pm Reply with quote

But I'm not using a version above 7.6 either.
I think Raven or Bob is going to have to sort this one out as I simply cannot reproduce the problem.
 
Gremmie







PostPosted: Sun Jul 16, 2006 8:48 pm Reply with quote

I imported the IP2Country stuff and it is still blocking me.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Jul 16, 2006 11:23 pm Reply with quote

It is blocked with Sentinel. It was designed so that the referrals to the site only see "http://www.mysite.com/index.php" and not your actual admin page Smile

A way to bypass this is not to pass a URL, rather pass the ID number of the referring url and have the database retrieve it. It just requires one database query

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
Guardian2003







PostPosted: Sun Jul 16, 2006 11:59 pm Reply with quote

Gremmie If you are still blocked from your site you will need to check the .htacces file for your IP address and remove it, then remove your IP from the blocked ip table using phpmyadmin or any other database tool you have.
 
Gremmie







PostPosted: Mon Jul 17, 2006 6:53 am Reply with quote

No, I am not blocked from my site. I get a blocked page when clicking on the Visit link in the Web_Links admin page because the links are of that crazy form.

Thank you Evaders....I finally understand why links are getting generated like that!!!!! You rock!

So....coding them to be direct links doesn't seem like a good idea because referals to those foreign sites will see my admin page. And keeping them the way they are causes Sentinel to have a fit....(except for Guardian who doesn't seem to have this problem). A possible solution is what Evaders suggests...but for right now, that seems like a lot of work. I guess I won't click on those links directly in the admin pages for now. Confused
 
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 -> NukeSentinel(tm) v2.5.x

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 ©