Доступ к чужим приватным фотографиям (3) через обложку видео
The video cover preview request accepted a photo identifier supplied by the client and returned an image URL for that photo without checking whether the requester was allowed to see it. By swapping the identifier, an attacker could obtain a slightly cropped version of another user's private photo.
Originally disclosed on HackerOne
- Triaged in 28 days
- Fixed in 6 months
- Paid in 6 months
- Disclosed after 9 months
При выборе обложки видео проис�
одит запрос:
>POST /dk?cmd=CustomCoverPreview&st.a.hookId=160344447&st.a.objectId=customCover_31471307517
>st.a.attachedIds=%5B%7B%22type%22%3A%22PHOTOODKL%22%2C%22id%22%3A%22803633705029%22%7D%5D&gwt.requested=129bff65
Подменяя id фотографии в параметре st.a.attachedIds в теле ответа получаем урл:
http://pimg.mycdn.me/getImage?disableStub=true&type=VIDEO_S_288&url=http%3A%2F%2Fitd1.mycdn.me%2Fimage%3Ft%3D50%26bid%3D803633705029%26id%3D803633705029%26plc%3DWEB%26tkn%3DijQhFLoZF4a893ZE5lZS0e_E5MM&signatureToken=TNH2WJhWuKD1w_lgzlUBDQ
В котором в слегка обрезанном виде получаем приватную фотографию.
## Attachments
{{media:0}}
{{media:1}}
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
What the attacker needed
An account able to create a video; knowledge of a target photo identifier
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.
When you pick a cover for a video, the site asks its server to preview a photo. The server trusted the photo number sent by the browser and built a link to that photo without checking who owned it. Changing the number let someone fetch a private picture that was not theirs.
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.