CVE-2006-7172 SQL injection in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary code via SQL injection in PHP-Stats by manipulating HTTP headers or IP parameters.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2006-7172?

CVE-2006-7172 is a high-severity SQL injection vulnerability in n/a, published on 20 Mar 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Multiple SQL injection vulnerabilities in php-stats.recphp.php in PHP-Stats 0.1.9.1b and earlier allow remote attackers to execute arbitrary code via a leading dotted-quad IP address string in the (1) PC-REMOTE-ADDR HTTP header, which is inserted into $_SERVER['HTTP_PC_REMOTE_ADDR'], or (2) ip parameter.

Which versions are affected by CVE-2006-7172?

It affects 1 product.

Products include Php-Stats Php-Stats.

How do I fix CVE-2006-7172?

No fix has been published for CVE-2006-7172 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2006-7172 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-7172 exists.

Public exploit code: 2 Exploit-DB entries.

Sources

Also known as GHSA-8h66-22wv-r7r8.

Is CVE-2006-7172 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free