Commit 3323e90
committed
[MDEV-31585] Stop trusting or relying on client identifying information sent prior to the TLS handshake
The server has heretofore improperly mishandled—and TRUSTED—information sent
in the plaintext login request packet sent prior to the TLS handshake.
As a result of this, the client is *forced* to send excessive and
exploitable identifying information in the pre-TLS-handshake plaintext login
packet. That client-side vulnerability is CONC-654.
This modifies the server to stop relying on any of the information in
the pre-TLS-handshake plaintext login packet EXCEPT for the single bit
that tells it that a TLS handshake will follow. It furthermore adds an
"extended capability" bit to the server greeting packet, which informs
the client that it is safe to send a bare-bones dummy packet containing
ONLY the instruction that a TLS handshake will follow:
/* Server does not grievously mishandle information sent in the plaintext
* login request packet sent prior to the TLS handshake. As a result, the
* client can safely send an empty/dummy packet contianing no
* identifying information. Indicates that MDEV-31585 has been fixed.
* Since ??.?.
*/
#define MARIADB_CLIENT_CAN_SEND_DUMMY_HANDSHAKE_PACKET (1ULL << 37)1 parent fc45d4e commit 3323e90
3 files changed
+44
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
299 | 302 | | |
300 | 303 | | |
301 | 304 | | |
| |||
Submodule libmariadb updated from 3393fe3 to 23cbf7c
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12757 | 12757 | | |
12758 | 12758 | | |
12759 | 12759 | | |
| 12760 | + | |
12760 | 12761 | | |
12761 | 12762 | | |
12762 | 12763 | | |
| |||
13253 | 13254 | | |
13254 | 13255 | | |
13255 | 13256 | | |
13256 | | - | |
13257 | | - | |
13258 | | - | |
| 13257 | + | |
| 13258 | + | |
13259 | 13259 | | |
13260 | | - | |
13261 | | - | |
13262 | | - | |
13263 | | - | |
13264 | | - | |
13265 | | - | |
13266 | | - | |
13267 | | - | |
13268 | | - | |
13269 | | - | |
13270 | | - | |
13271 | | - | |
13272 | | - | |
13273 | | - | |
13274 | | - | |
| 13260 | + | |
| 13261 | + | |
| 13262 | + | |
| 13263 | + | |
| 13264 | + | |
| 13265 | + | |
| 13266 | + | |
13275 | 13267 | | |
13276 | | - | |
13277 | | - | |
13278 | | - | |
13279 | 13268 | | |
| 13269 | + | |
13280 | 13270 | | |
13281 | 13271 | | |
13282 | 13272 | | |
| |||
13297 | 13287 | | |
13298 | 13288 | | |
13299 | 13289 | | |
| 13290 | + | |
| 13291 | + | |
| 13292 | + | |
| 13293 | + | |
13300 | 13294 | | |
13301 | 13295 | | |
13302 | 13296 | | |
| |||
13305 | 13299 | | |
13306 | 13300 | | |
13307 | 13301 | | |
| 13302 | + | |
| 13303 | + | |
| 13304 | + | |
13308 | 13305 | | |
13309 | 13306 | | |
| 13307 | + | |
| 13308 | + | |
| 13309 | + | |
| 13310 | + | |
| 13311 | + | |
| 13312 | + | |
| 13313 | + | |
| 13314 | + | |
| 13315 | + | |
| 13316 | + | |
| 13317 | + | |
| 13318 | + | |
| 13319 | + | |
| 13320 | + | |
| 13321 | + | |
| 13322 | + | |
| 13323 | + | |
| 13324 | + | |
| 13325 | + | |
| 13326 | + | |
| 13327 | + | |
| 13328 | + | |
13310 | 13329 | | |
13311 | 13330 | | |
13312 | 13331 | | |
| |||
0 commit comments