• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

WordPress security ...

Today I’ve found several open WordPress directories, which were accessible via the browser and open to cross site scripting attacks. All of the bespoken core WP directory files were NOT protected via a .htaccess file, I’ve tested ten sites with eight (!) open WP directories.

View More Info

Today I’ve found several open WordPress directories, which were accessible via the browser and open to cross site scripting attacks.
All of the bespoken core WP directory files were NOT protected via a .htaccess file, I’ve tested ten sites with eight (!) open WP directories.

So before accusing your CMS system, rewrite your .htaccess file, make it secure, chmod it, then test it (important point).
The tested sites were all designer sites with portfolio, blog and so on, strange, as it implies that design is a major point, but security is apparently not.
Additional tips:

Tip 1 :

Remove Wordpress ‘version string’ in your theme files
Go to Wordpress dashboard, click on presentation -> edit themes -> header.php
Find and remove this. bloginfo(’version’) Save the file.

Tip 2 :

Place empty ‘index.html’ file in the plugins folder
Open Notepad. Click ’save as’ and save the file as index.html (be sure to change the filetype from text files to all files)
Upload the file to the WordPress plugins folder at your web server.

Tip 3:


Upload a copy of .htaccess file in the wp-admin folder
Using FTP program or your webserver file manager, go to the root folder of your server and download .htaccess file (set ’show hidden files’ first if you’re using FTP program such as FileZilla)
Go to your wp-admin folder
Upload the .htaccess file you’ve downloaded just now.

Tip 4:

You can also disallow users pretending to be search engine/ search engines from crawling the core Wordpress folders by putting these in your robot.txt file (upload the file to root of your Wordpress installation folder when you’ve finished).

# This rule means it applies to all user-agents
User-agent: *

# Disallow all directories and files within
Disallow: /wp-admin/
Disallow: /wp-includes/

Tip 5:

Password protect the wp-admin directory:
Create a file within your wp-admin directory named “.htaccess” if there isn’t already one.
Create a file ABOVE YOUR PUBLIC_HTML directory named “.htpasswd”. Make sure you put this outside the web accessible directory or someone could read your password! Usually this is where you go when you first login to your ftp programm.
Append the following contents to the “.htpasswd” file where xxxx = your username and yyyy = your password:
xxxx:yyyy

Tip 6:

Append the following to your “.htaccess” file inside of your wp-admin directory. Make sure you use the absolute path to the “.htaccess” file. If you don’t know, ask your ISP. xxxx = the username that you entered in your “.htpasswd” directory:
AuthUserFile /home/username/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

require user xxxx

Tip 7:

Restrict access to the wp-content and wp-includes directories:
Create a file within your wp-content and wp-includes directory named “.htaccess” if there isn’t already one.
Append the following to the “.htaccess” file. NOTE: you may have trouble with some plugins with this method:
Order Allow,Deny
Deny from all
<Files ~ “.(css|jpe?g|png|gif|js)$”>
Allow from all
</Files>

Important Note: Please ensure that your WordPress files and database are backed up before attempting any of these changes.

source: 3oneseven

 View Full Story.
Posted at 03:43:31 pm | Permalink | Posted in WordPress Security  

Related Stuff

New WordPress feature, Possibly Related Posts

If you have a blog on WordPress.com, you may have noticed a new feature called Possibly Related that links posts from other blogs in the ...

What Do You Need to Set up a Wordpress Blog

I've found myself answering this question a lot lately, so I figure I should just turn it into a blog post so I can point people to ...

How To Make a WordPress Privacy Policy

Ever since Adsense updated their terms and conditions, requiring publishers to display a privacy policy on their website(s), webmasters and ...

WordPress Single Post Templates

Austin recommends using a filter in your functions.php file as an alternative to the method below. IMO, his suggestion is much simpler and ...

Wordpress Plugin - SuperFast Digg This

SuperFast Digg This is really a super fast social bookmarking plugin, it loads faster than others, scalable and with better performance. It ...

1 Comment |Add your comment.

Chad Mueller said:

Thanks alot for this, I was having users comment to me that there was a trojan virus on my blog... I didnt see it because I work on a amazing mac, so.. I believe I fixed the problem, but this helps out for sure.

Posted at March 10, 2008 01:11:14 pm

Your Comment ...

  Name (required)

  Email (required, hidden)

  Website


About Webloglines

Webloglines is a project offers a comprehensive collection of blogging services, articles, themes and plugins from around the world. Whether you're looking to promote your own blog or find blogs on various topics, this site is for you.


Recent Stuff

New WordPress feature, Possibly Related Posts

What Do You Need to Set up a Wordpress Blog

How To Make a WordPress Privacy Policy

WordPress Single Post Templates

Wordpress Plugin - SuperFast Digg This

Fast-Static-Feed WordPress Plugin


Our Partners

Ajax Projects

Web 2.0 Sites

Webloglines

Human Development Handbook

Software Development Company

Ajaxlines


Search


Topics

  • Blogging Tips (40)
  • Blogs Slides (25)
  • Blogs Websites (22)
  • How to Blog (22)
  • Search Engines (1)
  • WordPress Plugins (14)
  • WordPress Security (4)
  • Wordpress Themes (11)
  • Wordpress Tips (9)

© 2006 www.webloglines.com. All Rights Reserved. Powered by IRange