Unauthenticated Zoho criteria injection exposes vehicle CRM records
Summary
The public TMTL backend passes the chassisNumber query parameter into a Zoho
CRM search criterion without neutralizing parentheses, boolean operators, or
comparison operators. The endpoint also lacks authentication and object-level
authorization.
An unauthenticated caller can close the intended exact-match criterion and add
an or condition. This changes a single-chassis lookup into a multi-record CRM
query and returns the raw Vehicle_Master objects.
Affected endpoint:
GET https://DSTservicebe.tmtl.net/auth/vehicle-master?chassisNumber=...
Suggested severity:
- Critical
Relevant weaknesses:
- CWE-943: Improper Neutralization of Special Elements in Data Query Logic
- CWE-862: Missing Authorization
- CWE-639: Authorization Bypass Through User-Controlled Key
- CWE-200: Exposure of Sensitive Information
Confirmed impact
Testing established all of the following without an Authorization header:
| Test | Result |
|---|---|
| Direct lookup using the chassis disclosed in the public source map | 1 record, 178 fields |
Injected or with the known chassis as a control |
Returned the known record byte-for-byte |
Injected starts_with using a 15-character prefix |
5 records, 28,669 bytes |
Injected starts_with using a 12-character model/year prefix |
119 records, 673,639 bytes |
Injected pagination with per_page=200 |
10 successful page requests, 10 distinct pages |
Each returned object is a raw Zoho CRM Vehicle_Master record with 178
top-level fields. Confirmed field groups include customer and owner identity,
dealer codes and contact points, chassis and registration numbers, production
and delivery data, warranty status and dates, loyalty information, and internal
Zoho record metadata. A single injected search can reach up to 2,000 records:
Zoho's documented Search API ceiling.
How the criteria injection works
The backend appears to construct a Zoho criterion equivalent to:
(Chassis_No:equals:VALUE)
Because the raw parameter value is interpolated into the criterion, a caller
can close the intended group and append an or clause. The backend's own
trailing ) then closes the injected group:
X)or(Chassis_No:starts_with:PREFIX
The following broader expression is supported by Zoho's documented Search API. It was confirmed against TMTL with explicit approval; Zoho returned ten distinct pages for the paginated form:
X)or(Chassis_No:not_equal:11)&page=1&per_page=200#
The &page and &per_page tokens are part of the parameter value, so the
backend forwards them into the Zoho search request. The # fragment delimiter
hides the backend's trailing ) from the assembled criterion. Zoho honors the
injected pagination parameters; the PoC stops at Zoho's documented 2,000-record
Search API ceiling.
Zoho reference: Search Records API
Proof of concept
The PoC first retrieves the public SSO configuration, then uses the vulnerable
backend lookup with bounded retries. Prefix mode injects a Zoho starts_with
criterion that can return multiple CRM records. Complete JSON responses are
printed by default.
cd /home/duckie/Documents/rs/customer_research/tafe/vid_number_leak_pii
# One page, summary only:
python3 poc.py --criteria-expression 'Chassis_No:not_equal:11' \
--page 1 --per-page 200 --summary-only --attempts 2 --retry-delay 3
# All available pages, summary only:
python3 poc.py --criteria-expression 'Chassis_No:not_equal:11' \
--all-pages --per-page 200 --summary-only --attempts 2 --retry-delay 3
The exact-chassis mode (a 17-character chassis argument) and prefix mode
(--criteria-prefix PREFIX) exercise the remaining query paths. The
--save-response DIRECTORY option saves every complete response with
directory mode 0700 and file mode 0600. The PoC identifies itself with the
User-Agent authorized-security-review/1.0.
The confirmed run made ten successful page requests and reached Zoho's documented Search API ceiling:
| Stage | Outcome |
|---|---|
Public configuration fetch (GET /secrets/sso) |
200 OK; response includes the Zoho refresh token |
| Exact chassis lookup | 200 OK; 1 record, 178 fields |
| Criteria injection control | Returned the known record byte-for-byte |
| Full paginated run | 10 pages of 200 records; stopped at the documented ceiling |
Some individual attempts failed with the backend message Failed to refresh
access token, a Zoho token-refresh failure; later retries returned the
records without any change to the request.
Security impact
The flaw permits an internet user to query the company's server-authorized Zoho
CRM connection without possessing an application account or Zoho credential.
The anonymous /secrets/sso response additionally exposes the Zoho refresh
token, scope, and client identifiers that the backend itself uses.
Root causes
- User input is interpolated into Zoho criteria without parsing or escaping.
- The lookup endpoint requires no authentication and performs no object-level
authorization, so every
Vehicle_Masterrecord is reachable. - The anonymous
/secrets/ssoresponse discloses the Zoho refresh token used by the server's own CRM connection.
Recommendations
- Require authentication before making any Zoho request.
- Construct Zoho criteria with a safe builder that separates field, operator, and value, and rejects parentheses, boolean operators, and pagination tokens in the value.
- Remove the Zoho refresh token from the anonymous
/secrets/ssoresponse and rotate the exposed token and client secrets. - Review API and Zoho audit logs for parentheses,
or,starts_with, and injected pagination parameters to detect prior abuse.
Acceptance criteria
- Unauthenticated requests to
/auth/vehicle-masterare rejected. - For every accepted input the backend sends a literal, escaped value to Zoho; injected parentheses, operators, and pagination tokens have no effect.
/secrets/ssono longer returns the Zoho refresh token.