Description
OrchardCore 3.0.0 through 3.0.1 contains an incorrect authorization vulnerability in AttachedMediaFieldHandler.ClonedAsync that allows authenticated users to read protected media by cloning content items with attacker-controlled Paths. Attackers with content API access and create and clone rights can set arbitrary media store paths via POST api/content, then clone the item to copy Secure Media protected files into their own mediafields folder and download them.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
OrchardCMS OrchardCore
Default version status: unaffected
3.0.0 to ≤ 3.0.1affected
pkg:nuget/OrchardCore.MediaReferences
- https://github.com/OrchardCMS/OrchardCore/blob/v3.0.1/src/OrchardCore.Modules/OrchardCore.Media/Services/AttachedMediaFieldFileService.cs#L42-L75 ↗
- https://github.com/OrchardCMS/OrchardCore/blob/v3.0.1/src/OrchardCore.Modules/OrchardCore.Media/Handlers/AttachedMediaFieldHandler.cs#L19-L31 ↗
- https://github.com/OrchardCMS/OrchardCore/blob/v3.0.1/src/OrchardCore.Modules/OrchardCore.Media/Services/ViewMediaFolderAuthorizationHandler.cs#L153-L165 ↗
- https://www.vulncheck.com/advisories/orchardcore-3.0.0-through-3.0.1-incorrect-authorization-via-attached-media-field-cloning ↗