CVE-2026-47810 — VMware SALT (3006.31) — CWE-942
The CherryPy REST API reflected the request Origin header in Access-Control-Allow-Origin while also allowing credentials, and the CORS preflight handler set a session token on unauthenticated OPTIONS requests. Any website can make credentialed cross-origin requests using an authenticated administrator's browser session, and the preflight handler can bypass the authentication check.
The CherryPy REST API reflected the request Origin header in Access-Control-Allow-Origin while also allowing credentials, and the CORS preflight handler set a session token on unauthenticated OPTIONS requests. Any website can make credentialed cross-origin requests using an authenticated administrator's browser session, and the preflight handler can bypass the authentication check.
🎯 What is this vulnerability?
Technical flaw
The CherryPy‑based REST API in VMware SALT 3006.31 is mis‑configured for Cross‑Origin Resource Sharing (CORS).
1. Origin echo – The API responds to any request by reflecting the value of the Origin request header into the Access‑Control‑Allow‑Origin response header.
2. Credentials allowed – The response also includes Access‑Control‑Allow‑Credentials: true, telling browsers that the server permits the inclusion of cookies and HTTP authentication in cross‑origin requests.
3. Session token on OPTIONS – The CORS pre‑flight handler (the OPTIONS method) creates and returns a new session token even when the request is unauthenticated.
Because browsers automatically attach the victim’s cookies to cross‑origin requests when Access‑Control‑Allow‑Credentials is set, an attacker can:
- Forge a pre‑flight request from any domain, causing the server to issue a session cookie that is valid for an authenticated administrator session.
- Send subsequent API calls (e.g.,
GET /api/v1/users,POST /api/v1/roles) with that cookie, thereby bypassing authentication and gaining full administrative privileges. - Full administrative takeover – An attacker can impersonate an administrator without needing credentials.
- Data exfiltration – Sensitive data can be extracted via the API.
- Privilege escalation – Even if the attacker initially has only a low‑privilege account, the CORS flaw can be used to elevate privileges.
- Persistence – New admin accounts or backdoors can be installed, enabling long‑term compromise.
- Regulatory risk – Loss of confidentiality and integrity may trigger data‑breach notifications under GDPR, HIPAA, etc.
- VMware SALT 3006.31 (and any earlier releases that use the same CherryPy CORS implementation).
- Upgrade to the latest VMware SALT release that removes the CORS misconfiguration. * VMware recommends installing the most recent patch set (e.g., 3006.32 or later). * Verify the patch by checking the release notes for “CORS” or “Access‑Control‑Allow‑Origin” changes.
This is a classic CORS misconfiguration that effectively turns the API into a CSRF vector, allowing any website to perform privileged actions on behalf of an authenticated user.
CWE mapping – The CVE record incorrectly references CWE‑942 (XML External Entity). The actual weakness is a CORS misconfiguration (often mapped to CWE‑285 “Improper Authorization” or CWE‑284 “Improper Access Control”), but the vendor’s CVE entry lists CWE‑942.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow. The exact endpoint URI is not provided in the CVE description; the example uses /api/v1/users as a typical administrative endpoint.
| Step | Action | Technical Detail |
|---|---|---|
| 1. Discovery & Reconnaissance | Identify the target and vulnerable API version | • Scan the target host for CherryPy services (e.g., nmap -p 80,443 --script http-enum). <br>• Probe common REST paths (/api, /rest, /v1) and look for a 200 response to OPTIONS. <br>• Verify that the server returns Access‑Control‑Allow‑Origin set to the request’s Origin and Access‑Control‑Allow‑Credentials: true. |
| 2. Exploitation – Pre‑flight | Obtain a privileged session cookie | ``bash\ncurl -i -X OPTIONS \\\n -H 'Origin: https://evil.com' \\\n -H 'Access-Control-Request-Method: GET' \\\n -H 'Access-Control-Request-Headers: content-type' \\\n http://target.example.com/api/v1/users\n` <br>Response will include: <br>`\nHTTP/1.1 200 OK\nAccess-Control-Allow-Origin: https://evil.com\nAccess-Control-Allow-Credentials: true\nSet-Cookie: session_id=ABC123; Path=/; HttpOnly\n` <br> The Set-Cookie header establishes a session that the attacker can reuse. |
| 3. Exploitation – Privileged API call | Perform an administrative action | `bash\ncurl -i -X GET \\\n -H 'Cookie: session_id=ABC123' \\\n http://target.example.com/api/v1/users\n` <br>Because the cookie is valid for an administrator, the API will return the full list of users, or the attacker can POST to create a new admin account. |
| 4. Post‑exploitation – Persistence / Data exfiltration | Use the API to read/write data | • Enumerate resources (GET /api/v1/records). <br>• Create a new admin user (POST /api/v1/users with role=admin`). <br>• Upload a webshell or backdoor via an endpoint that accepts file uploads. <br>• Exfiltrate data by downloading files or dumping database tables through the API. |
Illustrative example – The exact URI (/api/v1/users) is not specified in the CVE; it is used here to demonstrate the class of attack.🌍 Real World Impact
| Impact | CVSS Vector | Explanation |
|---|---|---|
| Confidentiality | C:H | The attacker can read any data exposed by the API (user lists, configuration, logs). |
| Integrity | I:H | The attacker can modify or delete data, create new privileged accounts, or alter system configuration. |
| Availability | A:H | Repeated privileged requests can exhaust resources or trigger denial‑of‑service conditions. |
Practical consequences
🛡️ Remediation & Mitigation
Affected Versions
Patch / Upgrade
Workarounds (if patching is not immediately possible)
| Mitigation | How to Implement |
|---|---|
| Restrict CORS origins | Configure the CherryPy application to return a static Access‑Control‑Allow‑Origin value (e.g., https://trusted.example.com) instead of echoing the request header. |
| Disable credentials | Remove Access‑Control‑Allow‑Credentials: true from all responses. |
| Block OPTIONS on unauthenticated requests | Add a firewall or WAF rule that rejects OPTIONS requests that do not contain a valid authentication token or session cookie. |
| Remove session creation on OPTIONS | Modify the server code to avoid setting a session cookie in the pre‑flight handler. |
| WAF/ModSecurity rule | Example rule (ModSecurity 2.x syntax):<br>SecRule REQUEST_METHOD "OPTIONS" "phase:1,deny,status:403,msg:'Unauthenticated OPTIONS requests blocked'" |
Detection
| Log Indicator | Example Log Entry | IoC |
|---|---|---|
| OPTIONS request with Origin header | 127.0.0.1 - - [12/Dec/2026:10:15:23 +0000] "OPTIONS /api/v1/users HTTP/1.1" 200 - "https://evil.com" | Origin: https://evil.com |
| Set-Cookie on OPTIONS | Set-Cookie: session_id=ABC123; Path=/; HttpOnly | session_id= |
| Repeated cross‑origin requests | Multiple requests from the same IP with different Origin values | IP + Origin pairs |
Log pattern to watch for
.*OPTIONS.*"Origin: https?://[^"]+".*Set-Cookie: session_id=.*⚠️ Urgency
FOFA Query