This is a expansion on marks article today on weblog tools collection:
Check this link See all the peoples wordpress directory’s that are open for public browsing? eek!
Why is this dangerous? Well when a exploit is found (its never if its always when) people can EASILY use Google to find who is running what plugin and exploit your server. Most of the plugins have not been gone over very well for security and I expect there are many out there that allow remote shell and various db exploits but just have not been uncovered yet.
Now who is at fault for this?
I blame #1 – you. You should have disabled public browsing of folders.
I blame #2 – WordPress. C’mon Matt just put a blank index.php file in the folder =P
I was first alerted about this by Bill Hartzer last month and I just simply made a blank index.php file in my WordPress directory.
BUT as you can see google has a really through index of my wordpress directorys (yes i failed rule #1)
So now
Here is how you disable it in .htaccess –
Options All -Indexes
Now this is not a major security flaw of wordpress or a huge security risk im not trying to make it sound like that… I just think a little work on your part(s) could potentially avoid a security issue.
What’s a person (hacker) going to do if they saw the index of someone’s directory? I mean, you really can’t hack the files themselves… just curious.
Nick, there’s technically not a security issue when you leave your wordpress plugins open for everyone to see. I haven’t seen any cases yet of it being a security issue. But, a lot of people are really proud of which plugins they have installed, and some have a few custom plugins that are being used. Also, there’s an issue with revealing the plugins you’re using to help stop spam comments.
Potentially, I could see someone figuring out which plugins you’re using to stop comment spam, for example, and using a script that gets around whatever you’re using to stop it.
I think what Shoe was saying if there is a plugin that turns out to have a security issue, you could use google to find sites that were using that plugin.
Thanks for bringing this up as I see what you are saying. They could come in through one of your plugins that has flaws and is new and hasnt had its bugs fixed. There are simple ways to prevent this but many people do not do them for whatever reason.
Which directory exactly are you talking about? The plugins directory? or all of them?
Are you running sitemaps for them to totally index your website or are you linking directly to your wp-content folder?
[…] at Shoemoney we read about an exploit in the plugins directory for WordPress. Why is this dangerous? Well when […]
How To Buy Websites, it’s the /wp-content/plugins folder.
Erik, it’s not just the security issue that you mention…I actually don’t want anyone to see which plugins I’m running because some of them have to do with getting more traffic to the site, including RSS-related plugins and links plugins, etc. etc.
I wish it was an industry standard for web hosts to make all new accounts come with forbidden public indexes. People can just see way too much when people forget or don’t even know about this “feature”.
TheHostHunter, if you’re having issues like this then it sounds like you need to get another web host. There are web hosts out there that will take care of you, you just need to find one.
In this case, though, WordPress could actually put default index files in certain directories…just for this reason.
Good tip.
Thanks for the reminder to index all of my directories.
Turns out MediaTemple is already on top of this. I didn’t realize but they deny access to any directory without an index page. Neat 🙂 I don’t even have to edit my .htaccess.
great point but some cheap hosts have already taken care of this.
[…] found an important entry at ShoeMoney blog about ‘ Watch Your WordPress Plugins Directory‘. Do you know that your WordPress plugins directory is open to public […]
This can be a security risk. Its not a “OMG PATCH UR SERVERS NOW!” risk. But it helps a potential hacker.
How to try and hack a wordpress site in 3 simple steps:
Step 1: Visit the plugins folder and view the plugins they are running.
Step 2: Google for any exploits or try and compare old versions and new versions of security patches and see what they patched up for those particular plugins.
Step 3: Attempt hack.
Yeah I have accounts where this was taken care of and others where it is not. Not a big deal for me as it’s something that I always check, but definitely one of those things I wish hosts would be smart enough and enable by default to make everyone’s life easier.
Good thought, thanks Shoe.
yea those are some very valid points. I have heard about the possible security issues, but never knew exactly what they were.
all the more reason you should have disabled public browsing of folders in your Apache setup.
true but it’s good to just add a blank index file in there too.
It tells you excactly which plugins are in use. btw: I use this index file and redirect to my hp; it resides within every folder I want to restrict access to:
http://blog.datenschmutz.net/wp-admin/
It’s enough to know which files are there, it’s best to put a redirecting (to homepage) index file into every directory you wann restrict access to.
Actually, it’s all of them if you configure access via index-files.
[…] Shoemoney has posted today about a potential security bug in WordPress. […]
I hope I have everywhere blank index pages…
rip off all kinds of content from mp3 to ringtones to resale ebooks. it never ceases to amaze me what you can find when searching the open indexes. It’s fun.
I’m not a php person but could you download the plugins from these open directories and install them on your own wordpress blog?
eTown, you would not necessarily be able to download the plugins themselves. If the server is configured correctly, it should try to execute the plugin as a stand alone PHP file and would in most cases return an error. The biggest concern is that if a plugin is exploitable, Google gives those desiring to take advantage of it a list of sites that have that plugin in use. Think of it like putting yourself on a “hack me please” list.
See, I didn’t know that. This is very interesting, thanks for the additional info!
I dont let anybody see into any folders on my servers. There is just no reason to allow it.
[…] read a nice tip at ShoeMoney’s blog to improve the security of your WordPress […]
thanks AJ for the insight.
thanks shoemoney… i never thought to even look into that…
[…] first came across this information while visiting Shoemoney, and just so happened, like that, i learned something new. It is said that Google indexes WordPress […]
[…] over at ShoeMoneyâ„¢ posted on “eye opener” for me regarding public browsing of the WordPress plugins directory. As you can see via Google, […]
No, you cannot download the plugins themselves from that person’s install of WordPress. You can download or click on the file but it will try to execute the php file instead. You can get ahold of anything else like readme files and other files that might be in the folders, though.
I personally am not as concerned over the security risk as the fact that I personally want to stop people from knowing what plugins I have running. Some of them are helping me get more links and others are custom plugins. I just don’t want people knowing which plugins I’m running…you may not care.
Thanks shoemoney, now I have my site protected against directory browsing.
yea i just had installed wordpress it is sweet as hell
I enjoy little post of code like this.
[…] Watch Your WordPress Plugins Directory […]
Very good advice — Very good.
[…] Shoemoney has posted about a potential security bug in WordPress. Its an eye opener for me regarding public browsing of the WordPress plugins directory. If you have a standard WordPress install try to go to http://YOURDOMAINNAME.com/wp-content/plugins you will see a directory list of the files and not your actual web page. This can be a potential exploits if theres a security bug on your plugins installed. You can disable it in .htaccess File by adding this line of code […]
Thank you very much for bringing this up. As you mention this isn’t the biggest security risk, but you might as well close the small and easy ones.
[…] If you’re using WordPress for your blog, there is one security issue mentioned in WeblogToolsCollection & ShoeMoney. […]
It is always a good idea to secure your WordPress Blog Folder, just like it should be done for images folder. Many people don’t put an ‘Access Denied’ on their images and files folders which is not a good habit.
Yikes, I just found this post and am gonna be getting all over htaccess asap. Security is something that needs to be better improved upon, I agree. Matt’s reactions to things lately have been, well, odd.
Thanks for the heads-up on this shoe, much appreciated
[…] If you are running WordPress go to http://www.yourdomain.com/wp-content/plugins. If you see a directory listing of all your installed plugins you may want to follow the steps described by Shoemoney here. […]
[…] If you are running WordPress go to http://www.yourdomain.com/wp-content/plugins. If you see a directory listing of all your installed plugins you may want to follow the steps described by Shoemoney here. […]
[…] Hat tip to Reuben Yau and Shoe. […]
[…] Hat tip to Reuben Yau and Shoe. […]
[…] Hat tip to Reuben Yau and Shoe. […]
[…] Hat tip to Reuben Yau and Shoe. […]
[…] Hat tip to Reuben Yau and Shoe. […]
[…] BoÅŸ bir wp-content/plugins/index.html dosyası hazırlayın […]
[…] BoÅŸ bir wp-content/plugins/index.html dosyası hazırlayın […]
[…] BoÅŸ bir wp-content/plugins/index.html dosyası hazırlayın […]
I need help. I am trying to install some plugins for my wp site. everything tells me to upload to my wp-contents/plugins folder. I have found this but how do i upload to it. I am not a computer literate as i would like to be so please consider me as a dummy.
Emil
[…] 有一些å¦å¤–çš„é™„åŠ æç¤ºæ›´æ–°ï¼š Reuben Yau and Shoe. […]
AWESOME share, thanks!
[…] Adding the lines above on your .htaccess file will disable directory browsing in all of your directories and sub-directories. They will see a 404 page instead. Got that line of code from the man with a big Adsense check. […]
[…] BoÅŸ bir wp-content/plugins/index.html dosyası hazırlayın […]
Some very interesting and insightful thoughts. I like this.
[…] BoÅŸ bir wp-content/plugins/index.html dosyası hazırlayın […]
[…] Hat tip to Reuben Yau and Shoe. […]
[…] 有一些å¦å¤–çš„é™„åŠ æç¤ºæ›´æ–°ï¼š Reuben Yau and Shoe. […]
[…] deleted it they {folks at WordPress} probably added this after Jeremy Schoemaker‘s post Watch Your WordPress Plugins Directory ealrier versions of wordpress didn’t have this empty index.php or index.html file, they added […]