Skip to content
IDOR Disclosed report Beginner

IDOR allows an attacker to delete anyone's featured photo.

A delete request for a profile's featured image used an image identifier and profile identifier that were both exposed in the public link to that image. An attacker could take those values from any victim's profile and delete that person's featured image.

adilnbabras Follow

Originally disclosed on HackerOne

Medium 6.5 View original
  • Triaged in 7 days
  • Fixed in 14 months
  • Paid in 8 days
  • Disclosed after 14 months

Hi Team, previously I submitted a bug report #1606896 that closed as informative without understanding my proof-of-concept and I believe that the bug is 100% exploitable so here I am again explaining my proof-of-concept. I hope this time you people get my point. I found an IDOR while deleting featured images, allowing me to delete anyone's featured images all over Linkedin. The request takes two main parameters ==ImageId== and ==ProfileId==. Both of these parameters are almost impossible to guess or brute force, but when I'm looking at the victim's profile featured images I noticed that both of the ==required parameters are available in the link itself==.

Hence, there is no need to guess or enumerate the parameters and then I can delete anyone featured images.

==Note: If you can't get any point then please let me know.==

Step To Reproduce:

  1. Make two accounts one is for the victim and the other for an attacker.

  2. Add some featured images in both accounts. Go to Profile --> Add Profile Section --> Recommended --> Add Featured

  3. Delete an image on the attacker's account and capture that request using burp and sent it to the repeater. It makes a delete request like the one, given below.

DELETE /voyager/api/voyagerIdentityDashProfileTreasuryMedia/urn:li:fsd_profileTreasuryMedia:(█████████,███████)?sectionUrn=urn:li:fsd_profile:███████
  1. It takes consists of thress things ==ProfileId== (██████████) , ==ImageId== (██████████) and ==sectionUrn== which also take same ProfileId value.

  2. Now visit the victim's profile featured images without logging in as the victim. Copy the link of the image you want to delete from the victim's profile, which looks like this.

https://www.linkedin.com/in/tension-███████/details/featured/██████/single-media-viewer?type=IMAGE&profileId=██████&lipi=urn:li:page:d_flagship3_profile_view_base_featured_details%3B███████
  1. Paste that link into your notepad and notice that in this link, we got both ==ProfileId== , ==ImageId==.

In the above link, I get these.
profileId = █████ ImageId = ████

  1. Now simply replace the respected values of required parameters in the repeater and send a request.

  2. You see that the targeted featured image from the victim's profile was successfully deleted.

##POC:

████

Impact

I am able to delete anyone's featured images on Linkedin.

Thanks, Regards AdilnBabras

The original report as published on HackerOne, by adilnbabras. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the delete endpoint authorised only on the image and profile identifiers supplied by the client, without checking that the caller owned the profile, and those identifiers were publicly exposed in the image link.

Impact

An attacker could delete any user's featured images.

What the attacker needed

Two accounts; victim has a featured image; attacker can view the victim's profile

How it was found

  1. Create a victim account and an attacker account, and add featured images to both.
  2. Delete an image on the attacker's account while capturing the request in an intercepting proxy, then send it to the repeater.
  3. Note that the request carries a profile identifier, an image identifier and a section identifier.
  4. Open the victim's featured image link and copy the profile identifier and image identifier shown in it.
  5. Replace the identifiers in the captured request with the victim's values and send it.
  6. Observe that the victim's featured image is 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 report has not been written yet. The Original tab links to the source.

A featured image is a picture shown on a profile. The delete request uses an image identifier and a profile identifier, and both appear in the public link to the image. So anyone who can see the picture can copy those values and send a delete request for it.

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 adilnbabras

View all

3 more disclosed reports, best first.

More from LinkedIn

View all

The newest disclosed reports for this program.

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.