mysql-test/suite/galera/t/galera_wsrep_notify_cmd_injection.cnf
raw| 1 | !include ../galera_2nodes.cnf |
| 2 | |
| 3 | [mysqld.1] |
| 4 | # Victim: /bin/true exits 0 ignoring argv, so injection happens in sh -c parsing. |
| 5 | wsrep_notify_cmd=/bin/true |
| 6 | |
| 7 | [mysqld.2] |
| 8 | # Attacker: shell metacharacters in wsrep_node_name; trailing '#' comments |
| 9 | # out whatever the server appends after the name. |
| 10 | wsrep_node_name='n;touch PWN;#' |