Connector/C++ ignores allowMultiQueries and injects savepoint names into SQL
该报告还没有中文解读。
原文摘录
摘自原文(5644 字符中的一小部分)
Two independent defects in statement building. ConnectProtocol::createConnection passes the literal CLIENT_MULTI_STATEMENTS to mysql_real_connect and throws away the capability mask it just computed, so stacked statements are accepted on every connection even though allowMultiQueries defaults to …
原文中的代码
if (options->allowMultiQueries || (options->rewriteBatchedStatements)){
capabilities|= MariaDbServerCapabilities::MULTI_STATEMENTS;
}默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 MariaDB 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @fg0x0 · 版权归作者与 MariaDB 所有