cbcvebase.
CVE-2022-34305
published 2022-06-23

CVE-2022-34305: In Apache Tomcat 10.1.0-M1 to 10.1.0-M16, 10.0.0-M1 to 10.0.22, 9.0.30 to 9.0.64 and 8.5.50 to 8.5.81 the Form authentication example in the examples web…

PriorityP182medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
6.16%
92.7th percentile
In Apache Tomcat 10.1.0-M1 to 10.1.0-M16, 10.0.0-M1 to 10.0.22, 9.0.30 to 9.0.64 and 8.5.50 to 8.5.81 the Form authentication example in the examples web application displayed user provided data without filtering, exposing a XSS vulnerability.

Affected

10 ranges
VendorProductVersion rangeFixed in
apachetomcat
apachetomcat
apachetomcat10.0.0 – 10.0.22
apachetomcat8.5.50 – 8.5.81
apachetomcat9.0.30 – 9.0.64
apache_software_foundationapache_tomcat
apache_software_foundationapache_tomcat
apache_software_foundationapache_tomcat
apache_software_foundationapache_tomcat
debiantomcat9< tomcat9 9.0.65-1 (bookworm)tomcat9 9.0.65-1 (bookworm)

Detection & IOCsextracted from sources · hover to see the quote

url/examples/jsp/security/protected/index.jsp
url/examples/jsp/security/protected/j_security_check
url/examples/jsp/security/protected/index.jsp?dataName=%3Cscript%3Ealert(document.domain)%3C/script%3E&dataValue=demo
  • Detect XSS exploitation attempt via the dataName parameter in the Tomcat examples web application; look for unencoded or encoded script tags in the dataName query parameter of index.jsp requests.
  • Match HTTP responses containing both 'alert(document.domain)' in the body with status 200 and content-type text/html to confirm successful XSS reflection in the Tomcat examples app.
  • Detect default credential login attempts against the Tomcat examples protected JSP endpoint; monitor POST to j_security_check with credentials tomcat:tomcat followed by a response body containing 'You are logged in as remote user'.
  • Extract and track jsessionid values from the Form authentication example page action attribute to identify session tokens used in exploitation chains.
  • Use Shodan/FOFA queries to identify exposed Apache Tomcat instances; presence of the /examples/ web application on internet-facing servers indicates attack surface for CVE-2022-34305.
  • ·The XSS vulnerability is specifically in the Form authentication example within the examples web application; the vulnerability only exists if the examples web application is deployed and accessible — it is not present in the core Tomcat runtime.
  • ·The exploit flow requires two sequential HTTP steps: first a GET to retrieve the jsessionid from the form action, then a POST to authenticate, before the XSS payload can be triggered — single-request detections will miss the full attack chain.

CVSS provenance

nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
osv6.1MEDIUM
vulncheck6.1MEDIUM
vendor_apache6.1LOW
vendor_debian6.1LOW
vendor_oracle6.1MEDIUM
vendor_redhat6.1MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.