Repository navigation
Update dependency MySqlConnector to 2.6.1 [SECURITY] - #306
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #306 +/- ##
==========================================
- Coverage 72.88% 72.75% -0.13%
==========================================
Files 314 314
Lines 7180 7180
Branches 1007 1007
==========================================
- Hits 5233 5224 -9
- Misses 1717 1723 +6
- Partials 230 233 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.1.8→2.6.1MySqlConnector: Account password disclosed to a man-in-the-middle in zero-configuration TLS mode (clear-text password sent before certificate is verified)
GHSA-473q-m89c-ghf8
More information
Details
Summary
With
SslModeset toVerifyCAorVerifyFullwith no configured CA certificate, an unvalidated TLS connection is treated as secure and a clear-text password can be sent before the certificate is checked. This can occur when relying on the password to validate a self-signed cert, e.g., MariaDB's zero-configuration TLS.Impact
An attacker who can deploy a man-in-the-middle MySQL proxy presenting any self-signed certificate can capture the plaintext database password of a client that:
SslMode = VerifyCAorVerifyFull, andSslCaconnection string option, andThe attacker completes the TLS handshake with its own cert, requests a clear-text password authentication scheme (
mysql_clear_password, or forces thecaching_sha2_password/sha256_passwordclear-text fallback), and receives the password before the fingerprint check rejects the connection, defeating the man-in-the-middle protectionVerifyFullis expected to provide.Not affected: a configured CA (
SslCa), CA-validated TLS, local connections (Unix socket / loopback), or empty passwords. UsingSslModeset toPreferredorRequiredis out of scope (this is documented as not authenticating the server).Workarounds
Provide
SslCawithVerifyCA/VerifyFull, use a local/Unix-socket connection, or avoid clear-text authentication.References
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
mysql-net/MySqlConnector (MySqlConnector)
v2.6.1Compare Source
MySqlCommand.PreparewithINSERT INTO ... RETURNING: #1652.v2.6.0Compare Source
OTEL_SEMCONV_STABILITY_OPT_INtodatabaseordatabase/dup(or useWithSemanticConventionsKinds) to test the new semantic conventions.traceparentto MySQL Server: #1635.EnableResultSetHeaderEventis now opt-in: #1633.AddMySqlDataSourceand related APIs fromMySqlConnector.DependencyInjectiontoMySqlConnector: #1649.DoCloseAsync: #729.DATETIMEticks: #1630.BINARYcolumns asGuid: #1625.v2.5.0Compare Source
2.5.0
MySqlConnection.Statewill be set toConnectionState.Brokenwhen there is a network error: #1599.ConnectionState.Closedbut the connection wasn't truly closed.MySqlConnection.Close()to fully close the connection before callingOpen()again..Dispose()(ideally with ausingdeclaration) and create a newMySqlConnectioninstance to recover from failure.MySqlConnection.ResetConnectionAsyncwill consistently throw aMySqlException: #1602.PARSECauthentication: #1540, #1606.VECTORdata type: #1549.COM_STMT_SEND_LONG_DATAto stream large parameter values: #943.MySqlConnectorTracingOptionsand builder APIs to configure tracing output: #1524.Guidvalues from stored procedure out parameters: #1528.MySqlDbTypewith[DbProviderSpecificTypeProperty(true)]: #1557.mysql.proc: #1547.MySqlBulkCopyauto-detected column mappings: #1568.Foreign Keysschema SQL syntax: #1601.caching_sha2_password: #1562.System.Threading.Lockfor .NET 9.0+.PemEncodingin .NET 5.0+ and UTF-8 methods in .NET 10.0+.v2.4.0Compare Source
MySqlConnectorLogManager.Provideras[Obsolete]: #1397.DbDataSourceneed to target .NET 8.0 or later.MySqlDataSourceBuilder.UseConnectionOpenedCallback: #1508.MySqlDbColumn.TableName: #1521.SETdata type in functions: #1491.TABLESPACESschema: #1477.SET NAMEScommands when not necessary: #1497.NullReferenceExceptioninMySqlConnection.Cancel: #1506.InvalidOperationExceptioninFinishQuerying: #1341.v2.3.7Compare Source
NullReferenceExceptioninMySqlDataReader.ActivateResultSetandMySqlDataReader.DisposeAsync: #1459.NullReferenceExceptioninServerSessionduring cancellation: #1472.Foreign Keysschema not being generated asynchronously.v2.3.6Compare Source
VerifyCAincompatibility with AWS Aurora: #1462.SslCaconnection string option andSslModeisVerifyCAorVerifyFull.Pipelining = False;in your connection string to disable this optimization if there are compatibility issues.START TRANSACTIONpayloads.v2.3.5Compare Source
v2.3.4Compare Source
Application Nameconnection string option andMySqlDataSourceBuilder.UseName: #1434.ArgumentOutOfRangeExceptioninTimerQueue.Add: #1424.InvalidCastExceptionwhen using stored procedures with MySQL 5.0: #1431.MySqlDataSourcetwice on .NET Framework.v2.3.3Compare Source
COLUMN_NAMErestriction forIndexColumnsschema; this improves NHibernate compatibility.v2.3.2Compare Source
Foreign Keys,Indexes,Index Columnsschemas: #1419.v2.3.1Compare Source
MySqlConnector
db.client.connections.timeoutscounter to metrics: #1392.schemaRestrictionsarray to be passed toGetSchema: #1394.double: #1396.MySqlConnector.DependencyInjection
AddKeyedMySqlDataSourceto support keyed services: #1391.Microsoft.Extensions.DependencyInjection.Abstractionsdependency to 8.0.0.v2.3.0Compare Source
[Obsolete].DbBatchCommand.CreateParameter: #1352.IUtf8SpanFormattable,Ascii.FromUtf16,Guid(bigEndian: true)constructor, argument-throwing helpers, etc.net48) TFM: #1355.TlsVersion = TLSv1.3to be used on .NET Framework 4.8.netstandard2.0.MySqlDataSourceis now available for all TFMs, not just .NET 7.0: #1269.MySqlConnectionwith dependency injection.MySqlDataSourceBuilderclass to configureMySqlDataSourceinstances.MySqlDataSource.NameandMySqlDataSourceBuilder.UseName.MySqlConnectorLogManager.Providercan still be used to add a logging destination, but it is now deprecated.MySqlDataSourceBuilder.UseLoggerFactoryto configure logging.MySqlDataSourceandMySqlConnectioncan be registered with dependency injection by usingbuilder.Services.AddMySqlDataSource(connectionString).COM_MULTIprotocol support: #946.ZEROFILLcolumns inMySqlDecimal: #1354.DateTimevalues: #1379.ValueTaskinMySqlBulkCopyAPI for all TFMs: #1364.WriteToServerAsyncfromTask<MySqlBulkCopyResult>toValueTask<MySqlBulkCopyResult>on .NET FrameworkCommandBehavior.SchemaOnlyandSingleRow: #1312.MySqlDataReaderobjects: #1277.TcpClient.ConnectAsyncoverload withCancellationTokenon .NET 5.0 and later: #1291.MySqlConnection.CloneWithfor connections created from aMySqlDataSource: #1306.@inMySqlBulkCopy: #1365.MySqlDbTypewhen serializing enum values: #1384.MySqlDataSourceinMySqlConnection.Clone: #1267.ActivityStatusto latest conventions: #1334.CommandTimeout: #1338.v2.2.7Compare Source
v2.2.6Compare Source
v2.2.5Compare Source
DECIMAL UNSIGNED, fixing error inDeriveParameters: #1272.nanas float/double value on .NET Framework.Full Changelog: mysql-net/MySqlConnector@2.2.4...2.2.5
v2.2.4Compare Source
v2.2.3Compare Source
GetSchema: #1258.TableNameproperty of theDataTablereturned fromGetSchema.FormatInvariantinternal helper method: #1253.v2.2.2Compare Source
Full Changelog: mysql-net/MySqlConnector@2.2.1...2.2.2
v2.2.1Compare Source
v2.2.0Compare Source
MySqlDataSource, an implementation ofDbDataSourcefor MySQL: #1208.DNS Check Intervalconnection string option: #1201.MySqlConnection.GetSchema.KILL QUERY: #1179.Component.Disposedevent fromMySqlConnection.DisposeAsync: #1235.ValueTaskinstead ofValueTask<int>: #1233.MySqlConnection.ResetConnectionAsyncfornetstandard2.0,net461,net471.MySqlConnectionStringBuilder.ConnectionString: #1217.v2.1.13Compare Source
MySqlDataReader.Dispose(Async): #1154.MySqlDataReader.GetBytes(string): #1197.OnStatementBegin: #1207.v2.1.12Compare Source
v2.1.11Compare Source
NullReferenceExceptioninMySqlConnector.Utilities.TimerQueue.Callback: #1177.v2.1.10Compare Source
MySqlBulkCopy.ConflictOptionsetting: #1176.v2.1.9Compare Source
Activitystatus to ERROR if an exception occurs duringExecuteReader: #1171.SSL Mode = Disabledis supported as a synonym forSSL Mode = None: #1168.MySqlSslMode.Disabledenum value.MySqlAttributeimplementsICloneable: #1169.UnixDomainSocketEndPointclass: #1160.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.