Basic SQL Injection Exploit with PHP

Here is an example of a basic login function which is taught in a lot of PHP tutorials. The purpose of this code is to prevent someone from viewing a web page unless they provide a valid username/password in a form. The username/password is stored in a MySQL database.

$username = $_POST["username"];
$password = $_POST["password"];$query = "SELECT * FROM users WHERE Username = '" . $username . "' AND Password = '" . $password . "'";
$result = mysql_query($query);
$validated = false;
while ($rs = mysql_fetch_array($result))
{ $validated = true; }

If a programmer does not do any input validation and uses the very basic username/password authentication example shown above, the following SQL code placed in the “password” field of a web application using code like this will usually give you access to the protected area:

foo' OR 'a'='a

The presence of this vulnerability in the code may allow a malicious
person to execute other SQL commands such as editing or deleting the
data in your database.

Shadow of hand over keybaord

Ambit Cable Modem Web Interface

Time Warner Cable provides Ambit cable modems to their cable internet subscribers. You can get to the web-based interface by loading up the URL http://192.168.100.1 on a computer connected to your home network. If that doesn’t work, you may need to view that URL from a computer with the IP address 192.168.100.20. The default username/password for the web interface is: root/root

Ambit Cable Modem

VMWare – FreeBSD 6 Guest Error “calcru: runtime went backwards from…”

When you install the VMware tools in a FreeBSD 6.0 guest OS in VMware Server Beta, you get the following error message in the console every few seconds:

calcru: runtime went backwards from 10542602 usec to 10542600 usec for pid 13924

FIX 1:

sysctl kern.timecounter.hardware=TSC

FIX 2: Add the following line to /boot/loader.conf

kern.hz=200

Apple XServe RAID Discontinued

It looks like Apple has decided to discontinue its XServe RAID product. When you go to the XServer storage page, there is no sign of the Apple branded XServe RAID product. All that is shown is a RAID hardware product manufactured by Promise Technology. The XServe RAID had a lot of faults so I guess Apple decided to stop trying to reinvent the wheel and let someone else with more experience handle the hardware.Promise RAID