CVE-2022-35497
Received Received - Intake

Session Cookie Theft via XSS in Trimble TM4WEB

Vulnerability report for CVE-2022-35497, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-04

Last updated on: 2026-09-04

Assigner: MITRE

Description

In Trimble TM4WEB 21.4.0.4 due to security misconfiguration with session identifiers, it is possible to recover valid session cookies via reflected cross-site scripting affecting the external document viewer endpoint.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-04
Last Modified
2026-09-04
Generated
2026-09-04
AI Q&A
2026-09-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
trimble tm4web 21.4.0.4
trimble tm4web to 22.2.0 (exc)
trimble tm4web to 21.4.0.4 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Trimble's TM4WEB software versions 22.2.0 and earlier due to a security misconfiguration in session identifiers. Attackers can recover valid session cookies via reflected cross-site scripting (XSS) targeting the external document viewer endpoint. The session cookies UID, rstring, and PHPSESSIONID lack the HttpOnly flag, making them accessible through JavaScript execution. They also should have the SECURE flag enabled to prevent transmission over unencrypted channels.

Detection Guidance

To detect this vulnerability, inspect the session cookies (UID, rstring, PHPSESSIONID) for missing HttpOnly and SECURE flags. Use browser developer tools to check cookie attributes or network requests. Test for reflected XSS in the external document viewer endpoint by injecting simple payloads like <script>alert(1)</script>.

Commands: Use curl to inspect cookies: curl -I http://target-url. Check for XSS via: curl 'http://target-url/viewer?param=<script>alert(1)</script>'. Verify cookie flags with browser dev tools or tools like OWASP ZAP.

Impact Analysis

Authenticated users can have their sessions and accounts hijacked by attackers exploiting this unauthenticated XSS vulnerability. An attacker can inject malicious JavaScript via a separate reflected XSS vulnerability (CVE-2022-35499) to capture session cookies and redirect them to an attacker-controlled server.

Mitigation Strategies

Immediately enable HttpOnly and SECURE flags for all session cookies (UID, rstring, PHPSESSIONID). Patch or update TM4WEB to the latest version. Implement input validation and output encoding to prevent XSS. Use Content Security Policy (CSP) headers to mitigate XSS risks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2022-35497. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart