Welcome to vBulletin Guru!


vBulletin is arguably the best community forum software available today. vBulletin Guru is here to offer both free advice on how to successfully build, customize and manage your forum based website as well as offer advice and resources for more advanced topics of forum management such as SEO (Search Engine Optimization), community growth and monetization.

Author Archive

Feb
03

Securing your vBulletin Forums (Part 1)

Posted by: | Comments Comments Off
As time passes on, websites and the software behind them get more complex and intertwined. It really wasn’t long ago that a websites consisted of a series of static webpages with minimal user interaction. Today’s websites however are all about user interaction and user submitted content. When you allows users to post content on your website, it starts to get complicated. I am going to write a series of articles to help you secure your portion of the World Wide Web and limit malicious intent on your website.

Please note the following primarily covers Linux, Unix and derivative systems. Windows handles file permissions differently.


File Permissions

Out of the box vBulletin doesn’t really care about file permissions that much. The software is configured to store everything in your database and works with the web server’s default permissions. However you can tighten this up a little to protect yourself and the users that visit your website.


Click image for larger version. 

Name:	typicalstructure.png 
Views:	3611 
Size:	14.1 KB 
ID:	57792

The image above shows what a typical website directory looks like when you first connect. If you look at the columns on the right, you will see the permissions and ownership of the files.

The basics
When we talk about File Permissions, you’ll hear a lot of numbers. It is sometimes confusing to understand what these numbers mean. You might see something like chmod 777 or chmod 755. These can be confusing.
These numbers refer to three permissions: read, write and execute.

Permission Value
Execute 1
Write 2
Read 4



When you add up the values, you get the number that you should assign. So if the value is 7, then all three permissions are granted.
The numbers are given to three different groups of users as well. Those groups are: Owner, Group, Public/World. They are represented in that order. Naturally the owner should have the most permissions and the Public should have the fewest. These are shown in respective order from left to right.

Here is what a basic vBulletin installation might look like:
Click image for larger version. 

Name:	basicpermissions.png 
Views:	3587 
Size:	12.8 KB 
ID:	57793



777 – grants Read, Write and Execute permission to Owner, Group and Public.
755 – grants Read, Write Execute to the Owner plus Read and Execute permissions to the Group and Public.
644 – grants Read and Write to the Owner plus Read permissions to the Group and Public.



So what should you do?
Of course you want the most secure permissions possible but still want to allow your site to work. In this case, you want to use the 644 permissions on your PHP files if you can. This means you can write to your files, via FTP, SCP or SFTP, but others cannot. It means you can read your files. The Group and World can read the files, which allows them to work properly on most systems. Your directories will probably need a minimum of 755 to work properly. More about this later.
Unfortunately, some hosting providers do not allow this permission to be used due to their setup. They may require 755 which adds in the Execute permission in order for PHP scripts to work properly. If you change your PHP scripts to the 644 permission and your site breaks, you will need to change them back to the 755 permission.

File Directories
File Directories are special in that they need to be “Executed” to be opened, get directory listings and find files in them. This is why they need at least the 755 Permission. If you are storing attachments, custom avatars or other uploads in the file system, the directories that you are using to store these items need to have full permissions 777. The reason for this is that the web server can run under a user that is different from the user that you manage files with. A lot of times the web server us handled by a background user named ‘nobody’. Though this isn’t always the case. Unfortunately, we can’t go over every type of server configuration here.


How to Change Permissions
chmod is a command-line utility. Unfortunately unless you’re on a Dedicated or Virtual Private Server (VPS), you probably do not have access to the command line to use it. Luckily for us, the FTP protocol allows us to change file permissions as well. In most FTP clients, you can pull up a context menu that gives you various actions to take on an item. You can access the context menu by right-clicking your mouse or click-hovering your mouse over the item. The item you’re looking for is permissions. Selecting this will allow you to change the permission for the selected item(s).

Here is an example of what the context menu might look like:

Click image for larger version. 

Name:	contextmenu.png 
Views:	3383 
Size:	17.8 KB 
ID:	57794





If you do have shell or command line access, then you can use a command like:
chmod 644 *.php
chmod 644 *.js

Click image for larger version. 

Name:	chmod644.png 
Views:	3583 
Size:	11.3 KB 
ID:	57795



The desired permissions are:
Files – 644 then 755 if required by your hosting provider.
Directories – 755
User Upload Directories – 777

Next Time
Part II will cover securing your directories to make access more difficult for trouble makers. Future installments will cover secure attachment storage in the file system and how to make sure your plugins are safe.
Comments Comments Off
Jan
23

vbSEO Security Patch Release

Posted by: | Comments Comments Off
In the interest of keeping our customers informed, vBSEO (http://www.vbseo.com/) has released a security patch to fix a potential exploit in their software. If you are using vBSEO, you should upgrade...
Comments Comments Off
Jan
16

Ticket and Email Support Issues

Posted by: | Comments Comments Off
Due to a problem with the email system that has now been resolved, there is a backup of support tickets. Some ticket replies are just now being received. Some tickets have been duplicated and opened...
Comments Comments Off
Jan
10

New Support Team Member for Arabic Support

Posted by: | Comments Comments Off
We are pleased to announce the addition of Yasser (forum username: S P E E D (https://www.vbulletin.com/forum/member.php/229437-S-P-E-E-D)) to the vBulletin Support Team. Yasser is going to provide...
Comments Comments Off
Nov
14

2011/2012 Telephone Sales and Support Holiday Schedule

Posted by: | Comments Comments Off
As we approach the holidays, I wanted to let you know about our Telephone Sales and Support schedule. These services will be unavailable on the following days during this time:

November 24th and 25th 2011 - Thanksgiving Holiday.
December 26th, 2011 - Christmas Holiday
January 2nd, 2012 - New Year's Holiday

I apologize for any inconvenience this may cause. Our ticket support options and the forums will be covered during these holiday weekends.
Comments Comments Off
Oct
13

Please welcome Joe and Troy to the vBulletin Support Team

Posted by: | Comments Comments Off
I would like to introduce two new members of the vBulletin Support Team. So please give a warm welcome to Joe (BirdOPrey5) and Troy. Both are eager to help you out with your issues and troubles with the forums and will be around the forums.

Joe has been a member of the vBulletin beta testing team for a while and is a moderator at www.vbulletin.org.

Troy is a long time vBulletin customer and used to run corvetteforum.com as well as several other automotive related sites.

It is great to have them as additions to the team and I look forward to working with them.
Comments Comments Off
Oct
13

Please welcome Joe and Troy to the vBulletin Support Team

Posted by: | Comments Comments Off
I would like to introduce two new members of the vBulletin Support Team. So please give a warm welcome to Joe (BirdOPrey5) and Troy. Both are eager to help you out with your issues and troubles with the forums and will be around the forums.

Joe has been a member of the vBulletin beta testing team for a while and is a moderator at www.vbulletin.org.

Troy is a long time vBulletin customer and used to run corvetteforum.com as well as several other automotive related sites.

It is great to have them as additions to the team and I look forward to working with them.
Comments Comments Off
Oct
03

Welcome Riasat to the vBulletin Support Team

Posted by: | Comments Comments Off
Riasat, known as CvP here on the forums, will be helping us out with Forum Support Issues as they arise. He has shown a high level of knowledge on the product and has been participating in our Alpha/Beta testing team for a while. He is also fairly proficient in helping issues make their way through JIRA. Please join me in welcoming him to our vBulletin Support Team.
Comments Comments Off
Get Adobe Flash playerPlugin by wpburn.com wordpress themes