mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Discard extraneous renegotiation attempts in the v3 link protocol
Failure to do so left us open to a remotely triggerable assertion failure. Fixes CVE-2012-2249; bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
This commit is contained in:
@@ -649,6 +649,7 @@ enter_v3_handshake_with_cell(var_cell_t *cell, or_connection_t *conn)
|
||||
"Received a cell while TLS-handshaking, not in "
|
||||
"OR_HANDSHAKING_V3, on a connection we originated.");
|
||||
}
|
||||
connection_or_block_renegotiation(conn);
|
||||
conn->_base.state = OR_CONN_STATE_OR_HANDSHAKING_V3;
|
||||
if (connection_init_or_handshake_state(conn, started_here) < 0) {
|
||||
connection_mark_for_close(TO_CONN(conn));
|
||||
|
||||
Reference in New Issue
Block a user