Skip to content
Access control Write-up Beginner

Unauthorized Access to Source Document Images in ERP System

An authorization bypass in an ERP system allowed a low-privilege account to list and download restricted images from the Purchasing category. The images also contained EXIF metadata that could leak sensitive information.

medium.com

Published on medium.com

My name is Hossam Hussein, and I am a Bug Bounty Hunter. I discovered this vulnerability during my testing and decided to share it in this writeup.

Hossam Hussein, 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 API endpoints for listing and retrieving images did not check whether the requesting user had permission to access the Purchasing category.

Impact

Unauthorized users could access sensitive images and their metadata, leading to exposure of confidential documents and leakage of sensitive information.

What the attacker needed

A low-privilege account; knowledge of the image list endpoint

How it was found

  1. Log in with an account that has full permissions and explore the Source Document Images section under Purchasing.
  2. Observe that images are loaded via a list endpoint and can be accessed individually by photo_id.
  3. Switch to a low-privilege account that has no access to Purchasing and replace the Cookie and org-id headers with that account's values.
  4. Send the same request to the image list endpoint and receive the full list of image data.
  5. Pick a photo_id from the list and request the individual image endpoint using the low-privilege account's headers.
  6. Download the image successfully and inspect its EXIF metadata.

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.

An ERP system is software that helps a company manage its daily work, like buying supplies or handling documents. The system had a rule that only certain users could see images in the Purchasing section, but the rule was not enforced on the server. So a user with a basic account could still ask for the list of images and download them, and the images contained hidden details like when and where they were taken.

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.

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.