Skip to content
Access control Write-up Beginner

My First Two Bounties

A user holding only a View-Only role on a file could still create, edit and delete invitation links, including assigning any access level. Separately, the SMTP service answered user verification queries, letting an attacker confirm which usernames exist.

khaledelnabet Follow

Published on medium.com

الح� دُ للهِ ربِّ العَالَ� ِينَ. اللَّهُ� َّ لَكَ الحَ� ْدُ كَ� َا يَنْبَغِي لِجَلَالِ وَجْهِكَ وَعَظِي� ِ سُلْطَانِكَ. الح� ْدُ للهِ عَلَى فَضْلِهِ وكَرَ� ِهِ وتَوْفِيقِهِ

Khaledelnabet, 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-link actions were authorised only by the user's membership of the file rather than by their specific role, and the mail server was configured to answer user-verification requests.

Impact

A view-only guest could grant themselves or others broader access to the file through links, and an attacker could confirm which usernames exist on the mail service; the server was not an open relay, so no mail relaying was possible.

What the attacker needed

A file shared with the attacker; attacker holds only View-Only role; SMTP ports reachable for the second bug

How it was found

  1. Send an invitation to a file with the View Only role.
  2. As the admin, create a link invitation for that file.
  3. While still a viewer, try to edit the existing invitation.
  4. Observe that a new link can be created, its permissions changed to any level, and the link 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 file-sharing site lets the owner invite other people with different levels of permission, such as view only or edit. The first bug is that a view-only guest could still change the sharing links, which is a job only the owner should do. The second bug is that the mail server would tell anyone who asked whether a given username exists, which helps an attacker build a list of real accounts.

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 khaledelnabet

View all

2 more disclosed reports, best first.

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.