This document explains how to patch a system for SQL injection vulnerability in the SQL Server Transport using hotfix release 2.2.4.
This vulnerability can be fixed by upgrading the SQL Server Transport package that is being used. The package can be updated by issuing the following command in the Package Manager Console within Visual Studio:
Update-Package NServiceBus.SqlServer -Version 2.2.4
After the package has been updated, all affected endpoints need to be rebuilt and redeployed.
This vulnerability can also be fixed by updating the SQL Server Transport .dll without the need to rebuild and redeploy an affected endpoint by following these steps:
- Update the NuGet package
- For each affected endpoint:
- Stop the endpoint.
- Copy the
NServiceBus.Transport.SqlServer.dllfile from the updated NuGet package to directory where binaries of the endpoint are stored. Make sure that updated version of the .dll overwrites the previous one.
- Restart the endpoint.