Connector/C++ aborts client process on server session-tracking packet via std::stoi
该报告还没有中文解读。
原文摘录
摘自原文(5247 字符中的一小部分)
QueryProtocol::handleStateChange reads the session-tracking system-variable entry from an OK packet, compares it against the literal "auto_increment_increment", and then calls std::stoi on that same string. The string is the variable NAME, not its value, so whenever the branch is taken std::stoi is …
原文中的代码
if (mysql_session_track_get_first(connection, static_cast<enum capi::enum_session_state_type>(type), &value, &len) == 0)
{
std::string str(value, len);
switch (type) {
case StateChange::SESSION_TRACK_SYSTEM_VARIABLES:
if …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 MariaDB 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @fg0x0 · 版权归作者与 MariaDB 所有