"CounterChaos ist ein flexibler Onlinecounter fuer Ihre Homepage.
Er ist klein und kompakt in PHP geschrieben und benutzt eine
mySQL-Datenbank, um die Daten abzuspeichern."
Details:
SQL Injection Vulnerabilities in counterchaos.php
(arround line 35-45)
// Ohne www auch nicht gefunden => im Original speichern
mysql_query("INSERT INTO $tabellerefi SET
monat='$akt_monat', jahr='$akt_jahr',
refi='$referer', treffer='1'") or die(mysql_error());
}
...
Here an attacker can fake his http referer and so inject his own
sql queries (magic quotes must be off).
Solution:
Take a view on PHP's ysql_real_escape_string function.
If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.