CVE-2004-0595 Cross-site scripting in n/a

Medium 6.8 Published Updated

Attackers can bypass strip_tags filtering using null characters to inject malicious scripts, enabling cross-site scripting attacks against web applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2004-0595?

CVE-2004-0595 is a medium-severity cross-site scripting vulnerability in Php Php, published on 16 Jul 2004. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The strip_tags function in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, does not filter null (\0) characters within tag names when restricting input to allowed tags, which allows dangerous tags to be processed by web browsers such as Internet Explorer and Safari, which ignore null characters and facilitate the exploitation of cross-site scripting (XSS) vulnerabilities.

Which versions are affected by CVE-2004-0595?

It affects 8 products.

Products include Avaya Converged Communications Server, Avaya Integrated Management, Avaya S8300, Avaya S8500, Avaya S8700, Php Php and 2 more.

How do I fix CVE-2004-0595?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2004-0595 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Php Php vulnerabilities

Sources

Also known as GHSA-h8wj-59vf-r37g.

Is CVE-2004-0595 in your software?

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

Check your SBOMs for free