Security Suggestion
 
Notifications
Clear all

Security Suggestion

21 Posts
9 Users
0 Reactions
12.2 K Views
(@tammy)
Posts: 2577
Member Moderator
Topic starter
 

In light of Princess Destiny's report and another, I am going to suggest that everyone CHMOD their config.php file and messages/ folder to 644.  From what I can see on the one site it looks like this guy is only able to get to these.


 
Posted : 22/08/2006 6:56 pm
(@tammy)
Posts: 2577
Member Moderator
Topic starter
 

Okay a little more investigating on the two sites I know have been hacked.  If you have your dbconfig.php file in a folder inside your eFiction folder and that folder is called "data" RENAME IT NOW!  In fact, if you can, move it.  At the very least rename it to a very wierd name, edit config.php to point to the renamed folder, then CHMOD it so it's not accessible.  Also put a blank index.php in that folder so hackers can't confirm that's where your config file is.


 
Posted : 22/08/2006 7:14 pm
(@carissa)
Posts: 791
Member Moderator
 

Also, if you have the phpinfo.php file on your server DELETE IT. It's not necessary for the function of your site, and it a way for hackers to get a good deal of useful information.


 
Posted : 22/08/2006 10:55 pm
(@Vikki1282)
Posts: 0
 

when i change my messages folder to 644 i get this....

Warning: file_get_contents(messages/copyright.txt): failed to open stream: Permission denied in /usr/home2/nsync908/public_html/archive/func.pagemenu.php on line 68

Warning: file_get_contents(messages/welcome.txt): failed to open stream: Permission denied in /usr/home2/nsync908/public_html/archive/index.php on line 38

😳 😳

edit: my site was hacked too... yesterday http://www.nsyncfiction.com/archive
he edited my welcome message and site title ... his name was "VIPSTA".


 
Posted : 23/08/2006 10:47 am
(@carissa)
Posts: 791
Member Moderator
 

Change the folder back to  755 and the files in it to  644. Also, it is a good idea to make sure every folder has a blank index file.


 
Posted : 23/08/2006 12:21 pm
(@Vikki1282)
Posts: 0
 

thanks Carissa! that fixed the errors i was getting πŸ™‚

could you let me know where i can fix the review notfication emails? that was hacked too i think, members have been emailing about that too.


 
Posted : 23/08/2006 12:47 pm
(@carissa)
Posts: 791
Member Moderator
 

Are you saying they changed the text? If so, you'll need to go into the en.php file in the languages folder and change it back to the original. If you don't have a backup on your computer, download a new copy and either replace the file or copy over what they changed.

Given what they've done on other sites, and how we suspect they've gotten in, I don't see how it was possible for them to get into that file though...


 
Posted : 23/08/2006 12:52 pm
(@tammy)
Posts: 2577
Member Moderator
Topic starter
 

Another suggestion.  From the logs I've been sent it looks like our hacker is finding sites using google and searching for "Powered by eFiction".  If your skin lists this in the footer, we won't be offended if you take it off.   


 
Posted : 25/08/2006 1:55 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Or you can always change it.

Driven by eFiction
Vitalized by eFiction
Energized... change it to fit your fandom.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 25/08/2006 2:33 pm
(@calash)
Posts: 180
Estimable Member
 

Some great suggestions.  I moved my dbconfig file to a level above my web directory  (For example if your web is in /var/www/ I moved it to /var/data/)  This way it can not be accessed via a browser call.


The World of Necrotania - Story Writing Community

 
Posted : 25/08/2006 4:54 pm
(@becca)
Posts: 553
Honorable Member
 

Some great suggestions.  I moved my dbconfig file to a level above my web directory  (For example if your web is in /var/www/ I moved it to /var/data/)  This way it can not be accessed via a browser call.

I've had mine there from the start  πŸ˜†

I suggest doing some robots.txt so that all the other folders that should not be indexed by search bots are not.


 
Posted : 25/08/2006 5:07 pm
(@lazuli)
Posts: 61
Trusted Member
 

Ah, one problem with robots.txt is that while most robots will respect it, others will use it as a road map to exactly the folders you don't want them in.


I'm sorry, but due to my schedule, I am not available for commissions.

Blog | DA Account

 
Posted : 25/08/2006 8:01 pm
(@becca)
Posts: 553
Honorable Member
 

Do a google sitemap if your sites are listed with google, in fact just do one or a robots txt.

Lazuli, I didn't know some bots do that, it must be the evil ones  πŸ‘Ώ


 
Posted : 26/08/2006 7:13 am
 JenR
(@jenr)
Posts: 9
Active Member
 

Some great suggestions.Β  I moved my dbconfig file to a level above my web directoryΒ  (For example if your web is in /var/www/ I moved it to /var/data/)Β  This way it can not be accessed via a browser call.

I've had mine there from the startΒ  πŸ˜†

Me too.Β  Seems like people ought to be doing that anyway.Β  It tells you to do it right in the README.txt file.Β 

4) Modify data/dbconfig.php with the appropriate MySQL database info, and put outside the web directory.

Yeah, I'm one of those nerds who always reads through the instructions before starting a project.Β  My brothers laugh at me for it.Β  Then when they can't get stuff to work, they call me for help.Β  hahaha

Anyway, if it's outside the web directory, it shouldn't need a blank index page in the same folder, should it?


"A trifling matter, and fussy of me, but we all have our little ways." - Eeyore, The House at Pooh Corner

 
Posted : 26/08/2006 10:30 am
(@becca)
Posts: 553
Honorable Member
 

No, it shouldn't, because they can't access those files anyway.


 
Posted : 26/08/2006 6:41 pm
Page 1 / 2
Share: