Update: The reporter has published a blog post with details on the issue on August 25th, 2021
Note: The post has been up to include the latest patch versions for Umbraco Forms 4 and 6
If you are uncertain about how to handle this advisory, reach out to your technical contact/web agency for your Umbraco site and provide them with a link to this blog post and they will be able to take the necessary actions.
Who’s affected?
As we mentioned in the Security Advisory published on July 15th, the following versions of Umbraco Forms are affected:
All versions of Umbraco Forms v4.0.0 and up are affected by this vulnerability.
Specifically, the vulnerability applies only to forms that contain an upload field. Therefore we recommend that you prioritize patching sites that have an upload field on forms.
Identifying forms with an upload field can be tricky, especially on sites with a larger number of forms. You can do one of the following test whether any forms are using an upload field:
- If your form definitions are stored in the database you can query for:
SELECT * FROM [UFForms] WHERE [Definition] LIKE '%84a17cf8-b711-46a6-9840-0e4a072ad000%'
Alternatively on older versions of Umbraco you should query the following:
SELECT * FROM [UFFields] WHERE [Fieldtype] = '84a17cf8-b711-46a6-9840-0e4a072ad000'
- Or, if your form definitions are stored on disk, you can search App_Data\UmbracoForms\Data\forms\*.json for the string
84a17cf8-b711-46a6-9840-0e4a072ad000
Note: If you're using a filesystem provider then look for forms definitions on the storage location you configured.
If neither of those give you results then there is no upload field on any forms at this moment. Remember that anybody who has access to the forms section in Umbraco could add an upload field at any time, so it is still important to patch sites that don’t currently have upload fields.
Thus, all sites should have the recommended patch implemented as soon as possible.
What about Contour?
We’ve had some questions about Contour, the predecessor to Umbraco Forms, after publishing the heads-up post last week. We’ve identified that it is also vulnerable to the remote code execution bug, but not the arbitrary file deletion bug.
Contour version 3 was released in 2012 and therefore no longer considered under long term support, in fact it is end-of-life. However, since we have had a few requests for security patches, we’ve decided to also release a patch for Contour, which is version 3.0.32.
Automatic fix on Umbraco Cloud, Uno & Heartcore
All projects on Umbraco Cloud will be automatically patched today (July 20th, 2021 between 7 AM - 9 PM UTC).
All Umbraco Cloud projects are being patched to the applicable patch release of Umbraco Forms. This also means that from today, all new projects created on Umbraco Cloud will automatically have the security fix implemented.
No action is needed for Umbraco Cloud users unless you have created custom themes for your forms in which case you might need to update your theme files.
Umbraco Uno and Umbraco Heartcore are also automatically updated and protected.
Updating manually outside of Umbraco Cloud
There are several ways to update your sites outside of Umbraco Cloud depending on what is applicable for your setup. You can update manually, through NuGet or by updating to the latest version of Umbraco Forms.
Which version of Umbraco Forms to upgrade to
We recommend upgrading to the latest patch release of the current minor version of Umbraco Forms you’re using. This ensures that you will not suddenly get new features or breaking changes that you were not prepared for.
In order to find the file that applies to your current Forms install, find the version number in the Umbraco backoffice by going to the Forms section, the dashboard should show you the current version: