Unpublished, protected files can be published via shortcode
Protected images in Silverstripe assets could be published by changing an existing image shortcode to reference the draft protected image's ID and then publishing the website content. An attacker with content editing rights could thus expose images that were meant to remain protected.
silverstripe/silverstripe-assets
Originally disclosed on huntr
Silverstripe silverstripe/assets through 1.10 is vulnerable to improper access control that allows protected images to be published by changing an existing image short code on website content. Draft protected images can be published by changing an existing image shortcode on website content to match the ID of the draft protected image and then publishing the website content.
From the GitHub Advisory Database (GHSA-v68g-62v9-39w5, CC BY 4.0).
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 missing an access-control check when resolving image shortcodes during content publication, allowing a draft protected image to be published.
Impact
An attacker with the ability to edit website content could publish protected images, making them publicly accessible.
What the attacker needed
Ability to edit website content; knowledge of the protected image's ID
How it was found
- Change an existing image shortcode on website content to match the ID of a draft protected image.
- Publish the website content.
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.
Silverstripe is a content management system. It lets editors place images on pages using shortcodes, which are little tags that refer to an image by its ID. The software did not check whether the image was allowed to be public when the page was published, so someone who could edit pages could make a protected image visible to everyone.
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.