CVE-2007-4724: Apache Tomcat Example Application CSRF and XSS Vulnerabilities

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

01/05/2022
No i
Moderate
Not published

CVE-2007-4724: Apache Tomcat Example Application CSRF and XSS Vulnerabilities. Affects org.apache.tomcat:tomcat versions < 4.1.31. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache Tomcat is an open-source web server and servlet container that is widely used for hosting Java-based web applications. It provides a Java Servlet and JavaServer Pages (JSP) environment for running web applications. The calendar examples application in Apache Tomcat 4.1.31 is vulnerable to cross-site request forgery (CSRF) attacks. This vulnerability allows remote attackers to add events as arbitrary users by exploiting the time and description parameters in the cal2.jsp file.

Vulnerability Detail

The CSRF vulnerability in cal2.jsp allows an attacker to trick authenticated users into performing unwanted actions on behalf of the attacker. By crafting a malicious request and tricking a user into visiting a specially crafted webpage, the attacker can add events to the calendar examples application as if they were the authenticated user. This can lead to unauthorized access, data manipulation, and potential security breaches. Additionally, the application is also susceptible to cross-site scripting (XSS) attacks, which can allow an attacker to inject malicious scripts into the application and potentially steal sensitive information or perform other malicious actions.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

A possible workaround for the CSRF vulnerability is to disable the calendar examples application if it is not needed. This can be done by removing or disabling the corresponding web application file. However, this workaround may not be suitable if the application is required for functionality. For the XSS vulnerability, input validation and output encoding should be implemented to sanitize user input and prevent script injection.

Conclusion

The Apache Tomcat calendar examples application in version 4.1.31 is vulnerable to CSRF and XSS attacks. It is important to apply the recommended fixes and security measures to protect against these vulnerabilities. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.tomcat:tomcat →

Share this vulnerability

FAQ

Apache Tomcat is an open-source web server and servlet container that is widely used for hosting Java-based web applications.

Cross-site request forgery (CSRF) is a type of attack that tricks authenticated users into performing unwanted actions on behalf of the attacker.

Cross-site scripting (XSS) is a type of vulnerability that allows attackers to inject malicious scripts into web applications, potentially leading to data theft or other malicious actions.

To fix the CSRF vulnerability, it is recommended to implement proper CSRF protection mechanisms such as using anti-CSRF tokens, checking the Referer header, or implementing the SameSite attribute for cookies.

To prevent XSS attacks, input validation and output encoding should be implemented to sanitize user input and prevent script injection.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.tomcat:tomcat.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback