Type:
Task
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
None
Component/s:
None
MySQL 8.0 introduced a new authentication plugin "caching_sha2_password" plugin, which is enabled by default and will be used as standard plugin:
Workflow:
1) Server sends scramble packet
2) Clients generates a sha256 hashed authentication string with the following mechanism:
digest1= sha256(password)
digest2= sha256(digest1)
digest3= sha256(digest2, scramble)
digest4= xor(digest1, digest3)
3) Client sends digest4 as authentication string
On success server sends a packet with length=1 and content=3. In case the password was not cached, server requires same authentication mechanism as in sha256_password with a little difference, the padding algorithm is PKCS1 v1.5 padding instead of OAEP.
Georg Richter
made changes -
2018-02-20 20:32
Field
Original Value
New Value
Description
MySQL 8.0 introduced a new authentication plugin "caching_sha2_password" plugin, which is enabled by default and will be used as standard plugin:
Workflow:
1) Server sends scramble packet
2) Clients generates a sha256 hashed authentication string with the following mechanism:
digest1= sha256(password)
digest2= sha256(digest1)
digest3= sha256(digest2, scramble)
digest4= xor(digest1, digest3)
3) Client sends digest4 as authentication string
On success server sends a packet with length=1 and content=3. In case the password was not cached, server requires same authentication mechanism as in sha256_password with a little difference, the padding algorithm is PKCS1 v1.5 padding instead of OAEP.
MySQL 8.0 introduced a new authentication plugin "caching_sha2_password" plugin, which is enabled by default and will be used as standard plugin:
Workflow:
1) Server sends scramble packet
2) Clients generates a sha256 hashed authentication string with the following mechanism:
{noformat}
digest1= sha256(password)
digest2= sha256(digest1)
digest3= sha256(digest2, scramble)
digest4= xor(digest1, digest3)
{noformat}
3) Client sends digest4 as authentication string
On success server sends a packet with length=1 and content=3. In case the password was not cached, server requires same authentication mechanism as in sha256_password with a little difference, the padding algorithm is PKCS1 v1.5 padding instead of OAEP.
Georg Richter
made changes -
2018-03-06 10:36
Status
Open
[ 1
]
In Progress
[ 3
]
Georg Richter
made changes -
2018-03-06 10:36
Assignee
Georg Richter
[ georg
]
Vladislav Vaintroub
[ wlad
]
Status
In Progress
[ 3
]
In Review
[ 10002
]
Vladislav Vaintroub
made changes -
2018-03-06 11:15
Assignee
Vladislav Vaintroub
[ wlad
]
Georg Richter
[ georg
]
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Georg Richter
made changes -
2018-04-18 11:22
Fix Version/s
3.0.5
[ 23023
]
Fix Version/s
3.0.4
[ 22922
]
Georg Richter
made changes -
2018-06-14 06:01
Resolution
Won't Fix
[ 2
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2018-10-02 10:02
Resolution
Won't Fix
[ 2
]
Status
Closed
[ 6
]
Stalled
[ 10000
]
Georg Richter
made changes -
2018-10-02 10:26
Fix Version/s
3.1.0
[ 22519
]
Fix Version/s
3.0.5
[ 23023
]
Georg Richter
made changes -
2018-10-04 15:11
Status
Stalled
[ 10000
]
In Progress
[ 3
]
Georg Richter
made changes -
2018-10-10 13:51
issue.field.resolutiondate
2018-10-10 13:51:08.0
2018-10-10 13:51:08.722
Georg Richter
made changes -
2018-10-10 13:51
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
Georg Richter
made changes -
2018-11-27 06:54
Fix Version/s
3.0.8
[ 23233
]
Julien Fritsch
made changes -
2022-01-11 15:33
Workflow
MariaDB connectors
[ 85671
]
MariaDB v4
[ 161100
]
{"report":{"fcp":1223.9000000953674,"ttfb":265.7999999523163,"pageVisibility":"visible","entityId":65969,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"237adae6-3454-4861-8f27-e7a24876fd40","navigationType":0,"readyForUser":1320.9000000953674,"redirectCount":0,"resourceLoadedEnd":1678.4000000953674,"resourceLoadedStart":301.60000014305115,"resourceTiming":[{"duration":99.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":301.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":301.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":401.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":246.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":301.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":301.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":548.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":255.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":302.2000000476837,"connectEnd":302.2000000476837,"connectStart":302.2000000476837,"domainLookupEnd":302.2000000476837,"domainLookupStart":302.2000000476837,"fetchStart":302.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":302.2000000476837,"responseEnd":557.7000000476837,"responseStart":557.7000000476837,"secureConnectionStart":302.2000000476837},{"duration":301.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":302.5,"connectEnd":302.5,"connectStart":302.5,"domainLookupEnd":302.5,"domainLookupStart":302.5,"fetchStart":302.5,"redirectEnd":0,"redirectStart":0,"requestStart":302.5,"responseEnd":603.7000000476837,"responseStart":603.7000000476837,"secureConnectionStart":302.5},{"duration":307.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":302.7000000476837,"connectEnd":302.7000000476837,"connectStart":302.7000000476837,"domainLookupEnd":302.7000000476837,"domainLookupStart":302.7000000476837,"fetchStart":302.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":302.7000000476837,"responseEnd":610.2999999523163,"responseStart":610.2999999523163,"secureConnectionStart":302.7000000476837},{"duration":316.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":303,"connectEnd":303,"connectStart":303,"domainLookupEnd":303,"domainLookupStart":303,"fetchStart":303,"redirectEnd":0,"redirectStart":0,"requestStart":303,"responseEnd":619.7999999523163,"responseStart":619.7999999523163,"secureConnectionStart":303},{"duration":321.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":303.10000014305115,"connectEnd":303.10000014305115,"connectStart":303.10000014305115,"domainLookupEnd":303.10000014305115,"domainLookupStart":303.10000014305115,"fetchStart":303.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":303.10000014305115,"responseEnd":624.5,"responseStart":624.5,"secureConnectionStart":303.10000014305115},{"duration":432.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":303.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":303.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":735.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":328.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":303.40000009536743,"connectEnd":303.40000009536743,"connectStart":303.40000009536743,"domainLookupEnd":303.40000009536743,"domainLookupStart":303.40000009536743,"fetchStart":303.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":303.40000009536743,"responseEnd":631.5,"responseStart":631.5,"secureConnectionStart":303.40000009536743},{"duration":432.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":303.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":303.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":735.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":330.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":303.7000000476837,"connectEnd":303.7000000476837,"connectStart":303.7000000476837,"domainLookupEnd":303.7000000476837,"domainLookupStart":303.7000000476837,"fetchStart":303.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":303.7000000476837,"responseEnd":633.7999999523163,"responseStart":633.7999999523163,"secureConnectionStart":303.7000000476837},{"duration":669.3999998569489,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":305.10000014305115,"connectEnd":305.10000014305115,"connectStart":305.10000014305115,"domainLookupEnd":305.10000014305115,"domainLookupStart":305.10000014305115,"fetchStart":305.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":305.10000014305115,"responseEnd":974.5,"responseStart":974.5,"secureConnectionStart":305.10000014305115},{"duration":1373.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":305.2000000476837,"connectEnd":305.2000000476837,"connectStart":305.2000000476837,"domainLookupEnd":305.2000000476837,"domainLookupStart":305.2000000476837,"fetchStart":305.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":305.2000000476837,"responseEnd":1678.4000000953674,"responseStart":1678.4000000953674,"secureConnectionStart":305.2000000476837},{"duration":273.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":798.6000001430511,"connectEnd":798.6000001430511,"connectStart":798.6000001430511,"domainLookupEnd":798.6000001430511,"domainLookupStart":798.6000001430511,"fetchStart":798.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":798.6000001430511,"responseEnd":1072.1000001430511,"responseStart":1072.1000001430511,"secureConnectionStart":798.6000001430511}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":46,"responseStart":266,"responseEnd":277,"domLoading":288,"domInteractive":1718,"domContentLoadedEventStart":1718,"domContentLoadedEventEnd":1778,"domComplete":2188,"loadEventStart":2188,"loadEventEnd":2189,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1680.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1681.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1681.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1687.4000000953674},{"name":"activityTabFullyLoaded","time":1802}],"measures":[],"correlationId":"2c298982488126","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":162,"dbReadsTimeInMs":35,"dbConnsTimeInMs":46,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
https://github.com/9EOR9/mariadb-connector-c/commit/aeb411107797179f2a725362ba86ab48665230fd