CVE-2010-4312 Apache Tomcat has cookies without HTTPOnly flag in Set-Cookie header
Attackers can hijack user sessions via script access to cookies because the default configuration lacks the HTTPOnly flag.
- 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-2010-4312?
CVE-2010-4312 is a medium-severity vulnerability in Apache Tomcat, published on 26 Nov 2010. 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 default configuration of Apache Tomcat 6.x does not include the HTTPOnly flag in a Set-Cookie header, which makes it easier for remote attackers to hijack a session via script access to a cookie.
Weakness: CWE-16
Which versions are affected by CVE-2010-4312?
2 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tomcat:tomcat Maven | From 6.0.0 | 6.0.35 |
org.apache.tomcat:tomcat Maven | From 6.0.0 | 6.0.35 |
Products include Apache Tomcat.
How do I fix CVE-2010-4312?
Upgrade org.apache.tomcat:tomcat to 6.0.35 or later.
Is CVE-2010-4312 being exploited?
There is no known exploitation of CVE-2010-4312 in the wild and no public exploit code.
Other vulnerabilities in Apache Tomcat
Sources
Also known as GHSA-pvjh-7h8q-q56r.