CVE-2002-0840 Cross-site scripting in n/a
Remote attackers can execute arbitrary scripts in victim browsers via the Host header when specific DNS and configuration settings are enabled.
- 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-2002-0840?
CVE-2002-0840 is a medium-severity cross-site scripting vulnerability in Apache Http Server, published on 1 Sep 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
Cross-site scripting (XSS) vulnerability in the default error page of Apache 2.0 before 2.0.43, and 1.3.x up to 1.3.26, when UseCanonicalName is "Off" and support for wildcard DNS is present, allows remote attackers to execute script as other web page visitors via the Host: header, a different vulnerability than CAN-2002-1157.
Which versions are affected by CVE-2002-0840?
It affects 5 products.
Products include Apache Http Server, Oracle Application Server, Oracle Database Server, Oracle Oracle8i, Oracle Oracle9i.
How do I fix CVE-2002-0840?
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-2002-0840 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2002-0840 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Apache Http Server
Sources
Also known as DEBIAN-CVE-2002-0840, GHSA-rg25-cp4q-r4c8.