r2dbc-mariadb Parsec auth: server-controlled PBKDF2 iteration count causes CPU-exhaustion DoS ( regression from b7766de )
该报告还没有中文解读。
原文摘录
摘自原文(4820 字符中的一小部分)
In mariadb-connector-r2dbc 1.4.1 (HEAD a82d265, all released versions), the Parsec authentication plugin derives its key with PBKDF2 using an iteration count of `1024 << iterations`, where `iterations` is a single byte read directly from the server's ext-salt response and bounded only by the check …
原文中的代码
64 if (buf.readableBytes() > 2) {
65 firstByte = buf.readByte();
66 iterations = buf.readByte(); // fully server-controlled
67 }
68
69 if (firstByte != 0x50 || iterations > 20) { // only upper bound
70 throw new R2dbcNonTransientResourceException(...);
71 } …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 MariaDB 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @fg0x0 · 版权归作者与 MariaDB 所有