It Was Just a Number!!?
The stock media platform served unwatermarked premium images when a size parameter in the image URL was changed to a larger value, without checking authentication or subscription. An attacker could download premium images without paying.
Published on medium.com
I was testing a stock media platform that provides images and videos for designers and content creators.
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 backend trusted a client-controlled size parameter and served unwatermarked image variants without verifying the user's entitlement.
Impact
An unauthorised user could access and download unwatermarked premium images without a subscription, and automate retrieval at scale.
What the attacker needed
No account needed; knowledge of image URL structure
How it was found
- Browse the image gallery and observe multiple requests for the same image with slight differences.
- Open each request and find one that returns an unwatermarked but smaller image.
- Identify a value in the URL that appears to represent image size.
- Replace that value with a larger number and resend the request.
- Receive a larger unwatermarked image without authentication or subscription.
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 stock photo site normally shows watermarked previews unless you pay. The researcher found that changing a number in the image link made the server send a bigger, clean image with no login needed. This means anyone could get paid content for free.
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.