Links are added automatically in the index page of the website – adsttnmq1/sdioyslkjs2 attack

February 9, 2010 · Filed Under Site and Server Security · Comments 

Recently I faced problem with one of the websites in which there were many links added automatically in the index page. The FTP password was reset many times but it didn’t fix the problem. Even there was no logs for FTP access for this website.

After checking all the files/folders of this website, I found some suspicious files in one folder. There was a PHP script along with other files which was adding the spam links in the homepage. The script was simply called by attacker and they were passing some text file as a query string.

This is not an attack on the website but it seems they were adding the links just to populate their keywords in the search engine. I was not sure from where these malicious files were uploaded but after removing these files, I have not faced the problem again.

Just for the information, the link code was started using tag.

Prevent the user nobody from sending email from cPanel server

December 13, 2009 · Filed Under cPanel Hosting Tutorials · Comments 

If you are running PHP script as an Apache user on cPanel server, it is difficult to find the account if someone sends large amount of emails via PHP script. It is due to the fact that all emails will be sent as a nobody user. cPanel provides settings to block emails which are sent via nobody user. To enable this option, follow the below steps:

- Login to your WHM.

- Go to Server Configuration -> Tweak Settings.

- Select option “Prevent the user “nobody” from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)” and save it.

Please note if PHP processes are running as a nobody user and you enable above option, your clients will not be able to send emails outside their domains using PHP mail() function.

Kailash Aghera

Wordpress and mod_security2 issues

November 29, 2009 · Filed Under Site and Server Security · Comments 

ModSecurity is an open source web application firewall. This helps to prevent attacks on websites, SQL injection, command execution via browser etc. However, this may break some application installed in your website. With ModSecurity2, you can not bypass any rule by ID from your .htaccess file.

If your hosting provider has enabled mod_security with Apache, you may face some problem to post topic, upload images, insert images in the post etc. Since ModSecurity2 does not allow to bypass rules by ID via .htaccess, you will have to contact your hosting provider to bypass some rules for your website. ModSecurity provides facility to bypass rules based on the location. You will require to create global whitelist configuration file to bypass certain rules based on the location.

Recently, I faced problem to upload and insert images in the post. After reading some websites, I found some global rules which I bypassed some ModSecurity rules using global whitelist configuration file which fixed my problem. The rules that I bypassed are as follow (I have put space before LocationMatch and /LocationMatch. Remove that space in your configuration file):


< LocationMatch "/wp-admin/post.php">
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904
SecRuleRemoveById phpids-17
SecRuleRemoveById phpids-20
SecRuleRemoveById phpids-21
SecRuleRemoveById phpids-30
SecRuleRemoveById phpids-61
< /LocationMatch>

< LocationMatch "/wp-admin/admin-ajax.php">
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904
SecRuleRemoveById phpids-17
SecRuleRemoveById phpids-20
SecRuleRemoveById phpids-21
SecRuleRemoveById phpids-30
SecRuleRemoveById phpids-61
< /LocationMatch>

< LocationMatch "/wp-admin/page.php">
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904
SecRuleRemoveById phpids-17
SecRuleRemoveById phpids-20
SecRuleRemoveById phpids-21
SecRuleRemoveById phpids-30
SecRuleRemoveById phpids-61
< /LocationMatch>

< LocationMatch "/wp-admin/options.php">
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904
SecRuleRemoveById phpids-17
SecRuleRemoveById phpids-20
SecRuleRemoveById phpids-21
SecRuleRemoveById phpids-30
SecRuleRemoveById phpids-61
< /LocationMatch>

< LocationMatch "/wp-admin/theme-editor.php">
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904
SecRuleRemoveById phpids-17
SecRuleRemoveById phpids-20
SecRuleRemoveById phpids-21
SecRuleRemoveById phpids-30
SecRuleRemoveById phpids-61
< /LocationMatch>

< LocationMatch "/wp-includes/">
SecRuleRemoveById 960010 960012 950006
SecRuleRemoveById phpids-17
SecRuleRemoveById phpids-20
SecRuleRemoveById phpids-21
SecRuleRemoveById phpids-30
SecRuleRemoveById phpids-61
< /LocationMatch>

Hope this will help others who are facing the similar problem in their Wordpress blog with mod_security.

Kailash Aghera

How To Start/Restart/Stop iptables and auto start at boot

October 9, 2009 · Filed Under Linux Commands · Comments 

You can use the following commands to start/restart/stop iptables on your Linux server:

To start iptables:
service iptables start

To stop iptables:
service iptables stop

To restart iptables:
service iptables restart

You can determine whether iptables is running or not using following command:

service iptables status

You can also configured iptables to start automatically on boot. You will need to use chkconfig command to turn it on:

chkconfig iptables on

To use above commands, you will need the root access of your server.

Kailash

cPanel for Windows – cPanel Enkompass

September 10, 2009 · Filed Under Business NEWS, Web Hosting Control Panels · Comments 

cPanel, the leading Web hosting control panel software provider, has released their beta product Enkompass for Windows Server 2008. Enkompass installs on one IIS7 Server and reaches out to host web sites on multiple web servers, mail servers and database servers and we can add servers easily to expand our capacity.

cPanel is planning to provide almost all features which are currently available in cPanel/WHM. They have not committed however. Below are the expected features of Enkompass:

Administrator/Reseller Interface Features:

[1] Server configuration

- Admin Password
- Tweak Settings
- Manage Servers

[2] Support
- Support Center

[3] Reseller
- Reseller Center
- Show Reseller Accounts

[4] Languages
- Clone/Create a New Language
- Upload a Language File
- Download/Delete a Language File

[5] Backup
- Configure Backup
- Restore Backups

[6] Account information
- List Accounts
- List Parked Domains
- List Subdomains

[7] Account functions
- Create a New Account
- Modify an Account
- Password Modification
- Quota Modification
- Suspend Unsuspend Accounts
- Terminate an Account
- Restart Users Websites

[8] Multi – Account Functions
- Modify/Upgrade Multiple Accounts
- Terminate Multiple Accounts

[9] Plans
- Add Plans
- Edit/Delete Plans
- Copy plans

[10] DNS Functions

- Add DNS Zone
- Delete a Zone
- Edit MX entry
- Park a Domain

[11] MySQL Services
- Change a MySQL User Password
- Check/Repair a Database

[12] MS SQL Services
- Change a MS SQL User Password
- Repair a MS SQL Database

[13] IP Functions
- Add a New IP Address
- Show IP Address Usage
- Show/Delete current IPs
- Add Reserved IPs
- Edit/Delete Reserved IPs

[14] System Health
- Current CPU Usage
- Current Disk Usage
- Current Running Processes

[15] Themes
- Clone Theme

[16] cPanel
- Modify WHM News

[17] Server SSL / TLS
- Generate/Request a SSL Certificate
- Install a SSL Certificate
- Activate a SSL Certificate
- Manage FTP Bindings

End user features:

[1] Preferences
- Getting Started Wizard
- Change User Password
- Update Contact Info
- Change Language
- Branding Editor
- Change Style
- Shortcuts

[2] Mail
- Submit a Support Request
- Email Accounts
- Log into Webmail
- Mail Forwarders
- Auto Responders
- Default Address
- Mailing Lists
- MX Entry

[3] Files
- Restore System Backups
- User Backups
- File Manager
- Disk Space Usage
- FTP Accounts

[4] Logs
- Latest Visitors

[5] Security
- Password Protect Directories
- IP Deny Manager
- SSL/TLS Manager

[6] Domains
- Sub Domains
- Addoon Domains
- Parked Domains
- Redirect Pages

[7] Databases
- Create MySQL Database
- Manage MySQL User
- Create MS SQL Database
- Manage MS SQL Users

[8] Advanced
- MIME Types
- Error Pages
- Directory Browsing
- Network Tools
- WebHost Manager
- Restart Websites

For more details, you may visit this article.

Kailash Aghera

Next Page »

Home - Forums - Blog - Wordpress Knowledge Base - Discount Coupon Codes - Directory - Affiliate Software