Skip to content
IDOR Write-up Beginner

Understanding SharePoint Web Parts and IDOR Vulnerabilities

A custom SharePoint Web Part fetches list items by an ID taken from the URL without checking whether the user is allowed to view that item. Any user who changes the ID can read other items' data, and the text also says poorly coded parts may leak database errors.

medium.com

Published on medium.com

Hey everyone! šŸ‘‹ I’m @horamah.71 , and I recently started exploring web security and SharePoint environments. I’ve been doing hands-on research and learning how SharePoint works.

horamah, 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 custom Web Part reads the item ID from the request and loads the item without calling SharePoint's permission check.

Impact

A user could read sensitive list items they are not authorised to see, bypassing SharePoint's built-in permissions; the text also says poorly coded parts may leak database errors.

What the attacker needed

Access to a SharePoint site with the custom Web Part; knowledge of another item's ID

The fix

The Web Part should check the current user's SharePoint permissions before returning an item, and should validate the ID and avoid rendering unfiltered data.

How it was found

  1. Open a SharePoint page that contains the custom Web Part.
  2. Note the ID parameter in the page URL.
  3. Change the ID value to another item's number.
  4. The Web Part loads and displays that other item's fields.

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.

SharePoint is a Microsoft product for building internal websites and document libraries. A Web Part is a small building block on a SharePoint page, like a widget that shows a table of items. This article explains that if such a widget looks up an item using a number from the web address but forgets to check whether you are allowed to see that item, you can change the number and read someone else'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.