Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: skip - maaliskuu 12, 2008, 05:09:16 IP

Otsikko: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: skip - maaliskuu 12, 2008, 05:09:16 IP
Hi,

Perhaps someone can help/let me know if it what I'm seeing is weird. I ran GsiteCrawler on my site and noticed lots and lots of links coming up showing in the area where I run the forum, in my case siteroot.com/talk

the links I'm seeing are warez type links like

http://site.com/talk/crack.5.1.php

they are all php links which don't go anywhere except give you an error 404 if you paste them in the browser.

Any ideas?

Thanks
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: steph5005 - maaliskuu 12, 2008, 05:20:03 IP
re-install it :p
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: skip - maaliskuu 12, 2008, 05:21:37 IP
Reinstall the forum?
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: 青山 素子 - maaliskuu 12, 2008, 07:38:59 IP
If those truly are not there, you should see a report with where the tool found those links and you can investigate with that info.
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: skip - maaliskuu 13, 2008, 05:52:46 AP
Hi.

The linked from in the report shows each one of these URLs linked from another!!  I dont think they are physically on my site as they don't show up anywhere even with show hidden files turned on.

I guess I could go through each link and see if it shows a normal file that it's linked from. But I'm curious whether this is SMF related, hosting related or neither.

Happy to send a screen shot etc

Thanks
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: 青山 素子 - maaliskuu 13, 2008, 11:05:46 AP
You are welcome to send the report, I'm sure it's nice and small text. Screenshots are often rather hard to read and search.

I don't think it is SMF related at this time. It might be some quirky thing, but best to try and track the source.
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: skip - maaliskuu 13, 2008, 04:54:31 IP
Managed to track down the issue. My site had been compromised back in July 2006, I thought it was just the main html site pages as there's where the annoying text appeared. However I confirmed that the hacker had modified various .htaccess files within the forum, as well as added several php pages with smf names and put alot of content in the default theme directory. I realised it had come this far as I found an html script in the theme\default.

I did some searches in here to find out which files I should have, deleted the default theme and re upped a clean one. Added some code for some mods I have and all seems to be well now.

The last site crawl I did, didn't reveal any nasties this time around.

Not sure if there is a guide which shows where .htaccess files should be located and what they should contain by default. In order to match the files I basically created a fresh 1.1.4 install and cross referenced the files against what I had.

If there are any other pointers to secure myself would appreciate it. I still have the backup I took which contains the bad files, not sure if this would be of interest to ascertain anything.

Skip
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: metallica48423 - maaliskuu 13, 2008, 05:14:55 IP
SMF has no .htaccess files by default.
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: skip - maaliskuu 14, 2008, 06:35:19 AP
In fact he got direct access to the public_html directory from what I can see. But can you confirm that smf does need to have a .htaccess file in the root of the forum. The one with this entry:

<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>

And should there be any .htaccess files in any of the other forum directories.

Thanks
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: 青山 素子 - maaliskuu 14, 2008, 11:15:46 AP
You only need those entries if your host is using mod_security and has some optional rulesets enabled that cause issues with SMF.

Looking through, only one .htaccess exists in the package, in the attachments directory. It has the contents:


<Files *>
Order Deny,Allow
Deny from all
Allow from localhost
</Files>


This prevents direct access to this folder.
Otsikko: Re: Weird Warez Links When Using Site Crawler on Forum
Kirjoitti: skip - maaliskuu 14, 2008, 08:16:14 IP
Thanks for that clarification