Web API 5.13.24.1 security update

Note

This update applies only to installations that use the MFSQL Connector Web API (typically M-Files Cloud vaults, or vaults whose M-Files Server cannot reach SQL Server directly). Installations that connect the vault to SQL Server directly are not affected. The MFSQL Connector itself stays at its current version: this is an update to the Web API package and its install scripts only.

What is in this update

Component

Version

Web API package

MFSQLConnectWebAPI.zip, Web API 5.13.24.1

Install scripts

MFSQLConnectWebAPI-Install, version 3.2.0

Paired vault application

MFSQL Connector vault application 5.13.24

Background

The Web API issues a login token to the vault application and checks that token on every call. Earlier Web API packages (version 1.0.0.0) signed these tokens the same way on every installation. From 5.13.24.1, each Web API instance signs its tokens with a key of its own, generated on the web server when the instance is installed. A token issued by one instance is refused by every other instance.

We recommend that every installation using the Web API moves to 5.13.24.1.

Other changes in this update:

  • The Web API reports its version as 5.13.24.1 (earlier packages reported 1.0.0.0), so you can tell from the installed files whether an instance has this update. The first three parts name the vault application version the package is built for.

  • The Web API answers a login request without credentials with HTTP 400 instead of 500.

  • Install scripts 3.2.0 generate and keep each instance’s signing key, check for it, and include a procedure to upgrade an existing instance.

What you need to do

New installations follow the install scripts and their runbook. The signing key is written when .\Install.ps1 -Instance <Key> edits web.config; see Web API: the per-instance signing key (new installations).

Existing installations must add the signing key before the new files are deployed. The new Web API refuses every login (HTTP 503) until its instance has a key, and earlier packages ignore the key, so the order matters. Follow Web API: upgrade an existing instance to 5.13.24.1.

Nothing changes in M-Files Admin: the Web API URL, username and password in the vault application’s configuration stay the same.

Getting the update

Laminin Solutions provides the Web API package and the install scripts directly, not through the Connector installer or the website download page. Contact Laminin Solutions support to receive them. Record the package’s SHA-256 when you receive it, and compare it on the web server before you deploy:

Get-FileHash .\MFSQLConnectWebAPI.zip -Algorithm SHA256

The SHA-256 of the 5.13.24.1 package is 056A4161AEB0B671B8ED410DBD37864617BA039B59C89B766B3673FB3E3EA2D5.

Note

The Connector installer may still place an earlier copy of the Web API package in its 60_Addons folder. Do not deploy that copy; use the package Laminin Solutions provides.

Rolling back

Restore the previous Web API files from the backup the install scripts made. The signing key can stay in web.config: earlier packages ignore it.