You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 81 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Are these genuine Hack Attempts? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
andyb
Nuke Soldier
Nuke Soldier


Joined: May 12, 2004
Posts: 12

Location: lost in a search string...

PostPosted: Thu Jun 17, 2004 1:30 pm Reply with quoteBack to top

Not sure if this is the correct area for this forum; apologies if not.

I'm running the chatserv tweaked 6.9, with a few choice mods.... including admin secure and sentinel.....

I've had these emails, and admin secure has blokced them, with details below.

Can somebody please advise if these are genuine hack attempts or not?

Thanks!

----------------------------------------
- Date: 17 June 2004, 05:57
- IP Address: 194.103.189.24
- Host: flow.skane.se
- User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
- Referrer: http://www.sitename.net/modules.php?name=Forums&file=viewforum&f=18
- Request: /modules.php?name=Forums&file=modules&name=Forums&file=modules/Forums/index&sid=4398aec097da66b702c13e9fa4e4efb7
- Variable: $file = modules/Forums/index

---------------------------------------------

Referrer: http://www.sitename.net/modules.php?name=Forums&file=viewforum&f=18
- Request: /modules.php?name=Forums&file=modules&name=Forums&file=modules/Forums/search&sid=4398aec097da66b702c13e9fa4e4efb7
- Variable: $file = modules/Forums/search
-------------------------------------------------

- Referrer: http://www.sitename.net/modules.php?name=Forums&file=viewforum&f=18
- Request: /modules.php?name=Forums&file=modules&name=Forums&file=modules/Forums/faq&sid=4398aec097da66b702c13e9fa4e4efb7
- Variable: $file = modules/Forums/faq

----------------------------------------------------------

- User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 9Cool
- Request: /modules.php?name=Forums&file=modules&name=Forums&file=modules/Forums/search&sid=ed2fe481316128d303da1dd6b206374f
- Variable: $file = modules/Forums/search
-------------------------------------------------------

The one above got me thinking because of the "Forums&file=modules&name=Forums&file=modules/Forums/search"

strikes me as odd......

I've had nothing from the system, bar the regular reports- today it's gone MENTAL- there are others, and it's blocked a few IP's....


any feedback/ suggestions/ ideas welcome.

I've removed my actual site name and replaced with "sitename"- but it's not rocket science to work it out Wink

_________________
Can't get my image to link Sad
Find all posts by andybView user's profileSend private messageMSN Messenger
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Thu Jun 17, 2004 2:03 pm Reply with quoteBack to top

It was false alarms, but may caused by bad implementation in append_sid() function (this function declared in includes/session.php). Secondly, name and file are declared twice in URI queries. If you want, you can post the content of append_sid() function here (or PM me), and I'll fix it for you.

note:
Admin Secure restrict name and file arguments should pointing only to PHP file (no extension) without embedded with path.

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
andyb
Nuke Soldier
Nuke Soldier


Joined: May 12, 2004
Posts: 12

Location: lost in a search string...

PostPosted: Thu Jun 17, 2004 11:46 pm Reply with quoteBack to top

I'll try and post it later- thanks madman.

I may not be able to get on the site.... www.nukecops.com doesn't work... I've got in through www.nukecops.net Rolling Eyes

_________________
Can't get my image to link Sad
Find all posts by andybView user's profileSend private messageMSN Messenger
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Fri Jun 18, 2004 10:28 am Reply with quoteBack to top

andyb wrote:
I may not be able to get on the site.... www.nukecops.com doesn't work... I've got in through www.nukecops.net Rolling Eyes


Try http://209.213.221.234/ Smile

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
andyb
Nuke Soldier
Nuke Soldier


Joined: May 12, 2004
Posts: 12

Location: lost in a search string...

PostPosted: Wed Jun 23, 2004 4:41 am Reply with quoteBack to top

I got the mail with the message, but couldn't access it......

(thanks for trying!)

append sid below- hope this helps!- thanks for your input!

// Append $SID to a url. Borrowed from phplib and modified. This is an
// extra routine utilised by the session code above and acts as a wrapper
// around every single URL and form action. If you replace the session
// code you must include this routine, even if it's empty.
//
function append_sid($url, $non_html_amp = false)
{
global $SID, $admin;
if (ereg("admin=1", $url) || ereg("admin_", $url) || ereg("pane=", $url)){
// The format is fine, don't change a thing.
} else if (ereg("Your_Account", $url)){
$url = str_replace(".php", "", $url); // Strip the .php from all the files,
$url = str_replace("modules", "modules.php", $url); // and put it back for the modules.php
}
else if (ereg("redirect", $url))
{
$url = str_replace("login.php", "modules.php?name=Your_Account", $url); // Strip the .php from all the files,
$url = str_replace(".php", "", $url); // Strip the .php from all the files,
$url = str_replace("?redirect", "&redirect", $url); // Strip the .php from all the files,
$url = str_replace("modules", "modules.php", $url); // and put it back for the modules.php
}
else if (ereg("menu=1", $url))
{
$url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
$url = str_replace(".php", "", $url); // Strip the .php from all the files,
$url = "../../../modules.php?name=Forums&file=$url";
}
else if ((ereg("privmsg", $url)) && (!ereg("highlight=privmsg", $url)))
{
$url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
$url = str_replace("privmsg.php", "modules.php?name=Private_Messages&file=index", $url); // and put it back for the modules.php
}
else if ((ereg("profile", $url)) && (!ereg("highlight=profile", $url)))
{
$url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
$url = str_replace("profile.php", "modules.php?name=Forums&file=profile", $url); // and put it back for the modules.php
$dummy = 1;
}
else if ((ereg("memberlist", $url)) && (!ereg("highlight=memberlist", $url)))
{
$url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
$url = str_replace("memberlist.php", "modules.php?name=Members_List&file=index", $url); // and put it back for the modules.php
} else {
$url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
$url = str_replace(".php", "", $url);
$url = "modules.php?name=Forums&file=".$url; //Change to Nuke format
}

if ( !empty($SID) && !eregi('sid=', $url) && !areyouabot() )
{
if ( !empty($SID) && !eregi('sid=', $url) ) {
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
}
return($url);
}

_________________
Can't get my image to link Sad
Find all posts by andybView user's profileSend private messageMSN Messenger
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Wed Jun 23, 2004 4:20 pm Reply with quoteBack to top

You'll have to modify your append_sid() function.

After this line:
Code:
global $SID, $admin;

Add these new lines:
Code:
if (preg_match('/modules\.php\?name\=Forums/i', $url))
{
  if (preg_match('/file\=.+\/([^\&]+)\&?/i', $url, $matches)) $url = preg_replace('/file=[^\&]/i', 'file='.$matches[1], $url);
  if (!preg_match('/sid\=.+/i', $url)) $url .= ( ($non_html_amp) ? '&' : '&' ) . $SID;
  return $url;
}


It is likely one or some of your forum mods calling append_sid() function multiple times to the same url string. Also, I have no idea how &file argument can contain path instead of filename. However, try the above patch. Let me know if it won't work as expected.

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
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.printer-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.280 Seconds - 282 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::