Skip to content

GHSA-7jxj-rpx7-ph2c Umbraco.Forms CDN may cache sensitive form uploads when processed by ImageSharp

LowCVSS 3.1
Published
Updated
Exploit status
No public exploit known

Description

Impact

Protected files uploaded through Umbraco Forms may be served to unauthenticated users when a CDN or caching layer is present and ImageSharp processes the request. ImageSharp sets aggressive cache headers by default, which can cause intermediary caches to store and serve files that should require authentication.

Patches

This issue affects all (supported) versions Umbraco Forms and is patched in 13.9.0, 16.4.0 and 17.1.0.

Workarounds

Add middleware to set cache headers for form uploads. Place the following code in your Startup.cs or Program.cs after app.UseStaticFiles() and any image processing middleware:

app.Use(async (context, next) =>
{
    var path = context.Request.Path.Value;

    if (!string.IsNullOrEmpty(path) && path.StartsWith("/media/forms/upload/", StringComparison.OrdinalIgnoreCase))
    {
        context.Response.OnStarting(() =>
        {
            context.Response.Headers["Cache-Control"] = "private, no-store, no-cache, must-revalidate";
            context.Response.Headers["Pragma"] = "no-cache";
            context.Response.Headers["Expires"] = "0";
            return Task.CompletedTask;
        });
    }

    await next();
});

Alternatively, configure your CDN to bypass caching for URLs matching /media/forms/upload/*.

Note: The vulnerability requires:

  • A CDN in front of the website
  • An authenticated user having previously requested the image
  • Knowledge of the form GUID, entry GUID, and image filename

If no CDN is in use, this vulnerability does not apply.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
nuget Umbraco.Forms(NuGet) < 13.9.0; = 4.0.0; = 9.0.0; = 9.0.0-beta002 +202 more 13.9.0, 16.4.0, 17.1.0 Fixed

Affected products

ProductAffected versionsFixed in
nuget Umbraco.Forms(NuGet) < 13.9.0 13.9.0
nuget Umbraco.Forms(NuGet) = 10.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 10.0.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 10.0.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 10.0.0-rc3 No fix listed
nuget Umbraco.Forms(NuGet) = 10.0.1 No fix listed
nuget Umbraco.Forms(NuGet) = 10.0.2 No fix listed
nuget Umbraco.Forms(NuGet) = 10.0.3 No fix listed
nuget Umbraco.Forms(NuGet) = 10.0.4 No fix listed
nuget Umbraco.Forms(NuGet) = 10.0.5 No fix listed
nuget Umbraco.Forms(NuGet) = 10.1.0 No fix listed
nuget Umbraco.Forms(NuGet) = 10.1.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 10.1.1 No fix listed
nuget Umbraco.Forms(NuGet) = 10.1.2 No fix listed
nuget Umbraco.Forms(NuGet) = 10.1.3 No fix listed
nuget Umbraco.Forms(NuGet) = 10.2.0 No fix listed
nuget Umbraco.Forms(NuGet) = 10.2.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 10.2.1 No fix listed
nuget Umbraco.Forms(NuGet) = 10.2.2 No fix listed
nuget Umbraco.Forms(NuGet) = 10.2.3 No fix listed
nuget Umbraco.Forms(NuGet) = 10.2.4 No fix listed
nuget Umbraco.Forms(NuGet) = 10.3.0 No fix listed
nuget Umbraco.Forms(NuGet) = 10.3.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 10.3.1 No fix listed
nuget Umbraco.Forms(NuGet) = 10.3.2 No fix listed
Show 175 more
ProductAffected versionsFixed in
nuget Umbraco.Forms(NuGet) = 10.3.3 No fix listed
nuget Umbraco.Forms(NuGet) = 10.4.0 No fix listed
nuget Umbraco.Forms(NuGet) = 10.4.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 10.5.0 No fix listed
nuget Umbraco.Forms(NuGet) = 10.5.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 10.5.1 No fix listed
nuget Umbraco.Forms(NuGet) = 10.5.2 No fix listed
nuget Umbraco.Forms(NuGet) = 10.5.3 No fix listed
nuget Umbraco.Forms(NuGet) = 10.5.4 No fix listed
nuget Umbraco.Forms(NuGet) = 10.5.5 No fix listed
nuget Umbraco.Forms(NuGet) = 10.5.6 No fix listed
nuget Umbraco.Forms(NuGet) = 10.5.7 No fix listed
nuget Umbraco.Forms(NuGet) = 11.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 11.0.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 11.0.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 11.0.0-rc3 No fix listed
nuget Umbraco.Forms(NuGet) = 11.0.1 No fix listed
nuget Umbraco.Forms(NuGet) = 11.0.2 No fix listed
nuget Umbraco.Forms(NuGet) = 11.0.3 No fix listed
nuget Umbraco.Forms(NuGet) = 11.1.0 No fix listed
nuget Umbraco.Forms(NuGet) = 11.1.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 11.1.1 No fix listed
nuget Umbraco.Forms(NuGet) = 11.1.2 No fix listed
nuget Umbraco.Forms(NuGet) = 11.1.3 No fix listed
nuget Umbraco.Forms(NuGet) = 11.2.0 No fix listed
nuget Umbraco.Forms(NuGet) = 11.2.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 11.2.1 No fix listed
nuget Umbraco.Forms(NuGet) = 12.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 12.0.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 12.0.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 12.0.0-rc3 No fix listed
nuget Umbraco.Forms(NuGet) = 12.0.0-rc4 No fix listed
nuget Umbraco.Forms(NuGet) = 12.0.0-rc5 No fix listed
nuget Umbraco.Forms(NuGet) = 12.1.0 No fix listed
nuget Umbraco.Forms(NuGet) = 12.1.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 12.1.1 No fix listed
nuget Umbraco.Forms(NuGet) = 12.1.2 No fix listed
nuget Umbraco.Forms(NuGet) = 12.2.0 No fix listed
nuget Umbraco.Forms(NuGet) = 12.2.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 12.2.1 No fix listed
nuget Umbraco.Forms(NuGet) = 12.2.2 No fix listed
nuget Umbraco.Forms(NuGet) = 12.2.3 No fix listed
nuget Umbraco.Forms(NuGet) = 12.2.4 No fix listed
nuget Umbraco.Forms(NuGet) = 13.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 13.0.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 13.0.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.0.0-rc3 No fix listed
nuget Umbraco.Forms(NuGet) = 13.0.0-rc4 No fix listed
nuget Umbraco.Forms(NuGet) = 13.0.0-rc5 No fix listed
nuget Umbraco.Forms(NuGet) = 13.0.1 No fix listed
nuget Umbraco.Forms(NuGet) = 13.0.2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.1.0 No fix listed
nuget Umbraco.Forms(NuGet) = 13.1.0-rc No fix listed
nuget Umbraco.Forms(NuGet) = 13.1.1 No fix listed
nuget Umbraco.Forms(NuGet) = 13.1.2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.2.0 No fix listed
nuget Umbraco.Forms(NuGet) = 13.2.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 13.2.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.2.1 No fix listed
nuget Umbraco.Forms(NuGet) = 13.2.2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.2.3 No fix listed
nuget Umbraco.Forms(NuGet) = 13.2.4 No fix listed
nuget Umbraco.Forms(NuGet) = 13.2.5 No fix listed
nuget Umbraco.Forms(NuGet) = 13.3.0 No fix listed
nuget Umbraco.Forms(NuGet) = 13.3.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 13.3.1 No fix listed
nuget Umbraco.Forms(NuGet) = 13.3.2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.3.3 No fix listed
nuget Umbraco.Forms(NuGet) = 13.4.0 No fix listed
nuget Umbraco.Forms(NuGet) = 13.4.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 13.4.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.4.0-rc3 No fix listed
nuget Umbraco.Forms(NuGet) = 13.4.1 No fix listed
nuget Umbraco.Forms(NuGet) = 13.4.2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.5.0 No fix listed
nuget Umbraco.Forms(NuGet) = 13.5.0-rc No fix listed
nuget Umbraco.Forms(NuGet) = 13.6.0 No fix listed
nuget Umbraco.Forms(NuGet) = 13.7.0 No fix listed
nuget Umbraco.Forms(NuGet) = 13.7.0-rc No fix listed
nuget Umbraco.Forms(NuGet) = 13.7.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.8.0 No fix listed
nuget Umbraco.Forms(NuGet) = 13.8.0-rc No fix listed
nuget Umbraco.Forms(NuGet) = 13.8.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 13.9.0-rc No fix listed
nuget Umbraco.Forms(NuGet) = 4.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 9.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 9.0.0-beta002 No fix listed
nuget Umbraco.Forms(NuGet) = 9.0.0-beta003 No fix listed
nuget Umbraco.Forms(NuGet) = 9.0.0-beta004 No fix listed
nuget Umbraco.Forms(NuGet) = 9.0.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 9.0.1 No fix listed
nuget Umbraco.Forms(NuGet) = 9.1.0 No fix listed
nuget Umbraco.Forms(NuGet) = 9.1.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 9.1.1 No fix listed
nuget Umbraco.Forms(NuGet) = 9.2.0 No fix listed
nuget Umbraco.Forms(NuGet) = 9.2.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 9.2.1 No fix listed
nuget Umbraco.Forms(NuGet) = 9.2.2 No fix listed
nuget Umbraco.Forms(NuGet) = 9.3.0 No fix listed
nuget Umbraco.Forms(NuGet) = 9.3.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 9.4.0 No fix listed
nuget Umbraco.Forms(NuGet) = 9.4.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 9.4.1 No fix listed
nuget Umbraco.Forms(NuGet) = 9.4.2 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.0 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.0-rc001 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.1 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.2 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.3 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.4 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.5 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.6 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.7 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.8 No fix listed
nuget Umbraco.Forms(NuGet) = 9.5.9 No fix listed
nuget Umbraco.Forms(NuGet) >= 14.0.0-beta001, < 16.4.0 16.4.0
nuget Umbraco.Forms(NuGet) = 14.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 14.0.0-beta001 No fix listed
nuget Umbraco.Forms(NuGet) = 14.0.0-beta002 No fix listed
nuget Umbraco.Forms(NuGet) = 14.0.0-beta003 No fix listed
nuget Umbraco.Forms(NuGet) = 14.0.0-beta004 No fix listed
nuget Umbraco.Forms(NuGet) = 14.0.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 14.0.1 No fix listed
nuget Umbraco.Forms(NuGet) = 14.0.2 No fix listed
nuget Umbraco.Forms(NuGet) = 14.1.0 No fix listed
nuget Umbraco.Forms(NuGet) = 14.1.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 14.1.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 14.1.1 No fix listed
nuget Umbraco.Forms(NuGet) = 14.1.2 No fix listed
nuget Umbraco.Forms(NuGet) = 14.1.3 No fix listed
nuget Umbraco.Forms(NuGet) = 14.1.4 No fix listed
nuget Umbraco.Forms(NuGet) = 14.1.5 No fix listed
nuget Umbraco.Forms(NuGet) = 14.2.0 No fix listed
nuget Umbraco.Forms(NuGet) = 14.2.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 14.2.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 14.2.1 No fix listed
nuget Umbraco.Forms(NuGet) = 14.2.2 No fix listed
nuget Umbraco.Forms(NuGet) = 14.2.3 No fix listed
nuget Umbraco.Forms(NuGet) = 15.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 15.0.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 15.0.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 15.0.0-rc3 No fix listed
nuget Umbraco.Forms(NuGet) = 15.0.0-rc4 No fix listed
nuget Umbraco.Forms(NuGet) = 15.0.1 No fix listed
nuget Umbraco.Forms(NuGet) = 15.0.2 No fix listed
nuget Umbraco.Forms(NuGet) = 15.0.3 No fix listed
nuget Umbraco.Forms(NuGet) = 15.1.0 No fix listed
nuget Umbraco.Forms(NuGet) = 15.1.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 15.1.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 15.1.0-rc3 No fix listed
nuget Umbraco.Forms(NuGet) = 15.1.1 No fix listed
nuget Umbraco.Forms(NuGet) = 15.1.2 No fix listed
nuget Umbraco.Forms(NuGet) = 15.2.0 No fix listed
nuget Umbraco.Forms(NuGet) = 15.2.0-rc No fix listed
nuget Umbraco.Forms(NuGet) = 16.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 16.0.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 16.0.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 16.0.0-rc3 No fix listed
nuget Umbraco.Forms(NuGet) = 16.0.0-rc4 No fix listed
nuget Umbraco.Forms(NuGet) = 16.0.0-rc5 No fix listed
nuget Umbraco.Forms(NuGet) = 16.1.0 No fix listed
nuget Umbraco.Forms(NuGet) = 16.2.0 No fix listed
nuget Umbraco.Forms(NuGet) = 16.2.0-rc No fix listed
nuget Umbraco.Forms(NuGet) = 16.2.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 16.3.0 No fix listed
nuget Umbraco.Forms(NuGet) = 16.3.0-rc No fix listed
nuget Umbraco.Forms(NuGet) = 16.3.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 16.3.1 No fix listed
nuget Umbraco.Forms(NuGet) = 16.4.0-rc No fix listed
nuget Umbraco.Forms(NuGet) = 16.4.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) >= 17.0.0-rc1, < 17.1.0 17.1.0
nuget Umbraco.Forms(NuGet) = 17.0.0 No fix listed
nuget Umbraco.Forms(NuGet) = 17.0.0-rc1 No fix listed
nuget Umbraco.Forms(NuGet) = 17.0.0-rc2 No fix listed
nuget Umbraco.Forms(NuGet) = 17.0.0-rc3 No fix listed

References