Skip to content
IDOR Write-up Intermediate

Security Flaw Allows Unauthorized Technicians to Manipulate and Delete Contacts in Other Organizations $$$

A technician with contact management permissions for one organisation could change the clientId field in a contact update request to move a contact from another organisation into their own. This let them edit or delete contacts in organisations where they had no permissions.

Sp1der0x Follow

Published on sp1der0x.medium.com

بِسْ� ِ اللهِ الرَّحْ� َنِ الرَّحِي� ِ، الْحَ� ْدُ لِلَّهِ الَّذِي هَدَانَا لِهَذَا وَ� َا كُنَّا لِنَهْتَدِيَ لَوْلَا أَنْ هَدَانَا اللهُ، وَالصَّلَاةُ وَالسَّلَا� ُ عَلَى خَيْرِ خَلْقِ اللهِ � ُحَ� َّدِ بْنِ عَبْدِ اللهِ، الَّذِي بُعِثَ لِيُتَ� ِّ� َ � َكَارِ� َ الْأَخْلَاقِ وَلِيُعَلِّ� َنَا سَبِيلَ الْحِكْ� َةِ وَالتَّقْوَى.…

Sp1der0x, on sp1der0x.medium.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

Likely the server accepted the clientId value from the request body without verifying that the user had permission to move the contact to that organisation.

Impact

A low-privileged technician could move contacts from other organisations into their own, modify sensitive contact information, and delete contacts from unauthorised organisations, potentially causing data loss.

What the attacker needed

A technician account with contact edit rights in one…; knowledge of a contact ID in another organisation

How it was found

  1. Create a contact in an organisation where the technician has no permissions and note its contact ID and clientId.
  2. Intercept the PUT request used to update a contact the technician is allowed to edit.
  3. Change the contact ID in the URL to the other organisation's contact ID and set clientId to the technician's own organisation.
  4. Send the request; the contact is moved into the technician's organisation and can then be edited or deleted.

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.

A technician was only supposed to manage contacts for their own organisation. By changing a number in the request that says which organisation a contact belongs to, they could pull another organisation's contact into their own and then change or delete it. This is a broken access control problem: the server trusted a value sent by the user instead of checking the user's real permissions.

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 Sp1der0x

View all

1 more disclosed report, 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.