Skip to content
IDOR Write-up Beginner

خلل في التحكم بالوصول / IDOR في تدفق دعوة المجموعة

The group invitation acceptance endpoint trusted a client-supplied userId parameter, so an attacker could add other users to groups without their consent and override their accept/reject decision. Reusing an invitation link could also re-add users who had left the group.

elnanayahmed Follow

Published on medium.com

{وَآتَاكُ� � كُلِّ � َا سَأَلْتُ� ُوهُ ۚ وَإِن تَعُدُّوا نِعْ� َتَ اللَّهِ لا تُحْصُوهُ ۗ }

Ahmed Atef (0xMintsX), on 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 invitation acceptance endpoint used the client-supplied userId to decide whose invitation was being accepted, without binding it to the authenticated session.

Impact

An attacker could add other users to groups without their consent, ignore their accept or reject choice, and re-add users who had left via a reused invitation link.

What the attacker needed

A group invitation link; a logged-in account

The fix

The server should derive the user identity from the authenticated session and ignore any client-supplied userId when processing invitation decisions.

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 you accept a group invite, the server should check that the request really comes from you. Here the server believed a user ID sent by the browser, so anyone could pretend to be someone else and force them into a group. This is called an IDOR: changing an identifier in a request to act on another person's data.

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.

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.