summaryrefslogtreecommitdiff
path: root/INSTALL-SOURCE
diff options
context:
space:
mode:
authorSven Sandberg <sven.sandberg@oracle.com>2010-07-20 17:27:13 +0200
committerSven Sandberg <sven.sandberg@oracle.com>2010-07-20 17:27:13 +0200
commit689a96fcce55221101b8c9b613104c0b96edfb6b (patch)
treeaf2173457c0f6fdde3a4213546971b03cbcc3009 /INSTALL-SOURCE
parent05d1d68755400592c6a1d366837e722fe2129ecd (diff)
downloadmariadb-git-689a96fcce55221101b8c9b613104c0b96edfb6b.tar.gz
BUG#55322: SHOW BINLOG EVENTS increases @@SESSION.MAX_ALLOWED_PACKET
Problem: when SHOW BINLOG EVENTS was issued, it increased the value of @@session.max_allowed_packet. This allowed a non-root user to increase the amount of memory used by her thread arbitrarily. Thus, it removes the bound on the amount of system resources used by a client, so it presents a security risk (DoS attack). Fix: it is correct to increase the value of @@session.max_allowed_packet while executing SHOW BINLOG EVENTS (see BUG 30435). However, the increase should only be temporary. Thus, the fix is to restore the value when SHOW BINLOG EVENTS ends. The value of @@session.max_allowed_packet is also increased in mysql_binlog_send (i.e., the binlog dump thread). It is not clear if this can cause any trouble, since normally the client that issues COM_BINLOG_DUMP will not issue any other commands that would be affected by the increased value of @@session.max_allowed_packet. However, we restore the value just in case. mysql-test/suite/rpl/r/rpl_packet.result: update result file mysql-test/suite/rpl/t/rpl_packet.test: Add test that verifies that @@session.max_allowed_packet does not change when issuing SHOW BINLOG EVENTS. Make previous sub-test clean up. Add comments listing the bugs in this test case. sql/sql_repl.cc: Restore the old value of thd->variables.max_allowed_packet at the end of mysql_binlog_send and mysql_show_binlog_events.
Diffstat (limited to 'INSTALL-SOURCE')
0 files changed, 0 insertions, 0 deletions