Skip to content
IDOR Write-up Intermediate

Mass Assignment And The Identity Drift From Profile Edit To Insurance Takeover

A profile update endpoint accepted extra fields beyond the phone number, letting a user rewrite verified identity attributes such as legal name, date of birth and government ID number while the account kept its verified status. Because the insurance linking flow matched records using the editable date of birth, an attacker could link another person's insurance or benefit record to their own account.

Alvin Ferdiansyah Follow

Published on infosecwriteups.com

Mass Assignment happens when an application takes fields from a user-controlled request and applies them to an internal object without checking which fields are allowed to change.

Alvin Ferdiansyah, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

The backend applied all submitted fields to the profile object without a per-field allowlist, so sensitive identity fields were writable through an endpoint meant only for the phone number.

Impact

An attacker could rewrite the identity attributes on their own verified account and then link another person's insurance or benefit record to it, gaining downstream financial access; the text does not say whether any defence limited this.

What the attacker needed

An attacker-controlled account; account has passed eKYC verification; knowledge of target identity details; target insurance member details

The fix

The endpoint should be fixed with server-side field allowlisting so each update flow can only modify its intended fields, and the linking flow should match against identity records the user cannot rewrite.

How it was found

  1. Send an authenticated profile update request to the phone endpoint, adding identity fields the UI never sends.
  2. Read the profile back to confirm the extra fields were saved and the account still showed as verified.
  3. Change the date of birth on the attacker's own profile to the target's value.
  4. Submit the insurance linking request with the target's member details and date of birth.
  5. Observe that the insurance record linked to the attacker-controlled account.

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 write-up has not been written yet. The Original tab links to the source.

When a website saves a form, it should only save the fields it expects. Here the server saved every field the user sent, including ones the screen never offered, so a user could quietly change their own verified identity details. A later feature that checked insurance records trusted those changed details, so someone else's policy could be attached to the attacker's account.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by Alvin Ferdiansyah

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.